Skip to content

Commit 0cf9f07

Browse files
committed
Auto-generated commit
1 parent 6e54310 commit 0cf9f07

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

.github/.keepalive

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2022-09-01T01:11:31.706Z
1+
2022-10-01T01:36:25.684Z

benchmark/benchmark.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ bench( pkg, function benchmark( b ) {
6363
for ( i = 0; i < b.iterations; i++ ) {
6464
obj.f = randu();
6565
out = keys( obj );
66-
if ( !isArray( out ) ) {
66+
if ( typeof out !== 'object' ) {
6767
b.fail( 'should return an array' );
6868
}
6969
}
@@ -98,7 +98,7 @@ bench( pkg+'::polyfill', function benchmark( b ) {
9898
for ( i = 0; i < b.iterations; i++ ) {
9999
obj.f = randu();
100100
out = polyfill( obj );
101-
if ( !isArray( out ) ) {
101+
if ( typeof out !== 'object' ) {
102102
b.fail( 'should return an array' );
103103
}
104104
}
@@ -133,7 +133,7 @@ bench( pkg+'::builtin', opts, function benchmark( b ) {
133133
for ( i = 0; i < b.iterations; i++ ) {
134134
obj.f = randu();
135135
out = Object.keys( obj );
136-
if ( !isArray( out ) ) {
136+
if ( typeof out !== 'object' ) {
137137
b.fail( 'should return an array' );
138138
}
139139
}
@@ -168,7 +168,7 @@ bench( pkg+'::builtin_wrapper', opts, function benchmark( b ) {
168168
for ( i = 0; i < b.iterations; i++ ) {
169169
obj.f = randu();
170170
out = wrapper( obj );
171-
if ( !isArray( out ) ) {
171+
if ( typeof out !== 'object' ) {
172172
b.fail( 'should return an array' );
173173
}
174174
}
@@ -203,7 +203,7 @@ bench( pkg+'::builtin_arguments_wrapper', opts, function benchmark( b ) {
203203
for ( i = 0; i < b.iterations; i++ ) {
204204
obj.f = randu();
205205
out = argsWrapper( obj );
206-
if ( !isArray( out ) ) {
206+
if ( typeof out !== 'object' ) {
207207
b.fail( 'should return an array' );
208208
}
209209
}

docs/types/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import keys = require( './index' );
2626
keys( { 'beep': 'boop', 'foo': 3.14 } ); // $ExpectType string[]
2727
}
2828

29-
// The function does not compile if provided insufficient arguments...
29+
// The compiler throws an error if the function is provided insufficient arguments...
3030
{
3131
keys(); // $ExpectError
3232
}

lib/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@
3737

3838
// MODULES //
3939

40-
var keys = require( './main.js' );
40+
var main = require( './main.js' );
4141

4242

4343
// EXPORTS //
4444

45-
module.exports = keys;
45+
module.exports = main;

0 commit comments

Comments
 (0)