diff --git a/lib/node_modules/@stdlib/utils/copy/lib/deep_copy.js b/lib/node_modules/@stdlib/utils/copy/lib/deep_copy.js index 802e3583c916..c0fe45232b89 100644 --- a/lib/node_modules/@stdlib/utils/copy/lib/deep_copy.js +++ b/lib/node_modules/@stdlib/utils/copy/lib/deep_copy.js @@ -262,7 +262,7 @@ function deepCopy( val, copy, cache, refs, level ) { continue; } // Plain array or object... - ref = ( isArray( x ) ) ? new Array( x.length ) : {}; + ref = ( isArray( x ) ) ? [] : {}; cache.push( x ); refs.push( ref ); if ( parent === 'array' ) {