Closed
Description
Doesn't work because the IArguments interface isn't defined as an Array type. Is there a reason behind this?
Example:
function test () {
var [a] = arguments; // Error: Type 'IArguments' is not an array type.
}
One solution is doing this:
function (...args) {
var [ one, two, three ] = args;
}