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 07f7f98 commit 81ef879Copy full SHA for 81ef879
1 file changed
lib/node_modules/@stdlib/napi/argv-strided-booleanarray/lib/native.js
@@ -20,6 +20,7 @@
20
21
// MODULES //
22
23
+var isBooleanArray = require( '@stdlib/assert/is-booleanarray' );
24
var reinterpret = require( '@stdlib/strided/base/reinterpret-boolean' );
25
var addon = require( './../src/addon.node' );
26
@@ -43,7 +44,11 @@ var addon = require( './../src/addon.node' );
43
44
* wrapper( x.length, x, 1 );
45
*/
46
function wrapper( N, v, stride ) {
- addon( N, reinterpret( v, 0 ), stride );
47
+ if ( isBooleanArray( v ) ) {
48
+ addon( N, reinterpret( v, 0 ), stride );
49
+ } else {
50
+ addon( N, v, stride );
51
+ }
52
return v;
53
}
54
0 commit comments