Skip to content

Commit 54bec59

Browse files
committed
refactor: use accessor utility
1 parent 279034e commit 54bec59

File tree

1 file changed

+2
-1
lines changed
  • lib/node_modules/@stdlib/ndarray/dispatch-by/lib

1 file changed

+2
-1
lines changed

lib/node_modules/@stdlib/ndarray/dispatch-by/lib/main.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ var isFunction = require( '@stdlib/assert/is-function' );
2828
var isCollection = require( '@stdlib/assert/is-collection' );
2929
var isndarrayLike = require( '@stdlib/assert/is-ndarray-like' );
3030
var format = require( '@stdlib/string/format' );
31+
var getDType = require( '@stdlib/ndarray/dtype' );
3132
var resolveEnum = require( '@stdlib/ndarray/base/dtype-resolve-enum' );
3233
var indexOfTypes = require( './index_of_types.js' );
3334

@@ -209,7 +210,7 @@ function dispatchBy( fcns, types, data, nargs, nin, nout ) {
209210
}
210211
}
211212
arrays.push( v );
212-
dtypes.push( resolveEnum( v.dtype ) );
213+
dtypes.push( resolveEnum( getDType( v ) ) );
213214
}
214215
// Resolve the ndarray function satisfying the input array types:
215216
idx = indexOfTypes( nfcns, narrays, types, narrays, 1, 0, dtypes, 1, 0 ); // eslint-disable-line max-len

0 commit comments

Comments
 (0)