From 61ffbed5a779f26f8894d741ec0a2413516cf527 Mon Sep 17 00:00:00 2001 From: Aryan Kumar Date: Mon, 17 Aug 2026 00:14:49 -0700 Subject: [PATCH] chore: fix JavaScript lint errors (issue #14273) --- 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_pkg_readmes status: na - task: lint_markdown_docs status: na - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: passed - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - 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/unshift/lib/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/utils/unshift/lib/main.js b/lib/node_modules/@stdlib/utils/unshift/lib/main.js index 7add73d09e8a..8453fc548b1e 100644 --- a/lib/node_modules/@stdlib/utils/unshift/lib/main.js +++ b/lib/node_modules/@stdlib/utils/unshift/lib/main.js @@ -57,9 +57,9 @@ var unshiftTypedArray = require( './unshift_typed_array.js' ); function unshift( collection ) { var items; var i; - items = new Array( arguments.length-1 ); + items = []; for ( i = 0; i < arguments.length-1; i++ ) { - items[ i ] = arguments[ i+1 ]; + items.push( arguments[ i+1 ] ); } if ( isArray( collection ) ) { return unshiftArray( collection, items );