Returns true if items in two iterables are equal, as
determined by the equality
function.
Order matters. It compares items at the same 'step' of each iterable.
Filters an iterable, only yielding items which match f
.
Iterates over an async iterable or array, calling fn
for each value, with optional
interval between each loop. If the async fn
returns false, iterator cancels.
Yield values from array
, one at a time.
Use interval
to add time between each item.
The first item is yielded without delay.
Yield values from iterable
, one at a time.
Use interval
to add time between each item.
The first item is yielded without delay.
Returns last value from an iterable, or undefined if no values are generated
Maps an iterable through function f
Returns the minimum seen of an iterable as it changes. Streaming result: works with endless iterables.
Returns the next IteratorResult,
throwing an error if it does not happen
within interval
(default: 1s)
This generator will repeat another generator up until some condition. This is the version that can handle async generators.
Returns an array of values from an iterator.
Loops over a generator until it finishes, calling callback
.
Useful if you don't care about the value generator produces, just the number of loops.
Enumerates over an input iterable, with a delay between items.
Combine same-positioned items from several iterables
Calls
callback
whenever the async generator produces a value.