Inverse Rest Operator

const fn = (...a, c, d) => {
console.log(a); // [a, b]
};

fn(a, b, c, d);

Existing topic: Possibility to destructure last item from Array

1 Like

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.

2 Likes

Thanks, missed that