File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ function cloneObjectDeep (val, instanceClone) {
31
31
}
32
32
if ( instanceClone || isPlainObject ( val ) ) {
33
33
const res = new val . constructor ( ) ;
34
- const circulars = ( whatsCircular ( val ) ?? [ ] ) . map ( c => get ( val , c ) ) ;
34
+ const circulars = ( whatsCircular ( val ) || [ ] ) . map ( c => get ( val , c ) ) ;
35
35
36
36
for ( let key in val ) {
37
37
if ( includes ( circulars , val [ key ] ) ) {
@@ -48,7 +48,7 @@ function cloneObjectDeep (val, instanceClone) {
48
48
49
49
function cloneArrayDeep ( val , instanceClone ) {
50
50
const res = new val . constructor ( val . length ) ;
51
- const circulars = ( whatsCircular ( val ) ?? [ ] ) . map ( c => get ( val , c ) ) ;
51
+ const circulars = ( whatsCircular ( val ) || [ ] ) . map ( c => get ( val , c ) ) ;
52
52
53
53
for ( let i = 0 ; i < val . length ; i ++ ) {
54
54
if ( includes ( circulars , val [ i ] ) ) {
You can’t perform that action at this time.
0 commit comments