Spread vs Rest Operators in JavaScript
Introduction
In modern JavaScript (ES6), we often use ... β but it can behave in two completely different ways:
π Spread Operator (expands values)
π Rest Operator (collects values)
Even though they
spread-vs-rest-operator.hashnode.dev4 min read