Spread vs Rest Operators
in JavaScript
What is the Spread Operator?
The spread operator (...) expands — it takes an array or object and spreads its items out into individual pieces.
Think of it like opening a bag of chips and pouring them
omkargupta.hashnode.dev3 min read