Why Spread and Rest Look the Same But Do Opposite Things in JavaScript
JavaScript introduced the spread (...) and rest (...) operators to make working with arrays, objects, and functions easier.
They look the same, but they do completely opposite jobs.
π Spread = expand
joy-swarnakar.hashnode.dev4 min read