Spread vs Rest Operators in JavaScript — Same Syntax, Opposite Thinking
Most beginners get confused about the ... syntax.
Depending upon the use case , it plays two different roles in JavaScript. Primarily people get struct in this confusion .
Spread operator ( ... ) -->
sanghitadev.hashnode.dev3 min read