diff --git a/lib/node_modules/@stdlib/plot/components/svg/path/lib/render/utils/zip.js b/lib/node_modules/@stdlib/plot/components/svg/path/lib/render/utils/zip.js index 731735397afc..e0a7957f3833 100644 --- a/lib/node_modules/@stdlib/plot/components/svg/path/lib/render/utils/zip.js +++ b/lib/node_modules/@stdlib/plot/components/svg/path/lib/render/utils/zip.js @@ -40,9 +40,9 @@ function zip( x, y ) { if ( x.length !== y.length ) { throw new Error( format( 'invalid arguments. Must provide equal length array-like objects. x length: `%u`. y length: `%u`.', x.length, y.length ) ); } - out = new Array( x.length ); + out = []; for ( i = 0; i < x.length; i++ ) { - out[ i ] = [ x[i], y[i] ]; + out.push( [ x[i], y[i] ] ); } return out; }