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.
1 parent af7bc58 commit 77614beCopy full SHA for 77614be
1 file changed
lib/node_modules/@stdlib/ndarray/push/lib/main.js
@@ -57,7 +57,7 @@ function push( x ) {
57
var args;
58
var i;
59
60
- if ( !isndarrayLike( x ) | ndims( x ) !== 1 ) {
+ if ( !isndarrayLike( x ) || ndims( x ) !== 1 ) {
61
throw new TypeError( format( 'invalid argument. First argument must be a one-dimensional ndarray. Value: `%s`.', x ) );
62
}
63
nargs = arguments.length;
0 commit comments