typescript initialize map inline code example
Example: typescript initialize map inline
new Map([
["key1", "value1"],
["key2", "value2"]
]);
new Map>([
["key1", ["value1", "value2"]],
["key2", ["value3"]]
]);
new Map([
["key1", "value1"],
["key2", "value2"]
]);
new Map>([
["key1", ["value1", "value2"]],
["key2", ["value3"]]
]);