From f9385744fee3c9e41d01c5a64d5d219bed50c310 Mon Sep 17 00:00:00 2001 From: Bhargav Dabhade Date: Wed, 7 Jan 2026 08:14:02 +0000 Subject: [PATCH] chore: fix JavaScript lint errors (issue #9403) --- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: passed - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: passed - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed --- --- lib/node_modules/@stdlib/utils/unzip/README.md | 12 ++++++++---- .../@stdlib/utils/unzip/examples/index.js | 11 +++++++---- 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/lib/node_modules/@stdlib/utils/unzip/README.md b/lib/node_modules/@stdlib/utils/unzip/README.md index 5612d1994908..237c373c5a9a 100644 --- a/lib/node_modules/@stdlib/utils/unzip/README.md +++ b/lib/node_modules/@stdlib/utils/unzip/README.md @@ -72,17 +72,21 @@ var round = require( '@stdlib/math/base/special/round' ); var randu = require( '@stdlib/random/base/randu' ); var pow = require( '@stdlib/math/base/special/pow' ); -var arr = new Array( 100 ); +var arr = []; var len = 5; var i; var j; -for ( i = 0; i < arr.length; i++ ) { - arr[ i ] = new Array( len ); +var row; + +for ( i = 0; i < 100; i++ ) { + row = []; for ( j = 0; j < len; j++ ) { - arr[ i ][ j ] = round( randu() * pow(10, j) ); + row.push( round( randu() * pow( 10, j ) ) ); } + arr.push( row ); } + var out = unzip( arr ); console.dir( out ); diff --git a/lib/node_modules/@stdlib/utils/unzip/examples/index.js b/lib/node_modules/@stdlib/utils/unzip/examples/index.js index 41fc670790bc..b1058d0ad86c 100644 --- a/lib/node_modules/@stdlib/utils/unzip/examples/index.js +++ b/lib/node_modules/@stdlib/utils/unzip/examples/index.js @@ -23,16 +23,19 @@ var randu = require( '@stdlib/random/base/randu' ); var pow = require( '@stdlib/math/base/special/pow' ); var unzip = require( './../lib' ); -var arr = new Array( 100 ); +var arr = []; var len = 5; var i; var j; -for ( i = 0; i < arr.length; i++ ) { - arr[ i ] = new Array( len ); +var row; + +for ( i = 0; i < 100; i++ ) { + row = []; for ( j = 0; j < len; j++ ) { - arr[ i ][ j ] = round( randu() * pow(10, j) ); + row.push( round( randu() * pow( 10, j ) ) ); } + arr.push( row ); } var out = unzip( arr );