We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ndarray/fancy
1 parent 7199788 commit acd2375Copy full SHA for acd2375
1 file changed
lib/node_modules/@stdlib/ndarray/fancy/test/test.instance.get_nd.js
@@ -78,15 +78,18 @@ tape( 'a FancyArray constructor returns an instance which has a `get` method whi
78
79
function badValue( value, dim ) {
80
return function badValue() {
81
- var args = new Array( shape.length );
+ var args;
82
+ var v;
83
var i;
84
- for ( i = 0; i < args.length; i++ ) {
85
+ args = [];
86
+ for ( i = 0; i < shape.length; i++ ) {
87
if ( i === dim ) {
- args[ i ] = value;
88
+ v = value;
89
} else {
- args[ i ] = 0;
90
+ v = 0;
91
}
92
+ args.push( v );
93
94
arr.get.apply( arr, args );
95
};
0 commit comments