diff --git a/lib/node_modules/@stdlib/plot/unicode/stemleaf/lib/format_data.js b/lib/node_modules/@stdlib/plot/unicode/stemleaf/lib/format_data.js index 3833fb45397b..7e1c9918732d 100644 --- a/lib/node_modules/@stdlib/plot/unicode/stemleaf/lib/format_data.js +++ b/lib/node_modules/@stdlib/plot/unicode/stemleaf/lib/format_data.js @@ -50,13 +50,13 @@ function formatData( data, getValue ) { // TODO: add support for `ndarray`-like interfaces - out = new Array( data.length ); + out = []; for ( i = 0; i < data.length; i++ ) { d = getValue( data[ i ], i ); if ( isnan( d ) || isInfinite( d ) ) { continue; } - out[ i ] = round( d ); + out.push( round( d ) ); } return out;