We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
plot/unicode/stemleaf
1 parent fd24b4a commit f5d1741Copy full SHA for f5d1741
lib/node_modules/@stdlib/plot/unicode/stemleaf/lib/format_data.js
@@ -50,13 +50,13 @@ function formatData( data, getValue ) {
50
51
// TODO: add support for `ndarray`-like interfaces
52
53
- out = new Array( data.length );
+ out = [];
54
for ( i = 0; i < data.length; i++ ) {
55
d = getValue( data[ i ], i );
56
if ( isnan( d ) || isInfinite( d ) ) {
57
continue;
58
}
59
- out[ i ] = round( d );
+ out.push( round( d ) );
60
61
62
return out;
0 commit comments