Skip to content

Instantly share code, notes, and snippets.

@dd1994
Created December 12, 2015 12:13
Show Gist options
  • Save dd1994/2f1239421a153f88b8d6 to your computer and use it in GitHub Desktop.
Save dd1994/2f1239421a153f88b8d6 to your computer and use it in GitHub Desktop.
cycle reference
'use strict'
let ary = []
let obj1 = {
a: 1,
b: ary
}
ary.push(obj1)
console.log(ary)
console.log(obj1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment