File tree Expand file tree Collapse file tree 3 files changed +3
-2
lines changed
Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ var isString = require( '@stdlib/assert-is-string' ).isPrimitive;
2424var ctors = require ( '@stdlib/array-typed-ctors' ) ;
2525var reinterpret128 = require ( '@stdlib/strided-base-reinterpret-complex128' ) ;
2626var reinterpret64 = require ( '@stdlib/strided-base-reinterpret-complex64' ) ;
27+ var format = require ( '@stdlib/string-format' ) ;
2728
2829
2930// VARIABLES //
@@ -131,7 +132,7 @@ function typedarray() {
131132 }
132133 ctor = ctors ( dtype ) ;
133134 if ( ctor === null ) {
134- throw new TypeError ( 'invalid argument. Must provide a recognized data type. Value: `' + dtype + ' `.' ) ;
135+ throw new TypeError ( format ( 'invalid argument. Must provide a recognized data type. Value: `%s `.' , dtype ) ) ;
135136 }
136137 if ( nargs <= 0 ) {
137138 return new ctor ( 0 ) ;
Original file line number Diff line number Diff line change 4141 "@stdlib/assert-is-string" : " ^0.0.x" ,
4242 "@stdlib/strided-base-reinterpret-complex128" : " ^0.0.x" ,
4343 "@stdlib/strided-base-reinterpret-complex64" : " ^0.0.x" ,
44+ "@stdlib/string-format" : " ^0.0.x" ,
4445 "@stdlib/types" : " ^0.0.x"
4546 },
4647 "devDependencies" : {
You can’t perform that action at this time.
0 commit comments