Category: TypeScript

How to pass an unlimited number of arguments to a TypeScript method

TypeScript does not support the arguments keyword/object/array inside a method. Instead, it introduces a special definition in the method signature, which looks like this, for example: …args:string[]. The three dots mean that from this parameter on, you can pass as many values as you like to the method. string is the type that every object …

Read More How to pass an unlimited number of arguments to a TypeScript method