typescript initialize object array code example
Example: typescript array of objects
// Create an interface that describes your object
interface Car {
name: string;
brand: string;
price: number;
}
// The variable `cars` below has a type of an array of car objects.
let cars: Car[];