DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
5+4 =
Submit