4 ms·
ES6 does allow that via destructuring - https://babeljs.io/repl/#?experimental=true&evaluate=true&loose=false&spec=false&playground=true&code=function%20fxn(a%2
by Arnavion 11y ago
ES6 does allow that via destructuring - https://babeljs.io/repl/#?experimental=true&evaluate=true&loose=false&spec=false&playground=true&code=function%20fxn(a%2C%20%5Bb%2C%20c%5D%2C%20d)%20%7B%0A%20%20console.log(a%2C%20b%2C%20c%2C%20d)%3B%0A%7D https://babeljs.io/repl/#?experimental=true&evaluate=true&lo...
function fxn(a, [b, c], d) {
console.log(a, b, c, d);
}