21. MEDIUM | Spread Operator in JavaScript
The spread operator (...) in JavaScript is used to expand or unpack elements of an iterable into individual elements.
Introduced in ES6.
const arr = [1,2,3];
console.log(...arr); // Output: 1, 2, 3
c
javascript-topicwise-notes.hashnode.dev2 min read