Task: Detect Cyclic Data Structures in JavaScript
Task: Detect Cyclic Data Structures in JavaScript: a task in Terminal-Lego-15k (Harbor dataset). JSON (JavaScript Object Notation) does not support cyclic data structures. A cyclic data structure is one where an object references itself, either directly or through a chain of references. When you…
The task
JSON (JavaScript Object Notation) does not support cyclic data structures. A cyclic data structure is one where an object references itself, either directly or through a chain of references. When you try to use `JSON.stringify()` on such structures, it throws a "Converting circular structure to JSON" error.
Part of PrimeIntellect/Terminal-Lego-15k.