Spread vs Rest Operators in JavaScript
Despite both using the same three-dot syntax (...), the Spread and Rest operators perform opposite operations in JavaScript:
Spread (...) expands an iterable (like an array or object) into individual
swapnadip-syntexandstory.hashnode.dev4 min read