From 532ed6570e6f19f3d00ae4594a5107988c0e95b1 Mon Sep 17 00:00:00 2001 From: Baixiaochun <182930459+Bingtagui404@users.noreply.github.com> Date: Fri, 20 Mar 2026 10:04:41 +0800 Subject: [PATCH] chore: fix JavaScript lint errors Resolves #11045 Replace `new Array()` constructor with an array literal and `push` in lib/node_modules/@stdlib/utils/inmap/examples/index.js to fix stdlib/no-new-array lint error. Signed-off-by: Baixiaochun --- lib/node_modules/@stdlib/utils/inmap/examples/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/node_modules/@stdlib/utils/inmap/examples/index.js b/lib/node_modules/@stdlib/utils/inmap/examples/index.js index 37123be5fd24..fce1a0cbe8a2 100644 --- a/lib/node_modules/@stdlib/utils/inmap/examples/index.js +++ b/lib/node_modules/@stdlib/utils/inmap/examples/index.js @@ -35,9 +35,9 @@ function scale( value, index, collection ) { return value * index; } -arr = new Array( 100 ); -for ( i = 0; i < arr.length; i++ ) { - arr[ i ] = i; +arr = []; +for ( i = 0; i < 100; i++ ) { + arr.push( i ); } out = inmap( arr, scale );