Arrays of Objects in TypeScript: Declare, Type and Use Them
An array of objects in TypeScript is declared by describing one object and adding []: const products: Product[] = […], where Product is an interface or a type alias. Array<Product> means the same thing. Once the array is typed, the compiler checks every property you write and every property you read, which is the whole … Read more >>









