📜  typescript initialize map inline - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:31.828000             🧑  作者: Mango

代码示例1
new Map([
  ["key1", "value1"],
  ["key2", "value2"]
]);

new Map>([
  ["key1", ["value1", "value2"]],
  ["key2", ["value3"]]    
]);