Parsing and stringifying does sort of send a shiver down my back, and I guess that does affect performance quite a bit.
And yes, it is probably true that JSON.stringify can yield incorrect results since non-primitive object key-values are stripped out iirc
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Parsing and stringifying does sort of send a shiver down my back, and I guess that does affect performance quite a bit.
And yes, it is probably true that JSON.stringify can yield incorrect results since non-primitive object key-values are stripped out iirc