Spread vs Rest Operators in JavaScript
JavaScript introduced the ... syntax to make working with arrays, objects, and function parameters much easier.
But here’s the interesting part:
The same ... syntax can behave as:
Spread Operator
Re
kushagrablogs.hashnode.dev4 min read