DEV Community

Discussion on: Master Objects in JS 🍨 (Part 1)

Collapse
huzaifa99 profile image
Huzaifa Rasheed • Edited on

Good Read. Another approach for copying objects could be Object.assign which can make a deep copy. Anyways keep up the good work.

Collapse
vikkrantxx7 profile image
Vikrant Sharma

Object.assign does a shallow copy

Collapse
huzaifa99 profile image
Huzaifa Rasheed • Edited on

Oops. Sry My bad. I dont remember where I learned that. Thanks for correction.