Skip to content
This repository has been archived by the owner on Mar 7, 2023. It is now read-only.

Latest commit

 

History

History
23 lines (16 loc) · 690 Bytes

RestParameters.md

File metadata and controls

23 lines (16 loc) · 690 Bytes

Rest Parameters

Introduction

The Rest parameters (denoted by ...parameterName for the last argument) gives the user the ability to group multiple parameters into one variable name and treat them as an array.

Rest

The Rest Parameter ...parameterName has a direct mapping to C# params keyword.

Methods with Rest Parameter:

    log(message?: any, ...optionalParams: any[]): void;
    createTouchList(...touches: Touch[]): TouchList;
    writeln(...content: string[]): void;
    void log(Object message, params Object[] optionalParams);
    TouchList createTouchList(params Touch[] touches);
    void writeln(params string[] content);