how to declare array in typescript having type variable code example
Example: array in typescript
const count = [...Array(5)];
count.map((_) => console.log('hi'));
const count = [...Array(5)];
count.map((_) => console.log('hi'));