@@ -49,7 +49,7 @@ bench( pkg+'::primitives', function benchmark( b ) {
4949 b . tic ( ) ;
5050 for ( i = 0 ; i < b . iterations ; i ++ ) {
5151 bool = isEmptyString ( values [ i % values . length ] ) ;
52- if ( ! isBoolean ( bool ) ) {
52+ if ( typeof bool !== 'boolean' ) {
5353 b . fail ( 'should return a boolean' ) ;
5454 }
5555 }
@@ -76,7 +76,7 @@ bench( pkg+'::objects', function benchmark( b ) {
7676 b . tic ( ) ;
7777 for ( i = 0 ; i < b . iterations ; i ++ ) {
7878 bool = isEmptyString ( values [ i % values . length ] ) ;
79- if ( ! isBoolean ( bool ) ) {
79+ if ( typeof bool !== 'boolean' ) {
8080 b . fail ( 'should return a boolean' ) ;
8181 }
8282 }
@@ -107,7 +107,7 @@ bench( pkg+'::primitives:isPrimitive', function benchmark( b ) {
107107 b . tic ( ) ;
108108 for ( i = 0 ; i < b . iterations ; i ++ ) {
109109 bool = isEmptyString . isPrimitive ( values [ i % values . length ] ) ;
110- if ( ! isBoolean ( bool ) ) {
110+ if ( typeof bool !== 'boolean' ) {
111111 b . fail ( 'should return a boolean' ) ;
112112 }
113113 }
@@ -134,7 +134,7 @@ bench( pkg+'::objects:isPrimitive', function benchmark( b ) {
134134 b . tic ( ) ;
135135 for ( i = 0 ; i < b . iterations ; i ++ ) {
136136 bool = isEmptyString . isPrimitive ( values [ i % values . length ] ) ;
137- if ( ! isBoolean ( bool ) ) {
137+ if ( typeof bool !== 'boolean' ) {
138138 b . fail ( 'should return a boolean' ) ;
139139 }
140140 }
@@ -165,7 +165,7 @@ bench( pkg+'::primitives:isObject', function benchmark( b ) {
165165 b . tic ( ) ;
166166 for ( i = 0 ; i < b . iterations ; i ++ ) {
167167 bool = isEmptyString . isObject ( values [ i % values . length ] ) ;
168- if ( ! isBoolean ( bool ) ) {
168+ if ( typeof bool !== 'boolean' ) {
169169 b . fail ( 'should return a boolean' ) ;
170170 }
171171 }
@@ -192,7 +192,7 @@ bench( pkg+'::objects:isObject', function benchmark( b ) {
192192 b . tic ( ) ;
193193 for ( i = 0 ; i < b . iterations ; i ++ ) {
194194 bool = isEmptyString . isObject ( values [ i % values . length ] ) ;
195- if ( ! isBoolean ( bool ) ) {
195+ if ( typeof bool !== 'boolean' ) {
196196 b . fail ( 'should return a boolean' ) ;
197197 }
198198 }
0 commit comments