Skip to content

Allow rest parameter may not be the last one. #4437

Closed
@heroboy

Description

@heroboy

For example, a function takes any number of parameters and return the last one.

function GetLastOne<T>(...rest:any[], last:T)
{
    return last;
}

and this: http://createjs.com/docs/easeljs/classes/Container.html#method_addChild

Metadata

Metadata

Assignees

No one assigned

    Labels

    DuplicateAn existing issue was already created

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions