A type of elements.
Determines whether all elements in this iterable satisfy the specified test.
A function that accepts an element as its only parameter. The every
method calls the
test
function for each element until the true
returns false
, or until the end of iterable.
Returns the elements of this iterable that meet the condition specified in a callback function.
A function that accepts an element as its only parameter. The filter
method calls the
test
function one time for each element.
Returns the elements of this iterable that meet the condition specified in a callback function.
A function that accepts an element as its only parameter. The filter
method calls the
test
function one time for each element.
Calls a defined callback function on each element in this iterable. Then, flattens the result.
A function that accepts an element as its only parameter. The flatMap
method calls the
map
function one time for each element.
Performs the specified action for each element in this iterable.
A function that accepts an element as its only parameter. The forEach
method calls the
action
function one time for each element.
Calls a defined callback function on each element in this iterable, and returns an iterable that contains the results.
A function that an element as its only parameter. The map
method calls the map
function one time for each element.
Calls the specified callback function for all the elements in this iterable. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
A function that accepts an accumulated value and an element as its parameters. The reduce
method calls the reducer
function one time for each element.
Used as the initial value to start the accumulation. The first call to the reducer
function provides this value as the first parameter.
Returns an iterable containing this iterable's elements in reverse order.
This method may reverse the elements in place, like arrays do.
Reversed iterable instance.
Determines whether some element in this iterable satisfies the specified test.
A function that accepts an element as its only parameter. The some
method calls the
test
function for each element until the test
returns true
, or until the end of iterable.
Generated using TypeDoc
An iterable with array-like iteration operations. Both
Array
and AIterable implement it.