From 1f2210ab5c75f53ff1613bbacf7020806cbb4c6c Mon Sep 17 00:00:00 2001 From: Andrei Rodrigues Date: Fri, 19 Jun 2026 23:56:44 -0300 Subject: [PATCH] chore: fix JavaScript lint errors (issue #12977) --- lib/node_modules/@stdlib/utils/key-by/examples/index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/node_modules/@stdlib/utils/key-by/examples/index.js b/lib/node_modules/@stdlib/utils/key-by/examples/index.js index a9e4a5e44a43..bf0cd80a1ebe 100644 --- a/lib/node_modules/@stdlib/utils/key-by/examples/index.js +++ b/lib/node_modules/@stdlib/utils/key-by/examples/index.js @@ -28,12 +28,12 @@ function toKey( value ) { return value.name; } -arr = new Array( 100 ); -for ( i = 0; i < arr.length; i++ ) { - arr[ i ] = { +arr = []; +for ( i = 0; i < 100; i++ ) { + arr.push({ 'name': 'v'+i, 'value': i - }; + }); } obj = keyBy( arr, toKey );