Skip to content

Commit cf1c342

Browse files
chore: fix JavaScript lint errors (issue stdlib-js#11784)
1 parent e8166a1 commit cf1c342

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • lib/node_modules/@stdlib/ndarray/base/unary-by/lib

lib/node_modules/@stdlib/ndarray/base/unary-by/lib/main.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
// MODULES //
2222

23+
var format = require( '@stdlib/string/format' );
2324
var iterationOrder = require( '@stdlib/ndarray/base/iteration-order' );
2425
var strides2order = require( '@stdlib/ndarray/base/strides2order' );
2526
var minmaxViewBufferIndex = require( '@stdlib/ndarray/base/minmax-view-buffer-index' );
@@ -224,7 +225,7 @@ function unaryBy( arrays, fcn, clbk, thisArg ) {
224225
shy = y.shape;
225226
ndims = shx.length;
226227
if ( ndims !== shy.length ) {
227-
throw new Error( 'invalid arguments. Arrays must have the same number of dimensions (i.e., same rank). ndims(x) == '+ndims+'. ndims(y) == '+shy.length+'.' );
228+
throw new Error( format( 'invalid arguments. Arrays must have the same number of dimensions (i.e., same rank). ndims(x) == %d. ndims(y) == %d.', ndims, shy.length ) );
228229
}
229230
// Determine whether we can avoid iteration altogether...
230231
if ( ndims === 0 ) {

0 commit comments

Comments
 (0)