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