map.get(‘yosuke’) // ‘JavaScript’ map.keys() // keyͷIterator for (var k of map.keys()) {console.log(k)} map.values() // valueͷIterator for (var v of map.values()) {console.log(v)} map.has(‘yosuke’) // true // forEachͰ͖Δ map.forEach((k, v) => console.log(k,v))
set.forEach(x => console.log(x)) // ࣮keysͱvaluesϝιου͋Δ for (var k of set.keys()) {console.log(k)} for (var v of set.values()) {console.log(v)} 4FU .BQ͕͑ΔΑ͏ʹͳͬͨɻ