Open
Description
In the book, this code is demonstrated :
function foo(x, y, z) { }
var args = [0, 1, 2];
foo(...args);
This is perfectly valid ES6 code, however AFAIK the TS compiler reports an error per microsoft/TypeScript#5296
In the book, this code is demonstrated :
function foo(x, y, z) { }
var args = [0, 1, 2];
foo(...args);
This is perfectly valid ES6 code, however AFAIK the TS compiler reports an error per microsoft/TypeScript#5296