<reponame>CMENDOZA1036/NewProjects<filename>.quokka/interactive-examples/JavaScript/map/map-prototype-@@iterator.js<gh_stars>0var map1 = new Map();

map1.set('0', 'foo');
map1.set(1, 'bar');

var iterator1 = map1[Symbol.iterator]();

for (let item of iterator1) {
  console.log(item);
  // expected output: Array ["0", "foo"]
  // expected output: Array [1, "bar"]
}