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