Skip to content

Commit 193f98c

Browse files
chore: fix JavaScript lint errors
PR-URL: #9872 Closes: #9867 Reviewed-by: Philipp Burckhardt <pburckhardt@outlook.com>
1 parent 1dc0aa4 commit 193f98c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • lib/node_modules/@stdlib/plot/components/svg/path/lib/render/utils

lib/node_modules/@stdlib/plot/components/svg/path/lib/render/utils/zip.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ function zip( x, y ) {
4040
if ( x.length !== y.length ) {
4141
throw new Error( format( 'invalid arguments. Must provide equal length array-like objects. x length: `%u`. y length: `%u`.', x.length, y.length ) );
4242
}
43-
out = new Array( x.length );
43+
out = [];
4444
for ( i = 0; i < x.length; i++ ) {
45-
out[ i ] = [ x[i], y[i] ];
45+
out.push( [ x[i], y[i] ] );
4646
}
4747
return out;
4848
}

0 commit comments

Comments
 (0)