Skip to content

Commit 77614be

Browse files
authored
fix: use correct operand
Signed-off-by: Athan <kgryte@gmail.com>
1 parent af7bc58 commit 77614be

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • lib/node_modules/@stdlib/ndarray/push/lib

lib/node_modules/@stdlib/ndarray/push/lib/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ function push( x ) {
5757
var args;
5858
var i;
5959

60-
if ( !isndarrayLike( x ) | ndims( x ) !== 1 ) {
60+
if ( !isndarrayLike( x ) || ndims( x ) !== 1 ) {
6161
throw new TypeError( format( 'invalid argument. First argument must be a one-dimensional ndarray. Value: `%s`.', x ) );
6262
}
6363
nargs = arguments.length;

0 commit comments

Comments
 (0)