Skip to content

Commit

Permalink
Auto-generated commit
Browse files Browse the repository at this point in the history
  • Loading branch information
stdlib-bot committed Apr 23, 2022
1 parent 3562838 commit 9e7b0db
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion map2-right/lib/assign.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion map2d/lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [];
Expand Down
2 changes: 1 addition & 1 deletion reduce2d/lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 ];
Expand Down
4 changes: 2 additions & 2 deletions uncurry-right/lib/uncurry_right.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit 9e7b0db

Please sign in to comment.