Skip to content

Commit fbae00e

Browse files
committed
Auto-generated commit
1 parent a3c259d commit fbae00e

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.github/.keepalive

Lines changed: 0 additions & 1 deletion
This file was deleted.

lib/unshift.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
var isArray = require( '@stdlib/assert-is-array' );
2424
var isTypedArrayLike = require( '@stdlib/assert-is-typed-array-like' );
2525
var isInteger = require( '@stdlib/assert-is-integer' );
26+
var format = require( '@stdlib/string-format' );
2627
var unshiftArray = require( './unshift_array.js' );
2728
var unshiftObject = require( './unshift_object.js' );
2829
var unshiftTypedArray = require( './unshift_typed_array.js' );
@@ -77,7 +78,7 @@ function unshift( collection ) {
7778
) {
7879
return unshiftObject( collection, items );
7980
}
80-
throw new TypeError( 'invalid argument. First argument must be either an Array, Typed Array, or an array-like Object. Value: `'+collection+'`.' );
81+
throw new TypeError( format( 'invalid argument. First argument must be either an Array, Typed Array, or an array-like object. Value: `%s`.', collection ) );
8182
}
8283

8384

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
"@stdlib/assert-is-integer": "^0.0.x",
4343
"@stdlib/assert-is-typed-array-like": "^0.0.x",
4444
"@stdlib/math-base-special-ceil2": "^0.0.x",
45+
"@stdlib/string-format": "^0.0.x",
4546
"@stdlib/types": "^0.0.x"
4647
},
4748
"devDependencies": {

0 commit comments

Comments
 (0)