File tree 3 files changed +3
-2
lines changed
3 files changed +3
-2
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 21
21
// MODULES //
22
22
23
23
var isArrayLikeObject = require ( '@stdlib/assert-is-array-like-object' ) ;
24
+ var format = require ( '@stdlib/string-format' ) ;
24
25
25
26
26
27
// FUNCTIONS //
@@ -115,7 +116,7 @@ function arrayShape( arr ) {
115
116
var ndims ;
116
117
117
118
if ( ! isArrayLikeObject ( arr ) ) {
118
- throw new TypeError ( 'invalid argument. Must provide an array-like object. Value: `' + arr + '`.' ) ;
119
+ throw new TypeError ( format ( 'invalid argument. Must provide an array-like object. Value: `%s`.' , arr ) ) ;
119
120
}
120
121
// Initialize the shape/dimensions array:
121
122
shape = [ arr . length ] ;
Original file line number Diff line number Diff line change 38
38
},
39
39
"dependencies" : {
40
40
"@stdlib/assert-is-array-like-object" : " ^0.0.x" ,
41
+ "@stdlib/string-format" : " ^0.0.x" ,
41
42
"@stdlib/types" : " ^0.0.x"
42
43
},
43
44
"devDependencies" : {
You can’t perform that action at this time.
0 commit comments