Skip to content

Commit ebf2a0a

Browse files
authored
chore: fix JavaScript lint errors
PR-URL: #10043 Closes: #10042 Reviewed-by: Athan Reines <kgryte@gmail.com>
1 parent 217401a commit ebf2a0a

File tree

1 file changed

+4
-4
lines changed
  • lib/node_modules/@stdlib/object/deep-set/examples

1 file changed

+4
-4
lines changed

lib/node_modules/@stdlib/object/deep-set/examples/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ function set( val ) {
3030
return val * 10.0;
3131
}
3232

33-
data = new Array( 100 );
34-
for ( i = 0; i < data.length; i++ ) {
35-
data[ i ] = {
33+
data = [];
34+
for ( i = 0; i < 100; i++ ) {
35+
data.push({
3636
'x': Date.now(),
3737
'y': [ randu(), randu(), i ]
38-
};
38+
});
3939
}
4040

4141
keys = [ 0, 'y', 2 ];

0 commit comments

Comments
 (0)