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 933258b commit 3b8a281Copy full SHA for 3b8a281
lib/node_modules/@stdlib/blas/ext/find-index/lib/assign.js
@@ -87,7 +87,7 @@ var base = require( './base.js' ).assign;
87
* // returns true
88
*
89
* var arr = ndarray2array( out );
90
-* // returns [ -1, 1 ]
+* // returns [ 1, 0 ]
91
*/
92
function assign( x, out ) {
93
var hasOptions;
@@ -119,7 +119,7 @@ function assign( x, out ) {
119
120
// Case: assign( x, out, clbk )
121
if ( nargs === 3 ) {
122
- cb = arguments[ 1 ];
+ cb = arguments[ 2 ];
123
if ( !isFunction( cb ) ) {
124
throw new TypeError( format( 'invalid argument. Second argument must be a function. Value: `%s`.', cb ) );
125
}
0 commit comments