Skip to content

chore: fix JavaScript lint errors (issue #10073)#10729

Open
travisbreaks wants to merge 1 commit intostdlib-js:developfrom
travisbreaks:fix/issue-10073
Open

chore: fix JavaScript lint errors (issue #10073)#10729
travisbreaks wants to merge 1 commit intostdlib-js:developfrom
travisbreaks:fix/issue-10073

Conversation

@travisbreaks
Copy link
Contributor

Description

Replace new Array( 5 ) with x = []; x.length = 5; in @stdlib/math/strided/special/cbrt-by/test/test.main.js to satisfy the stdlib/no-new-array lint rule. The sparse array behavior is preserved by setting .length on an empty array literal.

Related Issues

Resolves #10073

Checklist

AI Assistance

  • Yes

  • No

  • Code generation (e.g., when writing an implementation or fixing a bug)

  • Test/benchmark generation

  • Documentation (including examples)

  • Research and understanding

Co-authored-by: Egger egger@horny-toad.com

Replace `new Array( 5 )` with `x = []; x.length = 5;` in
`@stdlib/math/strided/special/cbrt-by/test/test.main.js` to satisfy
the `stdlib/no-new-array` lint rule.

Resolves stdlib-js#10073

Co-authored-by: Egger <egger@horny-toad.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@stdlib-bot stdlib-bot added Math Issue or pull request specific to math functionality. First-time Contributor A pull request from a contributor who has never previously committed to the project repository. Good First PR A pull request resolving a Good First Issue. Needs Review A pull request which needs code review. Potential Duplicate There might be another pull request resolving the same issue. and removed First-time Contributor A pull request from a contributor who has never previously committed to the project repository. Potential Duplicate There might be another pull request resolving the same issue. labels Mar 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Good First PR A pull request resolving a Good First Issue. Math Issue or pull request specific to math functionality. Needs Review A pull request which needs code review. Potential Duplicate There might be another pull request resolving the same issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix JavaScript lint errors

2 participants