Skip to content

Commit 1028f42

Browse files
committed
Auto-generated commit
1 parent dc08968 commit 1028f42

File tree

181 files changed

+401
-401
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

181 files changed

+401
-401
lines changed

deep-equal/benchmark/benchmark.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ bench( pkg, function benchmark( b ) {
8585
x = values[ xi ];
8686
y = values[ yi ];
8787
out = deepEqual( x, y );
88-
if ( !isBoolean( out ) ) {
88+
if ( typeof out !== 'boolean' ) {
8989
b.fail( 'should return a boolean' );
9090
}
9191
}

has-arrow-function-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 = hasArrowFunctionSupport();
39-
if ( !isBoolean( bool ) ) {
39+
if ( typeof bool !== 'boolean' ) {
4040
b.fail( 'should return a boolean' );
4141
}
4242
}

has-async-await-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 = hasAsyncAwaitSupport();
39-
if ( !isBoolean( bool ) ) {
39+
if ( typeof bool !== 'boolean' ) {
4040
b.fail( 'should return a boolean' );
4141
}
4242
}

has-async-iterator-symbol-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 = hasAsyncIteratorSymbolSupport();
39-
if ( !isBoolean( bool ) ) {
39+
if ( typeof bool !== 'boolean' ) {
4040
b.fail( 'should return a boolean' );
4141
}
4242
}

has-bigint-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 = hasBigIntSupport();
39-
if ( !isBoolean( bool ) ) {
39+
if ( typeof bool !== 'boolean' ) {
4040
b.fail( 'should return a boolean' );
4141
}
4242
}

has-bigint64array-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 = hasBigInt64ArraySupport();
39-
if ( !isBoolean( bool ) ) {
39+
if ( typeof bool !== 'boolean' ) {
4040
b.fail( 'should return a boolean' );
4141
}
4242
}

has-biguint64array-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 = hasBigUint64ArraySupport();
39-
if ( !isBoolean( bool ) ) {
39+
if ( typeof bool !== 'boolean' ) {
4040
b.fail( 'should return a boolean' );
4141
}
4242
}

has-class-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 = hasClassSupport();
39-
if ( !isBoolean( bool ) ) {
39+
if ( typeof bool !== 'boolean' ) {
4040
b.fail( 'should return a boolean' );
4141
}
4242
}

has-dataview-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 = hasDataViewSupport();
39-
if ( !isBoolean( bool ) ) {
39+
if ( typeof bool !== 'boolean' ) {
4040
b.fail( 'should return a boolean' );
4141
}
4242
}

has-float32array-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 = hasFloat32ArraySupport();
39-
if ( !isBoolean( bool ) ) {
39+
if ( typeof bool !== 'boolean' ) {
4040
b.fail( 'should return a boolean' );
4141
}
4242
}

has-float64array-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 = hasFloat64ArraySupport();
39-
if ( !isBoolean( bool ) ) {
39+
if ( typeof bool !== 'boolean' ) {
4040
b.fail( 'should return a boolean' );
4141
}
4242
}

has-function-name-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 = hasFunctionNameSupport();
39-
if ( !isBoolean( bool ) ) {
39+
if ( typeof bool !== 'boolean' ) {
4040
b.fail( 'should return a boolean' );
4141
}
4242
}

has-generator-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 = hasGeneratorSupport();
39-
if ( !isBoolean( bool ) ) {
39+
if ( typeof bool !== 'boolean' ) {
4040
b.fail( 'should return a boolean' );
4141
}
4242
}

has-globalthis-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 = hasGlobalThisSupport();
39-
if ( !isBoolean( bool ) ) {
39+
if ( typeof bool !== 'boolean' ) {
4040
b.fail( 'should return a boolean' );
4141
}
4242
}

has-int16array-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 = hasInt16ArraySupport();
39-
if ( !isBoolean( bool ) ) {
39+
if ( typeof bool !== 'boolean' ) {
4040
b.fail( 'should return a boolean' );
4141
}
4242
}

has-int32array-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 = hasInt32ArraySupport();
39-
if ( !isBoolean( bool ) ) {
39+
if ( typeof bool !== 'boolean' ) {
4040
b.fail( 'should return a boolean' );
4141
}
4242
}

has-int8array-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 = hasInt8ArraySupport();
39-
if ( !isBoolean( bool ) ) {
39+
if ( typeof bool !== 'boolean' ) {
4040
b.fail( 'should return a boolean' );
4141
}
4242
}

has-iterator-symbol-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 = hasIteratorSymbolSupport();
39-
if ( !isBoolean( bool ) ) {
39+
if ( typeof bool !== 'boolean' ) {
4040
b.fail( 'should return a boolean' );
4141
}
4242
}

has-map-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 = hasMapSupport();
39-
if ( !isBoolean( bool ) ) {
39+
if ( typeof bool !== 'boolean' ) {
4040
b.fail( 'should return a boolean' );
4141
}
4242
}

has-own-property/benchmark/benchmark.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ bench( pkg, function benchmark( b ) {
4343
obj = {};
4444
obj[ key ] = i;
4545
bool = hasOwnProp( obj, key );
46-
if ( !isBoolean( bool ) ) {
46+
if ( typeof bool !== 'boolean' ) {
4747
b.fail( 'should return a boolean' );
4848
}
4949
}
@@ -67,7 +67,7 @@ bench( pkg+'::built-in', function benchmark( b ) {
6767
obj = {};
6868
obj[ key ] = i;
6969
bool = obj.hasOwnProperty( key );
70-
if ( !isBoolean( bool ) ) {
70+
if ( typeof bool !== 'boolean' ) {
7171
b.fail( 'should return a boolean' );
7272
}
7373
}

has-property/benchmark/benchmark.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ bench( pkg, function benchmark( b ) {
4141
obj = {};
4242
obj[ key ] = i;
4343
bool = hasProp( obj, key );
44-
if ( !isBoolean( bool ) ) {
44+
if ( typeof bool !== 'boolean' ) {
4545
b.fail( 'should return a boolean' );
4646
}
4747
}
@@ -65,7 +65,7 @@ bench( pkg+'::built-in', function benchmark( b ) {
6565
obj = {};
6666
obj[ key ] = i;
6767
bool = ( key in obj );
68-
if ( !isBoolean( bool ) ) {
68+
if ( typeof bool !== 'boolean' ) {
6969
b.fail( 'should return a boolean' );
7070
}
7171
}

has-proxy-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 = hasProxySupport();
39-
if ( !isBoolean( bool ) ) {
39+
if ( typeof bool !== 'boolean' ) {
4040
b.fail( 'should return a boolean' );
4141
}
4242
}

has-set-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 = hasSetSupport();
39-
if ( !isBoolean( bool ) ) {
39+
if ( typeof bool !== 'boolean' ) {
4040
b.fail( 'should return a boolean' );
4141
}
4242
}

has-sharedarraybuffer-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 = hasSharedArrayBufferSupport();
39-
if ( !isBoolean( bool ) ) {
39+
if ( typeof bool !== 'boolean' ) {
4040
b.fail( 'should return a boolean' );
4141
}
4242
}

has-symbol-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 = hasSymbolSupport();
39-
if ( !isBoolean( bool ) ) {
39+
if ( typeof bool !== 'boolean' ) {
4040
b.fail( 'should return a boolean' );
4141
}
4242
}

has-tostringtag-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 = hasToStringTagSupport();
39-
if ( !isBoolean( bool ) ) {
39+
if ( typeof bool !== 'boolean' ) {
4040
b.fail( 'should return a boolean' );
4141
}
4242
}

has-uint16array-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 = hasUint16ArraySupport();
39-
if ( !isBoolean( bool ) ) {
39+
if ( typeof bool !== 'boolean' ) {
4040
b.fail( 'should return a boolean' );
4141
}
4242
}

has-uint32array-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 = hasUint32ArraySupport();
39-
if ( !isBoolean( bool ) ) {
39+
if ( typeof bool !== 'boolean' ) {
4040
b.fail( 'should return a boolean' );
4141
}
4242
}

has-uint8array-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 = hasUint8ArraySupport();
39-
if ( !isBoolean( bool ) ) {
39+
if ( typeof bool !== 'boolean' ) {
4040
b.fail( 'should return a boolean' );
4141
}
4242
}

has-uint8clampedarray-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 = hasUint8ClampedArraySupport();
39-
if ( !isBoolean( bool ) ) {
39+
if ( typeof bool !== 'boolean' ) {
4040
b.fail( 'should return a boolean' );
4141
}
4242
}

has-utf16-surrogate-pair-at/benchmark/benchmark.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ bench( pkg, function benchmark( b ) {
4141
for ( i = 0; i < b.iterations; i++ ) {
4242
x = floor( randu() * UNICODE_MAX );
4343
bool = hasUTF16SurrogatePairAt( fromCodePoint( x ), 0 );
44-
if ( !isBoolean( bool ) ) {
44+
if ( typeof bool !== 'boolean' ) {
4545
b.fail( 'should return a boolean' );
4646
}
4747
}

has-wasm-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 = hasWebAssemblySupport();
39-
if ( !isBoolean( bool ) ) {
39+
if ( typeof bool !== 'boolean' ) {
4040
b.fail( 'should return a boolean' );
4141
}
4242
}

has-weakmap-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 = hasWeakMapSupport();
39-
if ( !isBoolean( bool ) ) {
39+
if ( typeof bool !== 'boolean' ) {
4040
b.fail( 'should return a boolean' );
4141
}
4242
}

has-weakset-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 = hasWeakSetSupport();
39-
if ( !isBoolean( bool ) ) {
39+
if ( typeof bool !== 'boolean' ) {
4040
b.fail( 'should return a boolean' );
4141
}
4242
}

instance-of/benchmark/benchmark.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ bench( pkg, function benchmark( b ) {
4646
b.tic();
4747
for ( i = 0; i < b.iterations; i++ ) {
4848
bool = instanceOf( vals[ i%vals.length ], Object );
49-
if ( !isBoolean( bool ) ) {
49+
if ( typeof bool !== 'boolean' ) {
5050
b.fail( 'should return a boolean' );
5151
}
5252
}
@@ -76,7 +76,7 @@ bench( pkg+'::built-in', function benchmark( b ) {
7676
b.tic();
7777
for ( i = 0; i < b.iterations; i++ ) {
7878
bool = ( vals[ i%vals.length ] instanceof Object );
79-
if ( !isBoolean( bool ) ) {
79+
if ( typeof bool !== 'boolean' ) {
8080
b.fail( 'should return a boolean' );
8181
}
8282
}

is-absolute-http-uri/benchmark/benchmark.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ bench( pkg, function benchmark( b ) {
7777
b.tic();
7878
for ( i = 0; i < b.iterations; i++ ) {
7979
bool = isAbsoluteHttpURI( values[ i % values.length ] );
80-
if ( !isBoolean( bool ) ) {
80+
if ( typeof bool !== 'boolean' ) {
8181
b.fail( 'should return a boolean' );
8282
}
8383
}

is-absolute-path/benchmark/benchmark.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ bench( pkg, function benchmark( b ) {
3838
for ( i = 0; i < b.iterations; i++ ) {
3939
str = '/foo/bar/beep/boop/'+fromCodePoint( 97 + (i%26) );
4040
bool = isAbsolutePath( str );
41-
if ( !isBoolean( bool ) ) {
41+
if ( typeof bool !== 'boolean' ) {
4242
b.fail( 'should return a boolean' );
4343
}
4444
}
@@ -59,7 +59,7 @@ bench( pkg+':posix', function benchmark( b ) {
5959
for ( i = 0; i < b.iterations; i++ ) {
6060
str = '/foo/bar/beep/boop/'+fromCodePoint( 97 + (i%26) );
6161
bool = isAbsolutePath.posix( str );
62-
if ( !isBoolean( bool ) ) {
62+
if ( typeof bool !== 'boolean' ) {
6363
b.fail( 'should return a boolean' );
6464
}
6565
}
@@ -80,7 +80,7 @@ bench( pkg+':win32', function benchmark( b ) {
8080
for ( i = 0; i < b.iterations; i++ ) {
8181
str = 'C:\\foo\\bar\\beep\\boop\\'+fromCodePoint( 97 + (i%26) );
8282
bool = isAbsolutePath.win32( str );
83-
if ( !isBoolean( bool ) ) {
83+
if ( typeof bool !== 'boolean' ) {
8484
b.fail( 'should return a boolean' );
8585
}
8686
}

is-absolute-uri/benchmark/benchmark.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ bench( pkg, function benchmark( b ) {
7777
b.tic();
7878
for ( i = 0; i < b.iterations; i++ ) {
7979
bool = isAbsoluteURI( values[ i % values.length ] );
80-
if ( !isBoolean( bool ) ) {
80+
if ( typeof bool !== 'boolean' ) {
8181
b.fail( 'should return a boolean' );
8282
}
8383
}

is-accessor-property-in/benchmark/benchmark.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ bench( pkg, function benchmark( b ) {
3838
b.tic();
3939
for ( i = 0; i < b.iterations; i++ ) {
4040
bool = isAccessorPropertyIn( arr, i );
41-
if ( !isBoolean( bool ) ) {
41+
if ( typeof bool !== 'boolean' ) {
4242
b.fail( 'should return a boolean' );
4343
}
4444
}

0 commit comments

Comments
 (0)