AsyncIterable
Index
Accessor
size
Constructor
create
Iterable constructor
empty
Returns an iterable that have no value
generate
Generate an iterable of
lengthusingmapFn(index)on each element
of
Create an iterable of given
values
Predicate
every
Tests whether all elements in the async iterable pass the test implemented by the provided function.
some
Tests whether any element in the async iterable pass the test implemented by the provided function.
Type
hasInstance
Returns
trueifanyValueis a valid AsyncIterable
Other
chunks
Splits an async iterable into chunks of a specified size
concat
Concatenates multiple iterables into a single iterable
drop
Skips the given number of elements at the start of this iterator.
filter
Return a new iterator that filters values using
predicate
find
Returns the first element for which the given function returns true, otherwise undefined.
flatMap
Return a new Iterable which applies
mapFnand concatenate the result to the previous
map
Return a new Iterable which applies
mapFnto each values
reduce
Reduce an
initialValueto thereducerfunction
take
Take a specified number of elements from an iterable.
zip
Combine two iterables into an iterable of couple of their values. The result has the size of the smallest iterable used.
Returns the size of iterable