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


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

@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

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