Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

how to define optional parameter in typescript

function functionName(par1: number, par2?: number) {

}
Source by dotnetpattern.com #
 
PREVIOUS NEXT
Tagged: #define #optional #parameter #typescript
ADD COMMENT
Topic
Name
3+9 =