TypeScript arrays can be written in one of two ways. You can specify the item type followed by square brackets or you can use the generic Array type as follows:
const list: number[] = [1, 2, 3];
const list: Array<number> = [1, 2, 3];
TypeScript arrays can be written in one of two ways. You can specify the item type followed by square brackets or you can use the generic Array type as follows:
const list: number[] = [1, 2, 3];
const list: Array<number> = [1, 2, 3];
3.21.21.47