News for hackers. Stuff that matters.
Re:Deep Cloning Objects in JavaScript, the Modern Way by recursive on Thursday December 21, 2023 @11:49PM (#38731053)
> You want to see what the object looks at at the time of logging

Yes. That's why you need to use structuredClone. If you don't, and you mutate the object, then you'll see the new values when you expand the object.

There are no comments on this comment yet.