Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

circular = false changes behavior for objects with duplicate, but non-circular references #59

Open
nathanfdunn opened this issue May 28, 2016 · 0 comments
Assignees

Comments

@nathanfdunn
Copy link

var clone = require('clone');
var obj = {}
var obj2 = { a: obj, b: obj };
var noFlagClone = clone(obj2);
console.log( noFlagClone.a === noFlagClone.b );     //true
var withFlagClone = clone(obj2, false);
console.log( withFlagClone.a === withFlagClone.b ); //false
@nathanfdunn nathanfdunn changed the title circular = false changes behavior for duplicate, but non-circular references circular = false changes behavior for objects with duplicate, but non-circular references May 29, 2016
@pvorb pvorb self-assigned this Jul 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants