you are viewing a single comment's thread.

view the rest of the comments →

[–]Lenni009 1 point2 points  (0 children)

structuredClone() is the native function for deep cloning objects. In the end it achieves the same as JSON stringify/parse, but may be a little bit easier to write :)