type Product = { productId: number; price: number; discount: number }; let myarray: Product[]; let priceListMap : Map<number, Product[]> = new Map<number, Product[]>();