Say we have a Map: let m = new Map();, using m.values() returns a map iterator.
let m = new Map();
m.values()
But I can\'t use forEach() or map() o
forEach()
map()
Take a look at https://www.npmjs.com/package/fluent-iterable
Works with all of iterables (Map, generator function, array) and async iterables.
const map = new Map(); ... console.log(fluent(map).filter(..).map(..));