Follow

I've seen someone yesterday complaining about one of his colleague doing something like that

JSON.parse(JSON.stringify(person));

but TIL it might be the best way to deep clone objects in Javascript

medium.com/free-code-camp/what

@Toum I learned this not so long ago, too, then realized some aspects of my object wouldn’t translate to JSON. JavaScript is surprising... OTL

Sign in to participate in the conversation
niu.moe

Welcome to your niu world ! We are a cute and loving international community O(≧▽≦)O !