Skip to content

Commit a2903fc

Browse files
committed
chore: fix JavaScript lint errors (issue #11082)
1 parent da4d88c commit a2903fc

1 file changed

Lines changed: 1 addition & 1 deletion

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 ) ) ? [] : {};
266266
cache.push( x );
267267
refs.push( ref );
268268
if ( parent === 'array' ) {

0 commit comments

Comments
 (0)