const fn = (...a, c, d) => {
console.log(a); // [a, b]
};
fn(a, b, c, d);
const fn = (...a, c, d) => {
console.log(a); // [a, b]
};
fn(a, b, c, d);
Existing topic: Possibility to destructure last item from Array
A tip: if you want to be effective, please don't just throw syntax over the wall; if you have a proposal idea, start with describing the problem it's solving, and then suggest a potential solution.
Thanks, missed that