@@ -39,7 +39,7 @@ bench( pkg, function benchmark( b ) {
39
39
b . tic ( ) ;
40
40
for ( i = 0 ; i < b . iterations ; i ++ ) {
41
41
arr = iterator2array ( values ) ;
42
- if ( ! isArray ( arr ) ) {
42
+ if ( typeof out !== 'object' ) {
43
43
b . fail ( 'should return an array' ) ;
44
44
}
45
45
}
@@ -61,7 +61,7 @@ bench( pkg+'::map', function benchmark( b ) {
61
61
b . tic ( ) ;
62
62
for ( i = 0 ; i < b . iterations ; i ++ ) {
63
63
arr = iterator2array ( values , transform ) ;
64
- if ( ! isArray ( arr ) ) {
64
+ if ( typeof out !== 'object' ) {
65
65
b . fail ( 'should return an array' ) ;
66
66
}
67
67
}
@@ -89,7 +89,7 @@ bench( pkg+'::fill', function benchmark( b ) {
89
89
b . tic ( ) ;
90
90
for ( i = 0 ; i < b . iterations ; i ++ ) {
91
91
arr = iterator2array ( values , out ) ;
92
- if ( ! isArray ( arr ) ) {
92
+ if ( typeof out !== 'object' ) {
93
93
b . fail ( 'should return an array' ) ;
94
94
}
95
95
}
@@ -113,7 +113,7 @@ bench( pkg+'::map,fill', function benchmark( b ) {
113
113
b . tic ( ) ;
114
114
for ( i = 0 ; i < b . iterations ; i ++ ) {
115
115
arr = iterator2array ( values , out , transform ) ;
116
- if ( ! isArray ( arr ) ) {
116
+ if ( typeof out !== 'object' ) {
117
117
b . fail ( 'should return an array' ) ;
118
118
}
119
119
}
0 commit comments