Yields chunks of the iterable it
such that the end of a chunk is the
start of the next chunk.
Returns true if items in two iterables are equal, as
determined by the equality
function.
Return first value from an iterable, or undefined if no values are generated
Iterates over iterator
(iterable/array), calling fn
for each value.
If 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.
Returns last value from an iterable, or undefined if no values are generated
Maps an iterable of type V
to type X
.
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.
Returns a function that yields a value from a generator.
const spring = yieldNumber(Oscillators.spring
Combine same-positioned items from several iterables
Calls
callback
whenever the generator produces a value.