Skip to content

Commit 199d59c

Browse files
committed
refactor: use accessor utility
1 parent 3b849ec commit 199d59c

File tree

1 file changed

+2
-1
lines changed
  • lib/node_modules/@stdlib/ndarray/iter/rows/lib

1 file changed

+2
-1
lines changed

lib/node_modules/@stdlib/ndarray/iter/rows/lib/main.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ var isReadOnly = require( '@stdlib/ndarray/base/assert/is-read-only' );
2828
var hasOwnProp = require( '@stdlib/assert/has-own-property' );
2929
var iteratorSymbol = require( '@stdlib/symbol/iterator' );
3030
var zeros = require( '@stdlib/array/base/zeros' );
31+
var getShape = require( '@stdlib/ndarray/shape' );
3132
var numel = require( '@stdlib/ndarray/base/numel' );
3233
var slice = require( '@stdlib/ndarray/base/slice' );
3334
var nextCartesianIndex = require( '@stdlib/ndarray/base/next-cartesian-index' ).assign;
@@ -114,7 +115,7 @@ function nditerRows( x ) {
114115
}
115116
}
116117
// Retrieve input array meta data:
117-
shape = x.shape;
118+
shape = getShape( x );
118119
ndims = shape.length;
119120

120121
// Ensure that the input array has sufficient dimensions...

0 commit comments

Comments
 (0)