Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

How to store and mix types in an Array in typescript

let type:(string | number)[] = [ 'hello', 'world', 20, 40, 'goodbye' ];
Source by devdojo.com #
 
PREVIOUS NEXT
Tagged: #How #store #mix #types #Array #typescript
ADD COMMENT
Topic
Name
5+4 =