Skip to content

Commit 822348c

Browse files
fix: removed new array
1 parent 8bce313 commit 822348c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • lib/node_modules/@stdlib/utils/values/lib

lib/node_modules/@stdlib/utils/values/lib/main.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ function objectValues( obj ) {
5353
}
5454
keys = objectKeys( obj );
5555
len = keys.length;
56-
out = new Array( len );
56+
out = [];
57+
out.length = len;
5758
for ( i = 0; i < len; i++ ) {
5859
out[ i ] = obj[ keys[i] ];
5960
}

0 commit comments

Comments
 (0)