Spread vs Rest Operators in JavaScript
What spread operator does
Same Syntax, Opposite Intent
The ... token introduced in ES2015 (ES6) does two conceptually opposite things depending on where it appears:
Spread — Expanding
Appears in call
joydeep.hashnode.dev7 min read