Answers for "how to push value in empty array in typescript"

0

how to push value in empty array in typescript

//you need to initialise it as empty first
let x: any[] = []
x.push("any value")
Posted by: Guest on August-05-2021

Code answers related to "how to push value in empty array in typescript"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language