Spread vs Rest Operators
What Spread Operator Does?
The spread operator is used to expand (unpack) values.
It takes elements from an array/object and spreads them out.
Example with Arrays:
const nums = [1, 2, 3];
const newNu
ayushblogjs.hashnode.dev2 min read