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.

Dr. Derek Austin 🥳
JavaScript in Plain English
7 min readMay 16, 2022

--

Photo by Quaritsch Photography on Unsplash

--

--

I love working with Next.js + Tailwind CSS ♦ Lead UI / UX Product Engineer ♦ React Software Architect ♦ SEO & Web Performance Expert ♦ I love accessibility 🥰