There is plenty of documentation on how to destructure objects passed as function parameters in Javascript 2015 / ES6 / ECMAScript 2015, with a function like this:
function foo({a, b}) {
console.log(`a: ${a}, b: ${b}`);
}
But how do you destructure an array parameter?
See Question&Answers more detail:os