The values() method of the Map object returns an iterator object that contains the values for each key/value pair in the map in insertion order.
const map = new Map([
['0', 'foo'],
[1, 'bar']
]);
// iterator object
const iterator = map.values();
console.log(iterator.next().value);
// "foo"
console.log(iterator.next().value);
// "bar"