valuesbeginnerconst m = new Map([['a', 1], ['b', 2]])
for (const v of m.values()) {
console.log(v) // 1, 2
}Use Map.values() to iterate over all values in insertion order.
values() returns an iterator of the Map's values in insertion order.
Challenge: Verify that spreading values() gives the correct array.