The values() method returns a new Iterator object that contains the values for each element in the Map object in insertion order. Below is how to use Map.prototype.values() method to get the values from a Map object.

var helloMap = new Map();
helloMap.set("hello", "hello");
helloMap.set("world", "world");

var mapIter = helloMap.values();

alert( + " " +; 

Like this post? Kindly share!