Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

how to push value in empty array in typescript

//you need to initialise it as empty first
let x: any[] = []
x.push("any value")
 
PREVIOUS NEXT
Tagged: #push #empty #array #typescript
ADD COMMENT
Topic
Name
8+9 =