Iterator helpers are a collection of new methods on Iterator prototype that help in general use of iterators. They include map, filter, take, drop, flatMap, reduce, toArray, forEach, some, every, and find. These helpers are shipped in V8 v12.2.
•5m read time• From v8.dev
Table of contents
.map(mapperFn) #.filter(filtererFn) #.take(limit) #.drop(limit) #.flatMap(mapperFn) #.reduce(reducer [, initialValue ]) #.toArray() #.forEach(fn) #.some(fn) #.every(fn) #.find(fn) #Iterator.from(object) #Availability #Import attribute support #Sort: