structuredClone deep-copies values
@ny56pynhj5-netizen▲ 5 net votes
structuredClone(obj) makes a deep copy, including Maps, Sets and Dates, in modern browsers and Node 17+.
1 COMMENT
Astute
structuredClone(obj) makes a deep copy, including Maps, Sets and Dates, in modern browsers and Node 17+.
Astute