diff --git a/map2-right/lib/assign.js b/map2-right/lib/assign.js index 0153ecaa..be556ccc 100644 --- a/map2-right/lib/assign.js +++ b/map2-right/lib/assign.js @@ -138,7 +138,7 @@ function map2Right( x, y, out, fcn, thisArg ) { throw new TypeError( format( 'invalid argument. If the input arrays are array-like objects, the output array must also be an array-like object. Value: `%s`.', out ) ); } if ( x.length !== y.length || y.length !== out.length ) { - throw new RangeError( 'invalid arguments. Input and output arrays must have the same number of elements ( i.e., length).' ); + throw new RangeError( 'invalid arguments. Input and output arrays must have the same number of elements (i.e., length).' ); } arrayFcn( arraylike2object( x ), arraylike2object( y ), arraylike2object( out ), fcn, thisArg ); // eslint-disable-line max-len return out; diff --git a/map2d/lib/main.js b/map2d/lib/main.js index c1d340ed..839c1ae7 100644 --- a/map2d/lib/main.js +++ b/map2d/lib/main.js @@ -78,7 +78,7 @@ function map2d( arr, fcn, thisArg ) { for ( i = 0; i < M; i++ ) { a = arr[ i ]; if ( !isArrayLikeObject( a ) ) { // note: cannot support the more general "collections" here (which includes typed arrays having more than 2^32-1 elements), as the output array is limited to 2^32-1 elements; thus, we opt for the lowest common denominator: generic arrays - throw new TypeError( format( 'invalid argument. First argument must be an array-like object containing array-like objects. Index: %u. Value: `%s`.', i, a ) ); + throw new TypeError( format( 'invalid argument. First argument must be an array-like object containing array-like objects. Index: `%u`. Value: `%s`.', i, a ) ); } N = a.length; tmp = []; diff --git a/reduce2d/lib/main.js b/reduce2d/lib/main.js index ba0008ae..47ac31fb 100644 --- a/reduce2d/lib/main.js +++ b/reduce2d/lib/main.js @@ -89,7 +89,7 @@ function reduce2d( arr, initial, reducer, thisArg ) { for ( i = 0; i < M; i++ ) { a = arr[ i ]; if ( !isCollection( a ) ) { - throw new TypeError( format( 'invalid argument. First argument must be an array-like object containing array-like objects. Index: %u. Value: `%s`.', i, a ) ); + throw new TypeError( format( 'invalid argument. First argument must be an array-like object containing array-like objects. Index: `%u`. Value: `%s`.', i, a ) ); } N = a.length; acc = initial[ i ]; diff --git a/uncurry-right/lib/uncurry_right.js b/uncurry-right/lib/uncurry_right.js index 6836e7b0..d957b100 100644 --- a/uncurry-right/lib/uncurry_right.js +++ b/uncurry-right/lib/uncurry_right.js @@ -97,7 +97,7 @@ function uncurryRight( fcn, arity, thisArg ) { if ( isFunction( f ) ) { f = f.call( context, arguments[ i ] ); } else { - throw new Error( format( 'invalid invocation. The configured arity exceeds the number of possible curried function invocations. Expected: %u. Actual: %u.', len, i ) ); + throw new Error( format( 'invalid invocation. The configured arity exceeds the number of possible curried function invocations. Expected: `%u`. Actual: `%u`.', len, i ) ); } } return f; @@ -106,7 +106,7 @@ function uncurryRight( fcn, arity, thisArg ) { if ( isFunction( f ) ) { f = f.call( context, arguments[ i ] ); } else { - throw new Error( format( 'invalid invocation. Number of arguments exceeds the number of possible curried function invocations. Expected: %u. Actual: %u.', arguments.length, i ) ); + throw new Error( format( 'invalid invocation. Number of arguments exceeds the number of possible curried function invocations. Expected: `%u`. Actual: `%u`.', arguments.length, i ) ); } } return f;