declare array and initialize it type script code example
Example 1: typescript how to create an array instance
var myInstance:MyArrayType[] = [];
Example 2: array in typescript
const count = [...Array(5)];
count.map((_) => console.log('hi'));
var myInstance:MyArrayType[] = [];
const count = [...Array(5)];
count.map((_) => console.log('hi'));