stdlib-js / utils-every-by

@@ -22,6 +22,7 @@
Loading
22 22
23 23
var isCollection = require( '@stdlib/assert-is-collection' );
24 24
var isFunction = require( '@stdlib/assert-is-function' );
25 +
var format = require( '@stdlib/string-format' );
25 26
26 27
27 28
// MAIN //
@@ -51,10 +52,10 @@
Loading
51 52
	var len;
52 53
	var i;
53 54
	if ( !isCollection( collection ) ) {
54 -
		throw new TypeError( 'invalid argument. First argument must be a collection. Value: `'+collection+'`.' );
55 +
		throw new TypeError( format( 'invalid argument. First argument must be a collection. Value: `%s`.', collection ) );
55 56
	}
56 57
	if ( !isFunction( predicate ) ) {
57 -
		throw new TypeError( 'invalid argument. Second argument must be a function. Value: `'+predicate+'`.' );
58 +
		throw new TypeError( format( 'invalid argument. Second argument must be a function. Value: `%s`.', predicate ) );
58 59
	}
59 60
	len = collection.length;
60 61
	for ( i = 0; i < len; i++ ) {
Files Coverage
lib 100.00%
Project Totals (2 files) 100.00%
2080794212
unittests
2074569292
unittests
2175377764
unittests
2139256719
unittests
2248816402
unittests
2211155708
unittests

No yaml found.

Create your codecov.yml to customize your Codecov experience

Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading