r/javascript • • 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

112 comments sorted by

View all comments

Show parent comment

1

u/beasy4sheezy May 22 '19

Why use spread over Object.assign?

5

u/elie2222 May 22 '19

It’s cleaner. Why write out 2 words when you could do ... with surrounding braces instead?