Spread vs Rest Operators in JavaScript
What spread operator does :
Spread operator work is to expand any array or object.
Example :
Merge Arrays :
result will be [1,2,3,4]
the spread operator is used to expand the elements of an array
polyfil.hashnode.dev3 min read