compat-table
compat-table copied to clipboard
es6 rest destructuring in arguments
Rest destructuring in arguments should work just as assignment destructuring (does not work in babel, firefox & safari) so there is a compat issue here.
((...[, v,, u]) => [v, u] )(1, 2, 3, 4)
returns
[2, 4]
Assignment example for reference:
(() => { let [a, b, ...[[c]]]= [1, 2, [3]]; return [a, b, c] })()
returns
[1, 2, 3]
Can you please provide PR or describe the problem in more details?
@chicoxyzzy ok ! I started with a PR, but I shied away :) I'll take another PR as example, and should be able to provide a proper test.