So, I have a generic object myObject
The problem is, myObject can contain self-referencences.
So if I do
console.debug(JSON.stringify(myObject))
it errors out because of recursion.
How can I console log this? Is there something like...
console.debug(JSON.stringify(removeRecursion(myObject)))