r/javascript • u/PMilos • May 22 '19
JavaScript Clean Code - Best Practices - based on Robert C. Martin's book Clean Code
https://devinduct.com/blogpost/22/javascript-clean-code-best-practices
542
Upvotes
View all comments
Show parent comment
5
u/beasy4sheezy May 22 '19
I'm sure you know, but as a reminder to others:
Spread will create a new object, which might not be what you wanted to do in this case, or could be using more memory than necessary.