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 2464b78 commit ac7d5b4Copy full SHA for ac7d5b4
lib/node_modules/@stdlib/ndarray/base/order/lib/main.js
@@ -20,6 +20,7 @@
20
21
// MODULES //
22
23
+var isString = require( '@stdlib/assert/is-string' ).isPrimitive;
24
var strides2order = require( '@stdlib/ndarray/base/strides2order' );
25
26
@@ -52,7 +53,7 @@ function order( x ) {
52
53
var o;
54
55
o = x.order;
- if ( typeof o === 'string' ) {
56
+ if ( isString( o ) ) {
57
return o;
58
}
59
// Try to infer the layout order from the strides array...
0 commit comments