Timeline for Object-to-array flattening function
Current License: CC BY-SA 3.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 28, 2016 at 22:10 | vote | accept | Jack Wilsdon | ||
Mar 21, 2016 at 3:11 | comment | added | Jonah | The code is long.... Eg, you can shorten the flatten method into one line: jsfiddle.net/k4apowb7. Similar improvements can be made for the other function. | |
Mar 20, 2016 at 19:56 | answer | added | adrianton3 | timeline score: 1 | |
Mar 20, 2016 at 18:44 | comment | added | adrianton3 |
Your isCyclicObject function returns false positives for references to the same substructure. Take for examplevar z = {}; isCyclicObject({ a: z. b: z }) . This happens because you're not popping anything off seenObjects .
|
|
Mar 20, 2016 at 16:43 | history | edited | Jamal | CC BY-SA 3.0 |
deleted 1 character in body; edited title
|
Mar 20, 2016 at 15:24 | history | asked | Jack Wilsdon | CC BY-SA 3.0 |