News for hackers. Stuff that matters.
Re:A Modern JavaScript Tutorial by ianjsikes on Tuesday December 08, 2020 @10:11AM (#25346167)
The cheaty way is `let copy = JSON.parse(JSON.stringify(val))`. Doesn't work for functions or cyclic structures though.

There are no comments on this comment yet.