Iterator to wrap
The presence of this method makes the Iterator itself Iterable.
This makes it possible to pass it to for of
and Iterable-accepting functions like Array.from()
Returns a new Iterator concatenating the Iterator with an additional Iterator or Iterable
Returns a new Iterator that emits slice of the source with n elements dropped from the beginning
The number of elements to drop.
Iterates and checks if predicate
returns truthy for all elements emitted by the Iterator
Returns a new Iterator that flattens items emitted by the Iterator a single level deep
Iterates and invokes iteratee
for every element emitted by the Iterator
Iterates and checks if value
is emitted by the Iterator
The value to search
Iterates and joins all elements emitted by the Iterator together as a string separated by an optional separator
Returns a new Iterator by running each element thru iteratee
Returns a { value, done }
object that adheres to the Iterator protocol
Returns a new Iterator that emits a slice of the source
Zero-based positive start index, inclusive
Zero-based positive end index, exclusive, defaults to end of iterator
Iterates and checks if predicate
returns truthy for any element emitted by the Iterator
Returns a new Iterator that emits slice of the source with n elements taken from the beginning
The number of elements to take.
Iterates and returns all items emitted by the Iterator as an array.
Equivalent to passing the Iterator to Array.from()
Iterates and returns all [key, value]
paris emitted by the Iterator as an ES6 Map.
Equivalent to passing the Iterator to new Map()
Iterates and returns all items emitted by the Iterator as an ES6 Set.
Equivalent to passing the Iterator to new Set()
Generated using TypeDoc