Visitar URL original
`circular = false` changes behavior for objects with duplicate, but non-circular references · Issue #59 · pvorb/clone · GitHub
Skip to content

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

Open

Description

@nathanfdunn
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

Activity

  1. 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[/+] on May 29, 2016
  2. self-assigned this
    on Jul 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions