Right now to make a new object out of an existing object I stringify it, then parse it into a new variable. Is there a better way?
eg:
let newObject = JSON.parse(  JSON.stringify(originalObject)  )
Right now to make a new object out of an existing object I stringify it, then parse it into a new variable. Is there a better way?
eg:
let newObject = JSON.parse(  JSON.stringify(originalObject)  )
