Skip to content

Commit 338f493

Browse files
committed
fixed for #10
1 parent 387c842 commit 338f493

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ function recursiveCopy(target, customizer, clone, visited, reference) {
6868
if (value !== null && /^(?:function|object)$/.test(typeof value)) {
6969
visited.push(value);
7070
reference.push(result);
71+
} else {
72+
ref = result;
7173
}
7274
} else {
7375
// circular reference

0 commit comments

Comments
 (0)