Iterable
Index
Accessor
size
Returns the size of iterable
Type parameters
- Value
Constructor
create
Iterable constructor
Type parameters
- Value
empty
Returns an iterable that have no value
Type parameters
- Value = never
from
Type parameters
- Value
generate
Generate an iterable of
length
usingmapFn(index)
on each elementType parameters
- Value
of
Create an iterable of given
values
Type parameters
- Value
Predicate
every
Tests whether all elements in the iterable pass the test implemented by the provided function.
Type parameters
- Value
some
Tests whether any element in the iterable pass the test implemented by the provided function.
Type parameters
- Value
Type
hasInstance
Returns
true
ifanyValue
is a valid Iterable
Other
chunks
Splits an iterable into chunks of a specified size
Type parameters
- Value
concat
Concatenates multiple iterables into a single iterable
Type parameters
- Value
drop
Skips the given number of elements at the start of this iterator.
Type parameters
- Value
filter
Return a new iterable that filters values using
predicate
Type parameters
- Value
find
Returns the first element for which the given function returns true, otherwise undefined.
Type parameters
- Value
flatMap
Return a new Iterable which applies
mapFn
and concatenate the result to the previousType parameters
- ValueFrom
- ValueTo
map
Return a new Iterable which applies
mapFn
to each valuesType parameters
- ValueFrom
- ValueTo
reduce
Reduce an
initialValue
to thereducer
functionType parameters
- Value
- Return
take
Take a specified number of elements from an iterable.
Type parameters
- Value
zip
Combine two iterables into an iterable of couple of their values. The result has the size of the smallest iterable used.
Type parameters
- L
- R
A collection of functions to manipulate Iterable