Skip to content

Commit f5d1741

Browse files
chore: address lint errors in plot/unicode/stemleaf
PR-URL: #8066 Closes: #8058 Reviewed-by: Athan Reines <[email protected]>
1 parent fd24b4a commit f5d1741

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)