What's the Spread Operator Used For in JavaScript?

1 · · Dec. 5, 2019, midnight
Summary
Learn about the ES6 spread operator, and some practical uses for this powerful JavaScript feature! The spread operator is a feature of JavaScript introduced with ES6 that gives you access to the insides of an iterable object. The term “iterable object” is really just a computer science-y term for a category of data types. Specifically: arrays, objects literals, and strings. What makes them “iterable”? These kinds of JavaScript types can be traversed in some sequential fashion. For example, you c...