From 87c30fc2541532bdbf61d4039390c40c30baf6db Mon Sep 17 00:00:00 2001 From: Travis Bonnet Date: Thu, 5 Mar 2026 21:39:02 -0600 Subject: [PATCH] chore: fix JavaScript lint errors (issue #9867) Replace `new Array( x.length )` with an array literal and `push` in `@stdlib/plot/components/svg/path/lib/render/utils/zip.js` to satisfy the `stdlib/no-new-array` lint rule. Resolves #9867 Co-authored-by: Egger Co-Authored-By: Claude Opus 4.6 --- .../@stdlib/plot/components/svg/path/lib/render/utils/zip.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }