Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

typescript declare array of maps

type Product = { productId: number; price: number; discount: number };
let myarray: Product[];
let priceListMap : Map<number, Product[]> = new Map<number, Product[]>();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #typescript #declare #array #maps
ADD COMMENT
Topic
Name
9+7 =