Skip to content

Commit ab25d92

Browse files
committed
refactor: use accessor utility
1 parent b1146ea commit ab25d92

File tree

1 file changed

+2
-1
lines changed
  • lib/node_modules/@stdlib/ndarray/base/maybe-broadcast-array/lib

1 file changed

+2
-1
lines changed

lib/node_modules/@stdlib/ndarray/base/maybe-broadcast-array/lib/main.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
// MODULES //
2222

2323
var broadcast = require( '@stdlib/ndarray/base/broadcast-array' );
24+
var getShape = require( '@stdlib/ndarray/base/shape' );
2425

2526

2627
// MAIN //
@@ -88,7 +89,7 @@ function maybeBroadcastArray( arr, shape ) {
8889
var i;
8990

9091
N = shape.length;
91-
sh = arr.shape;
92+
sh = getShape( arr );
9293

9394
// Check whether we need to broadcast the input array...
9495
if ( sh.length === N ) {

0 commit comments

Comments
 (0)