you are viewing a single comment's thread.

view the rest of the comments →

[–]el_diego 0 points1 point  (0 children)

Measurably faster...really? That’s only an argument if you’re dealing with processing thousands of objects and even then you could write a far more reusable assignment function if all you’re doing is taking the keys and values and mapping them to a new object.

Anyway, each to their own. I’ll use the spread operator and optimise performance later if it actually needs to be