Abstract
Returns a new AugmentedIterator that will only yield values for which filter returns true
The filtering function you wish to use
Returns a new AugmentedIterator that will run mapper over each item before yielding
Because we return another AugmentedIterator instance, this call is chainable.
the return type from mapper, will also become the new TValue type of the returned AugmentedIterator
the mapping function you want to be run over all values
Abstract
nextReturns a new AugmentedIterator that has access to the last value yielded OR initial the same way a reduce would normally work over say an array.
the return type of reducer, and of initial; will also become the TValue type of the returned AugmentedIterator
the function you want to use as a reducer. Takes arguments in (carry,item) order. The first time we yield a value carry will be initial, after which it will be the previously returned value from reducer.
the value we should pass to reducer the first time we yield a value.
Generated using TypeDoc
An AugmentedIterator represents one of the IterableIterators we return. This abstract class is exported only to provide type/intellisense information, and should be only implemented internally.