Skip to content

Commit dc08968

Browse files
committed
Auto-generated commit
1 parent e9ab13f commit dc08968

File tree

34 files changed

+34
-34
lines changed

34 files changed

+34
-34
lines changed

contains/benchmark/benchmark.length.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ function createBenchmark( fcn, len ) {
6363
// Note: we are testing the worst case scenario where a function must scan the entire array before finding a value.
6464
x[ len-2 ] = randu();
6565
bool = fcn( x, len-1 );
66-
if ( !isBoolean( bool ) ) {
66+
if ( typeof bool !== 'boolean' ) {
6767
b.fail( 'should return a boolean' );
6868
}
6969
}

has-arraybuffer-support/benchmark/benchmark.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ bench( pkg, function benchmark( b ) {
3636
for ( i = 0; i < b.iterations; i++ ) {
3737
// Note: the following *could* be optimized away via loop-invariant code motion. If so, the entire loop will disappear.
3838
bool = hasArrayBufferSupport();
39-
if ( !isBoolean( bool ) ) {
39+
if ( typeof bool !== 'boolean' ) {
4040
b.fail( 'should return a boolean' );
4141
}
4242
}

is-array-array/benchmark/benchmark.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ function createBenchmark( len ) {
6161
// Note: we are testing the worst case scenario where a function must scan the entire array before finding a failing value.
6262
x[ len-1 ] = i;
6363
bool = isArrayArray( x );
64-
if ( !isBoolean( bool ) ) {
64+
if ( typeof bool !== 'boolean' ) {
6565
b.fail( 'should return a boolean' );
6666
}
6767
}

is-between-array/benchmark/benchmark.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ function createBenchmark( len ) {
6262
// Note: we are testing the worst case scenario where a function must scan the entire array before finding a failing value.
6363
x[ len-1 ] = i;
6464
bool = isBetweenArray( x, 0.0, 1.0 );
65-
if ( !isBoolean( bool ) ) {
65+
if ( typeof bool !== 'boolean' ) {
6666
b.fail( 'should return a boolean' );
6767
}
6868
}

is-binary-string/benchmark/benchmark.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ function createBenchmark( len ) {
6464
b.tic();
6565
for ( i = 0; i < b.iterations; i++ ) {
6666
bool = isBinaryString( str + (i%10) );
67-
if ( !isBoolean( bool ) ) {
67+
if ( typeof bool !== 'boolean' ) {
6868
b.fail( 'should return a boolean' );
6969
}
7070
}

is-boolean-array/benchmark/benchmark.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ function createBenchmark( fcn, len, primitives ) {
7979
// Note: we are testing the worst case scenario where a function must scan the entire array before finding a failing value.
8080
x[ len-1 ] = i;
8181
bool = fcn( x );
82-
if ( !isBoolean( bool ) ) {
82+
if ( typeof bool !== 'boolean' ) {
8383
b.fail( 'should return a boolean' );
8484
}
8585
}

is-falsy-array/benchmark/benchmark.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ function createBenchmark( len ) {
6161
// Note: we are testing the worst case scenario where a function must scan the entire array before finding a failing value.
6262
x[ len-1 ] = i;
6363
bool = isFalsyArray( x );
64-
if ( !isBoolean( bool ) ) {
64+
if ( typeof bool !== 'boolean' ) {
6565
b.fail( 'should return a boolean' );
6666
}
6767
}

is-finite-array/benchmark/benchmark.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ function createBenchmark( fcn, len, primitives ) {
7272
for ( i = 0; i < b.iterations; i++ ) {
7373
x[ len-2 ] = i * 3.14;
7474
bool = fcn( x );
75-
if ( !isBoolean( bool ) ) {
75+
if ( typeof bool !== 'boolean' ) {
7676
b.fail( 'should return a boolean' );
7777
}
7878
}

is-function-array/benchmark/benchmark.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ function createBenchmark( len ) {
6262
// Note: we are testing the worst case scenario where a function must scan the entire array before finding a failing value.
6363
x[ len-1 ] = i;
6464
bool = isFunctionArray( x );
65-
if ( !isBoolean( bool ) ) {
65+
if ( typeof bool !== 'boolean' ) {
6666
b.fail( 'should return a boolean' );
6767
}
6868
}

is-integer-array/benchmark/benchmark.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ function createBenchmark( fcn, len, primitives ) {
7070
// Note: we are testing the worst case scenario where a function must scan the entire array before finding a failing value.
7171
x[ len-1 ] = i * 3.14;
7272
bool = fcn( x );
73-
if ( !isBoolean( bool ) ) {
73+
if ( typeof bool !== 'boolean' ) {
7474
b.fail( 'should return a boolean' );
7575
}
7676
}

0 commit comments

Comments
 (0)