A type of iterable.
Object property entry. This is a tuple consisting of property key and value.
Creates an iterable with all source iterable elements that pass the test implemented by the provided function.
A type of source elements.
A source iterable.
A predicate function to test each element. Returns true to keep the element, or false otherwise.
It accepts the tested element as the only parameter.
A new iterable with the elements that pass the test. If no elements passed the test, an empty iterable will be returned.
Creates an iterable with all source iterable elements extending the given type.
A type of source elements
Target type.
A source iterable.
A predicate function to test that element extends the type R. Returns true to keep the element, or
false otherwise. It accepts the tested element as the only parameter.
A new iterable with the elements that pass the test. If no elements passed the test, an empty iterable will be returned.
Flattens the source iterable of iterables into a new iterable.
Calling this function is the same as calling flatMapIt(source, asis).
A type of source elements.
A source iterable of iterables.
A new iterable with each element of source being the flattened.
First maps each element of the source iterable using a mapping function, then flattens the result into a new
iterable.
A type of source elements.
A type of converted elements.
A source iterable.
A function that produces a new iterable, taking the source element as the only parameter.
A new iterable with each element being the flattened result of the convert function call.
Performs the given action for each element of the given iterable.
A type of iterable elements.
An iterable of elements to perform actions on.
An action to perform on each iterable element. This is a function accepting an element as its only parameter.
Checks whether the given iterable is empty.
Iterable to check for elements.
true if the given iterable contains at least one element, or false otherwise.
Tests whether all elements of the given iterable pass the test implemented by the provided function.
A type of iterable elements.
An iterable to test elements of.
A predicate function to test each element. Returns true to continue tests, or false to stop it
and return false from the method call. It accepts the tested element as the only parameter.
true if the test function returned a truthy value for every element, or false otherwise.
Returns true for empty iterable.
Returns the first element of the given iterable.
A type of iterable elements.
Iterable to extract element from.
Either the first element, or undefined if the given iterable is empty.
Builds an iterable iterator over the given iterable.
An iterable to iterate over.
An iterator.
Starts iteration over the given iterable.
This is a shortcut for iterable[Symbol.iterator] to make it friendlier to minification.
An iterable to iterate over.
An iterator.
Returns the last element of the given iterable.
If the given iterable is an array-like structure, then just returns its last element. If it is revertible,
then extracts the first element of reverted one. Otherwise iterates over elements to find the last one.
A type of iterable elements.
Iterable to extract element from.
Either the last element, or undefined if the given iterable is empty.
Applies a function against an accumulator and each element of the given iterable to reduce elements to a single
value.
A type of iterable elements.
A type of reduced value.
An iterable to reduce values of.
A function to apply the value returned from the previous reducer call and to each element.
Initial value passed to the first reducer call.
Reduced value returned from the last reducer call, or initialValue if there is no elements in the given
iterable.
Checks whether the given iterable is revertible.
This is always true for arrays.
Iterable to check.
true if iterable has a reverse property, or false otherwise.
Tests whether at least one element of the given iterable passes the test implemented by the provided function.
A type of iterable elements.
An iterable to test elements of.
A predicate function to test each element. Returns false to continue tests, or true to stop it
and return true from the method call. It accepts the tested element as the only parameter.
true if the callback function returned a truthy value for at least one element in the array, or false
otherwise. Returns false for empty iterable.
Creates custom iterable.
A no-arg function constructing an iterator.
When undefined or unspecified the created iterable won't be reversible.
New iterable.
Creates custom revertible iterable.
A no-arg function constructing an iterator.
A no-arg function constructing a reverse iterable.
New reversible iterable.
Creates a new iterable with the results of calling a provided function on every element of the source one.
A type of source elements.
A type of converted elements.
A source iterable.
A function that produces an element of the new iterable, taking the source element as the only parameter.
Creates a next call in iterable call chain that performs the next passes for each element of the given iterable.
This call passes elements to the next call on demand. While the nextEach() one transforms them all at once,
and iterates over results after that.
An iterable containing elements to pass down the chain.
Next call for iterable call chain.
Builds a revertible iterable over elements of array-like structure.
An array-like structure. E.g. Array, DOM NodeList, etc.
A revertible iterable over array elements.
Builds an iterable over the key/value entries of the given object.
A list of keys is constructed using Reflect.ownKeys().
An object to select keys and values from.
Builds an iterable over the keys of the given object.
A list of keys is constructed using Reflect.ownKeys().
An object to select keys from.
Returns an iterable without elements.
A type of constructed iterable elements.
An empty iterable instance revertible to itself.
Constructs an iterable of array-like structure elements in reverse order.
Source array.
An iterable of the source elements in reverse order.
Constructs a reversed iterable.
If the source iterable is an array-like structure, then uses reverseArray() function to revert the constructed
iterable.
If the source iterable is revertible, then uses its reverse() method to revert the constructed one.
Otherwise stores elements to array and reverts them with reverseArray() function.
A source iterable.
An iterable of the source elements in reverse order.
Passes each element of the given iterable trough the chain of transformation passes.
The passes are preformed by @proc7ts/call-thru.
An iterable of transformed elements.
Extends an iterable class with AIterable API.
A type of iterable class to extend.
A type of elements to iterate.
A class to extend.
A new class extending original iterableClass and implementing the missing AIterable methods.
Generated using TypeDoc
A type of elements of iterable.