Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Deep Cloning Objects in JavaScript, the Modern Way. Parent comment
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.
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.