Skip to content

Spread parameters #79

Open
Open
@vjau

Description

@vjau

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions