Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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




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

Search: