Understanding the Spread and Rest Operators in JavaScript
Modern JavaScript introduced the spread (...) and rest (...) operators to make working with arrays, objects, and function arguments much easier. Although they use the same syntax, they serve different
spreadandrestoperators.hashnode.dev3 min read