File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 2121// MODULES //
2222
2323var isArrayLikeObject = require ( '@stdlib/assert-is-array-like-object' ) ;
24- var format = require ( '@stdlib/string-format ' ) ;
24+ var format = require ( '@stdlib/error-tools-fmtprodmsg ' ) ;
2525
2626
2727// FUNCTIONS //
@@ -116,7 +116,7 @@ function arrayShape( arr ) {
116116 var ndims ;
117117
118118 if ( ! isArrayLikeObject ( arr ) ) {
119- throw new TypeError ( format ( 'invalid argument. Must provide an array-like object. Value: `%s`. ' , arr ) ) ;
119+ throw new TypeError ( format ( '01R2u ' , arr ) ) ;
120120 }
121121 // Initialize the shape/dimensions array:
122122 shape = [ arr . length ] ;
Original file line number Diff line number Diff line change 3838 },
3939 "dependencies" : {
4040 "@stdlib/assert-is-array-like-object" : " ^0.2.2" ,
41- "@stdlib/string-format " : " ^0.2.2" ,
41+ "@stdlib/error-tools-fmtprodmsg " : " ^0.2.2" ,
4242 "@stdlib/types" : " ^0.4.3" ,
4343 "@stdlib/error-tools-fmtprodmsg" : " ^0.2.2"
4444 },
You can’t perform that action at this time.
0 commit comments