DEV Community

Discussion on: Share a quick tip you learned about web dev this year

 
urielbitton profile image
Uriel Bitton

Sweet. Definitely useful! Thanks

Thread Thread
 
spiritupbro profile image
spiritupbro

i found it here the original post

Thread Thread
 
dinsmoredesign profile image
Derek D

You can do the same with objects. Keep in mind, this doesn't deep clone. So if you intend to change the values in any way, you'll still be mutating the pointer, and by consequence, the original object.