Mapはキーとそれに対応する値に対したコレクション
キーはオブジェクトを含め任意の値が入れられる
const map = new Map();
map.set("name", "John");
map.set("age", "20");
console.log(map.get("name")); // 'John'
Map<キーの型, 値の型> で定義できる
let people: Map<string, number>;
for (... of ...) でキーと値の配列を一つずつ取得できる
for (const [key, value] of map) {
console.log(key, value);
}