Herby Vojčík wrote:
function foo (...args) { let {0:b, 0:{x,y}, foo, bar, baz} = args; ... }
That's not right, if you go the long way round you want: function foo (...args) { let {0:b, 0:{x,y}, 1:foo, 2:bar, 3:baz} = args; ... } but as Allen just suggested, the right way to do it is: function foo ({b}, ...args) { let {x,y} = b; let [foo, bar, baz] = args; ... } /be _______________________________________________ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss