Spread vs Rest Operator in JavaScript (Simple Way)
When you first see ... in JavaScript, it looks confusing.
But it’s actually doing just two things:
expanding values
collecting values
That’s it.
What spread operator does
Spread is used to expand
kumar-rishabh.hashnode.dev2 min read