Skip to content

Commit 268da6a

Browse files
committed
Auto-generated commit
1 parent 984396b commit 268da6a

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

.github/.keepalive

Lines changed: 0 additions & 1 deletion
This file was deleted.

lib/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
// MODULES //
2222

23-
var Boolean = require( '@stdlib/boolean-ctor' );
23+
var isAccessorArray = require( '@stdlib/array-base-assert-is-accessor-array' );
2424
var numel = require( '@stdlib/ndarray-base-numel' );
2525
var getIndexed = require( './getter.js' );
2626
var getAccessor = require( './getter.accessor.js' );
@@ -76,7 +76,7 @@ function ndarraylike2object( x ) {
7676
xbuf = x.data;
7777
sh = x.shape;
7878

79-
bool = Boolean( xbuf.get && xbuf.set ); // Note: intentional weak check, as we don't explicitly check for functions for (perhaps marginally) better performance.
79+
bool = isAccessorArray( xbuf );
8080

8181
return {
8282
'ref': x,

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"url": "https://github.com/stdlib-js/stdlib/issues"
3838
},
3939
"dependencies": {
40-
"@stdlib/boolean-ctor": "^0.0.x",
40+
"@stdlib/array-base-assert-is-accessor-array": "^0.0.x",
4141
"@stdlib/ndarray-base-numel": "^0.0.x",
4242
"@stdlib/types": "^0.0.x"
4343
},

0 commit comments

Comments
 (0)