chore: fix JavaScript lint errors (issue #10708) by Sumithraju · Pull Request #10999 · stdlib-js/stdlib

@Sumithraju

@Sumithraju @claude

Replace new Array() constructor with Array.from() to comply with
stdlib/no-new-array linting rule. The change maintains identical
functionality while adhering to coding standards.

Fixes stdlib-js#10708

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>