Skip to content

Commit e5b8da9

Browse files
authored
chore: resolve JavaScript lint errors in utils/copy
PR-URL: #11083 Closes: #11082 Reviewed-by: Athan Reines <kgryte@gmail.com>
1 parent 1790fd8 commit e5b8da9

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/node_modules/@stdlib/utils/copy/lib/deep_copy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ function deepCopy( val, copy, cache, refs, level ) {
262262
continue;
263263
}
264264
// Plain array or object...
265-
ref = ( isArray( x ) ) ? new Array( x.length ) : {};
265+
ref = ( isArray( x ) ) ? new Array( x.length ) : {}; // eslint-disable-line stdlib/no-new-array
266266
cache.push( x );
267267
refs.push( ref );
268268
if ( parent === 'array' ) {

lib/node_modules/@stdlib/utils/copy/lib/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ function copy( value, level ) {
6767
} else {
6868
level = PINF;
6969
}
70-
out = ( isArray( value ) ) ? new Array( value.length ) : {};
70+
out = ( isArray( value ) ) ? new Array( value.length ) : {}; // eslint-disable-line stdlib/no-new-array
7171
return deepCopy( value, out, [value], [out], level );
7272
}
7373

0 commit comments

Comments
 (0)