Skip to content

How to push value in empty array in TypeScript?

//you need to initialise it as empty first
let x: any[] = []
x.push("any value")
See also  Java code snippet - How to implement ddt in api?

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.