Skip to content

Commit b675172

Browse files
committed
refactor: use dedicated array utility
1 parent 4a6e485 commit b675172

File tree

1 file changed

+2
-2
lines changed
  • lib/node_modules/@stdlib/ndarray/base/reverse-dimension/lib

1 file changed

+2
-2
lines changed

lib/node_modules/@stdlib/ndarray/base/reverse-dimension/lib/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
var args2multislice = require( '@stdlib/slice/base/args2multislice' );
2424
var Slice = require( '@stdlib/slice/ctor' );
2525
var slice = require( '@stdlib/ndarray/base/slice' );
26-
var filled = require( '@stdlib/array/base/filled' );
26+
var nulls = require( '@stdlib/array/base/nulls' );
2727
var ndims = require( '@stdlib/ndarray/base/ndims' );
2828
var format = require( '@stdlib/string/format' );
2929

@@ -90,7 +90,7 @@ function reverseDimension( x, dim, writable ) {
9090
throw new RangeError( format( 'invalid argument. Dimension index exceeds the number of dimensions. Number of dimensions: %d. Value: `%d`.', N, dim ) );
9191
}
9292
// Define a list of MultiSlice constructor arguments:
93-
args = filled( null, N );
93+
args = nulls( N );
9494
args[ d ] = new Slice( null, null, -1 );
9595

9696
// Return a new array view:

0 commit comments

Comments
 (0)