From ca1f997e814ed7e9912dc608851e6931c7149201 Mon Sep 17 00:00:00 2001 From: rajanarahul93 Date: Sat, 13 Sep 2025 14:16:35 +0530 Subject: [PATCH] chore:fix no-new-array lint error in stemleaf --- .../@stdlib/plot/unicode/stemleaf/lib/format_data.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;