stdlib-js / stats-ranks

@@ -82,7 +82,7 @@
Loading
82 82
	var j;
83 83
84 84
	if ( !isCollection( x ) ) {
85 -
		throw new TypeError( format( 'invalid argument. First argument `x` must be an array-like object. Value: `%s`.', x ) );
85 +
		throw new TypeError( format( 'invalid argument. First argument must be an array-like object. Value: `%s`.', x ) );
86 86
	}
87 87
	opts = {};
88 88
	if ( arguments.length > 1 ) {

@@ -60,13 +60,13 @@
Loading
60 60
	if ( hasOwnProp( options, 'method' ) ) {
61 61
		opts.method = options.method;
62 62
		if ( !isString( opts.method ) || !contains( METHODS, opts.method ) ) {
63 -
			return new TypeError( format( 'invalid option. `%s` must be one of the following: %s. Option: `%s`.', 'method', METHODS.join( ',' ), opts.method ) );
63 +
			return new TypeError( format( 'invalid option. `%s` must be one of the following: "%s". Option: `%s`.', 'method', METHODS.join( '", "' ), opts.method ) );
64 64
		}
65 65
	}
66 66
	if ( hasOwnProp( options, 'missing' ) ) {
67 67
		opts.missing = options.missing;
68 68
		if ( !isString( opts.missing ) || !contains( MISSING, opts.missing ) ) {
69 -
			return new TypeError( format( 'invalid option. `%s` must be one of the following: %s. Option: `%s`.', 'missing', MISSING.join( ',' ), opts.missing ) );
69 +
			return new TypeError( format( 'invalid option. `%s` must be one of the following: "%s". Option: `%s`.', 'missing', MISSING.join( '", "' ), opts.missing ) );
70 70
		}
71 71
	}
72 72
	return null;
Files Coverage
lib 99.36%
Project Totals (6 files) 99.36%
2211516039
unittests
2197166774
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