@@ -53,7 +53,7 @@ bench( pkg+'::primitives', function benchmark( b ) {
53
53
b . tic ( ) ;
54
54
for ( i = 0 ; i < b . iterations ; i ++ ) {
55
55
bool = isNonPositiveInteger ( values [ i % values . length ] ) ;
56
- if ( ! isBoolean ( bool ) ) {
56
+ if ( typeof bool !== 'boolean' ) {
57
57
b . fail ( 'should return a boolean' ) ;
58
58
}
59
59
}
@@ -82,7 +82,7 @@ bench( pkg+'::objects', function benchmark( b ) {
82
82
b . tic ( ) ;
83
83
for ( i = 0 ; i < b . iterations ; i ++ ) {
84
84
bool = isNonPositiveInteger ( values [ i % values . length ] ) ;
85
- if ( ! isBoolean ( bool ) ) {
85
+ if ( typeof bool !== 'boolean' ) {
86
86
b . fail ( 'should return a boolean' ) ;
87
87
}
88
88
}
@@ -116,7 +116,7 @@ bench( pkg+'::primitives:isPrimitive', function benchmark( b ) {
116
116
b . tic ( ) ;
117
117
for ( i = 0 ; i < b . iterations ; i ++ ) {
118
118
bool = isNonPositiveInteger . isPrimitive ( values [ i % values . length ] ) ;
119
- if ( ! isBoolean ( bool ) ) {
119
+ if ( typeof bool !== 'boolean' ) {
120
120
b . fail ( 'should return a boolean' ) ;
121
121
}
122
122
}
@@ -145,7 +145,7 @@ bench( pkg+'::objects:isPrimitive', function benchmark( b ) {
145
145
b . tic ( ) ;
146
146
for ( i = 0 ; i < b . iterations ; i ++ ) {
147
147
bool = isNonPositiveInteger . isPrimitive ( values [ i % values . length ] ) ;
148
- if ( ! isBoolean ( bool ) ) {
148
+ if ( typeof bool !== 'boolean' ) {
149
149
b . fail ( 'should return a boolean' ) ;
150
150
}
151
151
}
@@ -179,7 +179,7 @@ bench( pkg+'::primitives:isObject', function benchmark( b ) {
179
179
b . tic ( ) ;
180
180
for ( i = 0 ; i < b . iterations ; i ++ ) {
181
181
bool = isNonPositiveInteger . isObject ( values [ i % values . length ] ) ;
182
- if ( ! isBoolean ( bool ) ) {
182
+ if ( typeof bool !== 'boolean' ) {
183
183
b . fail ( 'should return a boolean' ) ;
184
184
}
185
185
}
@@ -208,7 +208,7 @@ bench( pkg+'::objects:isObject', function benchmark( b ) {
208
208
b . tic ( ) ;
209
209
for ( i = 0 ; i < b . iterations ; i ++ ) {
210
210
bool = isNonPositiveInteger . isObject ( values [ i % values . length ] ) ;
211
- if ( ! isBoolean ( bool ) ) {
211
+ if ( typeof bool !== 'boolean' ) {
212
212
b . fail ( 'should return a boolean' ) ;
213
213
}
214
214
}
0 commit comments