Don’t Deep Copy With JSON.Stringify and JSON.Parse in JS — Here’s Why
If you care about common data types include Date
objects and undefined
getting deep copied correctly, watch out for this common mistake caused by quirks in the JSON specification.
Published in
7 min readMay 16, 2022