Spread vs Rest Operators in JavaScript
Apr 15 · 3 min read · When working with arrays, objects, and functions in JavaScript, you will often see this syntax: ...This is used in two ways: the spread operator and the rest operator.
Even though they look the same,