Skip to content

Commit ca1f997

Browse files
committed
chore:fix no-new-array lint error in stemleaf
1 parent 86edcb5 commit ca1f997

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/node_modules/@stdlib/plot/unicode/stemleaf/lib/format_data.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,13 @@ function formatData( data, getValue ) {
5050

5151
// TODO: add support for `ndarray`-like interfaces
5252

53-
out = new Array( data.length );
53+
out = [];
5454
for ( i = 0; i < data.length; i++ ) {
5555
d = getValue( data[ i ], i );
5656
if ( isnan( d ) || isInfinite( d ) ) {
5757
continue;
5858
}
59-
out[ i ] = round( d );
59+
out.push( round( d ) );
6060
}
6161

6262
return out;

0 commit comments

Comments
 (0)