Returns true if every element in the collection matches some conditional
The function used to check each element
A Promise wrapping a boolean stating whether or not the condition matched every element
Finds the first item in the collection matching some condition
The function to filter elements with
The found value (null if no items in the collection that match)
Gets the first item in the collection
A Promise wrapping the retrieved value (null if no items in the collection)
Gets an element from the collection by its key
The key of the element to get
A Promise wrapping the retrieved item
Gets the last item in the collection
A Promise wrapping the retrieved value (null if no items in the collection)
Maps all elements of the collection over some function
The function to map to every element in the collection
A Promise wrapping the array returned
Fetches the next element in the collection, as well as whether or not iteration is done
The next element
Gets a random element from the collection
A Promise wrapping the retrieved value (null if no items in the collection)
Reduces the collection into some value
Similar to Array#reduce
The function used to reduce each element ()
The initial value for the accumulator
A Promise wrapping the final accumulator value
Returns true if some of the elements in the collection match some conditional function
The function used to check each element
A Promise wrapping a boolean stating whether or not the condition matched at least one element
Identical to map, but returns this instead of an array
The function to map over each element
The current collection
Generated using TypeDoc
A readonly collection type
Collection
T1 The type of keys in the collection
T2 The type of values in the collection