Spread vs Rest in JavaScript: The Same Dots, Two Different Jobs
If you have been writing JavaScript for a while, you have probably seen those three dots ... everywhere. In one place they expand an array into pieces. In another place they scoop up leftover argument
web-dev2026.hashnode.dev7 min read