File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ var Readable = require( 'readable-stream' ).Readable;
2424var isCollection = require ( '@stdlib/assert-is-collection' ) ;
2525var isError = require ( '@stdlib/assert-is-error' ) ;
2626var isBuffer = require ( '@stdlib/assert-is-buffer' ) ;
27+ var format = require ( '@stdlib/string-format' ) ;
2728var copy = require ( '@stdlib/utils-copy' ) ;
2829var inherit = require ( '@stdlib/utils-inherit' ) ;
2930var setNonEnumerable = require ( '@stdlib/utils-define-nonenumerable-property' ) ;
@@ -180,7 +181,7 @@ function ArrayStream( src, options ) {
180181 return new ArrayStream ( src ) ;
181182 }
182183 if ( ! isCollection ( src ) ) {
183- throw new TypeError ( 'invalid argument. First argument must be an array-like object. Value: `' + src + '`.' ) ;
184+ throw new TypeError ( format ( 'invalid argument. First argument must be an array-like object. Value: `%s`.' , src ) ) ;
184185 }
185186 opts = copy ( DEFAULTS ) ;
186187 if ( arguments . length > 1 ) {
Original file line number Diff line number Diff line change 2121// MODULES //
2222
2323var isObject = require ( '@stdlib/assert-is-plain-object' ) ;
24+ var format = require ( '@stdlib/string-format' ) ;
2425var copy = require ( '@stdlib/utils-copy' ) ;
2526var ArrayStream = require ( './main.js' ) ;
2627
@@ -64,7 +65,7 @@ function objectMode( src, options ) {
6465 if ( arguments . length > 1 ) {
6566 opts = options ;
6667 if ( ! isObject ( opts ) ) {
67- throw new TypeError ( 'invalid argument. Options must be an object. Value: `' + opts + '`.' ) ;
68+ throw new TypeError ( format ( 'invalid argument. Options must be an object. Value: `%s`.' , opts ) ) ;
6869 }
6970 opts = copy ( options , 1 ) ;
7071 } else {
You can’t perform that action at this time.
0 commit comments