Skip to content

Commit b9fa9aa

Browse files
committed
Auto-generated commit
1 parent c411fae commit b9fa9aa

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

Diff for: .github/.keepalive

-1
This file was deleted.

Diff for: lib/main.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
// MODULES //
2222

2323
var isArrayLikeObject = require( '@stdlib/assert-is-array-like-object' );
24+
var format = require( '@stdlib/string-format' );
2425

2526

2627
// FUNCTIONS //
@@ -115,7 +116,7 @@ function arrayShape( arr ) {
115116
var ndims;
116117

117118
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 ) );
119120
}
120121
// Initialize the shape/dimensions array:
121122
shape = [ arr.length ];

Diff for: package.json

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
},
3939
"dependencies": {
4040
"@stdlib/assert-is-array-like-object": "^0.0.x",
41+
"@stdlib/string-format": "^0.0.x",
4142
"@stdlib/types": "^0.0.x"
4243
},
4344
"devDependencies": {

0 commit comments

Comments
 (0)