© 2026 LinearBytes Inc.
Search posts, tags, users, and pages
GAURAV BURANDE
Web development
A dumb way to copy an object is using the spread operator.
Instead use JSON.parse(JSON.stringify(object)) or JS has a new global function for cloning, checkout structuredClone() developer.mozilla.org/en-US/docs/Web/API/structur…