Skip to content

Commit

Permalink
fixed for #10
Browse files Browse the repository at this point in the history
  • Loading branch information
sasaplus1 committed Jun 12, 2016
1 parent 387c842 commit 338f493
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ function recursiveCopy(target, customizer, clone, visited, reference) {
if (value !== null && /^(?:function|object)$/.test(typeof value)) {
visited.push(value);
reference.push(result);
} else {
ref = result;
}
} else {
// circular reference
Expand Down

0 comments on commit 338f493

Please sign in to comment.