Understanding Spread and Rest Operators in JavaScript
The spread (...) and rest (...) operators are modern JavaScript features that make working with arrays, objects, and function arguments easier.
Even though both use the same syntax, they work differen