Arrow Functions, Destructuring & Spread
Learn Arrow Functions, Destructuring & Spread (Modern JavaScript (ES6+), JavaScript) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.
Destructuring & the Spread/Rest Operators Destructuring unpacks values from arrays or properties from objects into distinct variables in one line. The spread operator ( ... ) expands an iterable; the rest operator collects remaining items.