javascript
stackoverflow: using es6 spread operator
Using ES6 Spread Operator in JavaScript ES6 spread operator is a new feature introduced in JavaScript that allows us to expand iterable objects such as arrays, objects, or strings into single elements. It is denoted by three dots (...). Using Spread Operator with Arrays With arrays, the spread operator can be