Hacker News new | past | comments | ask | show | jobs | submit login

deepClone is convenient, when you want to modify a field that's deep inside the object.



You should only be cloning the modified object, not every single object in the array. That's what making things slow!


Yep mystery solved




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: