Skip to content

Commit 9f7659a

Browse files
fix: replace new Array() constructor with array literal
1 parent c5eb64a commit 9f7659a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • lib/node_modules/@stdlib/assert/is-readable-property-in/benchmark

lib/node_modules/@stdlib/assert/is-readable-property-in/benchmark/benchmark.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ bench( pkg, function benchmark( b ) {
3333
var arr;
3434
var i;
3535

36-
arr = new Array( 100 );
36+
arr = [];
37+
arr.length = 100;
3738

3839
b.tic();
3940
for ( i = 0; i < b.iterations; i++ ) {

0 commit comments

Comments
 (0)