This source file modifies the prototype of Generator Function objects to provide the following functions already available to arrays, allowing them to operate on demand on generators:
-
map -
reduce -
join -
forEach -
concat -
entries -
every -
fill -
filter -
find -
push -
some
It also provides a range(start, end) generator function.
Note that unlike the original Array functions, there is no thisArg accepted, and callback functions will not receive
a reference to the existing array as there is no array, only a generator.