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.
1 parent 1dc0aa4 commit 193f98cCopy full SHA for 193f98c
1 file changed
lib/node_modules/@stdlib/plot/components/svg/path/lib/render/utils/zip.js
@@ -40,9 +40,9 @@ function zip( x, y ) {
40
if ( x.length !== y.length ) {
41
throw new Error( format( 'invalid arguments. Must provide equal length array-like objects. x length: `%u`. y length: `%u`.', x.length, y.length ) );
42
}
43
- out = new Array( x.length );
+ out = [];
44
for ( i = 0; i < x.length; i++ ) {
45
- out[ i ] = [ x[i], y[i] ];
+ out.push( [ x[i], y[i] ] );
46
47
return out;
48
0 commit comments