Skip to content

Commit aea44c9

Browse files
committed
fix: update loop limit
1 parent ccbaa42 commit aea44c9

File tree

1 file changed

+1
-1
lines changed
  • lib/node_modules/@stdlib/ndarray/base/ctor/lib

1 file changed

+1
-1
lines changed

lib/node_modules/@stdlib/ndarray/base/ctor/lib/tojson.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ function toJSON() {
5757
out.strides = this._strides.slice();
5858

5959
// Flip the signs of negative strides:
60-
for ( i = 0; i < len; i++ ) {
60+
for ( i = 0; i < out.strides.length; i++ ) {
6161
if ( out.strides[ i ] < 0 ) {
6262
out.strides[ i ] *= -1;
6363
}

0 commit comments

Comments
 (0)