@@ -54,7 +54,7 @@ bench( pkg+'::primitives', function benchmark( b ) {
54
54
b . tic ( ) ;
55
55
for ( i = 0 ; i < b . iterations ; i ++ ) {
56
56
bool = isSafeInteger ( values [ i % values . length ] ) ;
57
- if ( ! isBoolean ( bool ) ) {
57
+ if ( typeof bool !== 'boolean' ) {
58
58
b . fail ( 'should return a boolean' ) ;
59
59
}
60
60
}
@@ -84,7 +84,7 @@ bench( pkg+'::objects', function benchmark( b ) {
84
84
b . tic ( ) ;
85
85
for ( i = 0 ; i < b . iterations ; i ++ ) {
86
86
bool = isSafeInteger ( values [ i % values . length ] ) ;
87
- if ( ! isBoolean ( bool ) ) {
87
+ if ( typeof bool !== 'boolean' ) {
88
88
b . fail ( 'should return a boolean' ) ;
89
89
}
90
90
}
@@ -119,7 +119,7 @@ bench( pkg+'::primitives:isPrimitive', function benchmark( b ) {
119
119
b . tic ( ) ;
120
120
for ( i = 0 ; i < b . iterations ; i ++ ) {
121
121
bool = isSafeInteger . isPrimitive ( values [ i % values . length ] ) ;
122
- if ( ! isBoolean ( bool ) ) {
122
+ if ( typeof bool !== 'boolean' ) {
123
123
b . fail ( 'should return a boolean' ) ;
124
124
}
125
125
}
@@ -149,7 +149,7 @@ bench( pkg+'::objects:isPrimitive', function benchmark( b ) {
149
149
b . tic ( ) ;
150
150
for ( i = 0 ; i < b . iterations ; i ++ ) {
151
151
bool = isSafeInteger . isPrimitive ( values [ i % values . length ] ) ;
152
- if ( ! isBoolean ( bool ) ) {
152
+ if ( typeof bool !== 'boolean' ) {
153
153
b . fail ( 'should return a boolean' ) ;
154
154
}
155
155
}
@@ -184,7 +184,7 @@ bench( pkg+'::primitives:isObject', function benchmark( b ) {
184
184
b . tic ( ) ;
185
185
for ( i = 0 ; i < b . iterations ; i ++ ) {
186
186
bool = isSafeInteger . isObject ( values [ i % values . length ] ) ;
187
- if ( ! isBoolean ( bool ) ) {
187
+ if ( typeof bool !== 'boolean' ) {
188
188
b . fail ( 'should return a boolean' ) ;
189
189
}
190
190
}
@@ -214,7 +214,7 @@ bench( pkg+'::objects:isObject', function benchmark( b ) {
214
214
b . tic ( ) ;
215
215
for ( i = 0 ; i < b . iterations ; i ++ ) {
216
216
bool = isSafeInteger . isObject ( values [ i % values . length ] ) ;
217
- if ( ! isBoolean ( bool ) ) {
217
+ if ( typeof bool !== 'boolean' ) {
218
218
b . fail ( 'should return a boolean' ) ;
219
219
}
220
220
}
0 commit comments