Skip to content

Commit 6f6fd50

Browse files
Sumithrajuclaude
andcommitted
chore: fix JavaScript lint errors (issue #10708)
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 #10708 Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
1 parent 33f4c10 commit 6f6fd50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/node_modules/@stdlib/ndarray/fancy/test/test.instance.tostring.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ tape( 'a FancyArray constructor returns an instance which has a custom `toString
175175
var arr;
176176

177177
dtype = 'generic';
178-
buffer = new Array( 1e4 );
178+
buffer = Array.from( { length: 1e4 } );
179179
shape = [ buffer.length ];
180180
order = 'row-major';
181181
strides = [ 1 ];

0 commit comments

Comments
 (0)