Closed MikeRalphson closed 6 years ago
PR in progress.
@MikeRalphson Any update?
My fix is here: https://github.com/MikeRalphson/safe-json-stringify/commit/754b8f5084ac4126dfc5f5c487d67336b461b486
It needs whitespace cleanup and I'm not sure if its the cleanest way of doing things (placement of the extra pop
s).
@gausby @jonatanpedersen any comments?
@MikeRalphson feel free to create a pull request :)
What it detects is object identity over objects it has seen before.
Consider the following example
The output is
Whereas I would expect
It correctly identifies real circular references.