Skip to content

Commit 0157988

Browse files
committed
Auto-generated commit
1 parent 4a4016d commit 0157988

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.github/.keepalive

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

lib/arraylikefcn.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
// MODULES //
2222

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

2526

2627
// MAIN //
@@ -48,7 +49,7 @@ var isArrayLike = require( '@stdlib/assert-is-array-like' );
4849
*/
4950
function arraylikefcn( predicate ) {
5051
if ( typeof predicate !== 'function' ) {
51-
throw new TypeError( 'invalid argument. Must provide a function. Value: `' + predicate + '`.' );
52+
throw new TypeError( format( 'invalid argument. Must provide a function. Value: `%s`.', predicate ) );
5253
}
5354
return every;
5455

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@
3737
"url": "https://github.com/stdlib-js/stdlib/issues"
3838
},
3939
"dependencies": {
40-
"@stdlib/assert-is-array-like": "^0.0.x"
40+
"@stdlib/assert-is-array-like": "^0.0.x",
41+
"@stdlib/string-format": "^0.0.x"
4142
},
4243
"devDependencies": {
4344
"@stdlib/assert-is-boolean": "^0.0.x",

0 commit comments

Comments
 (0)