The second array.
Applies the given function to each element of the array and returns a new array comprised of the results for each element where the function returns a value.
A function to transform items from the input collection to a new value to be included, or undefined to be excluded.
Applies the given function to each element of the source array and concatenates all the results.
A function to transform elements of the input collection into collections that are concatenated.
Returns the number of items in the array.
Returns an array that contains no duplicate entries according to the equality comparisons on the elements. If an element occurs multiple times in the sequence then the later occurrences are discarded.
Returns an array that contains no duplicate entries according to the equality comparisons on the keys returned by the given key-generating function. If an element occurs multiple times in the sequence then the later occurrences are discarded.
A function that transforms the array items into comparable keys.
Tests if every element of the array satisfies the given predicate.
A function to test against each item of the input collection.
Tests if any element of the array satisfies the given predicate.
A function to test each item of the input collection.
Returns a new array containing only the elements of the collection for which the given predicate returns true.
A function to test whether each item in the input collection should be included in the output.
Returns the first element for which the given function returns true, otherwise undefined.
A function to test whether an item in the collection should be returned.
Returns the first element for which the given function returns true or throws if not found.
If you don't want exceptions, use find
instead.
A function to test whether an item in the collection should be returned.
Applies a key-generating function to each element of an array and yields an array of unique keys and an array of all elements that have each key.
A function that transforms an element of the collection into a comparable key.
Returns the number of items in the array.
Creates a new array whose elements are the results of applying the specified mapping to each of the elements of the source collection.
A function to transform items from the input collection.
Returns the maximum of the values returned by the selector for each element in the array.
A function to transform each element into a comparable value.
Returns the mean (average) of the values returned by the selector for each element in the array.
A function to transform each element into a summable value.
Returns the minimum of the values returned by the selector for each element in the array.
A function to transform each element into a comparable value.
Returns an array of each element in the input collection and its predecessor, with the exception of the first element which is only returned as the predecessor of the second element.
Returns a new array with the order of elements reversed.
Returns a new array ordered by the selected key. If no selector is specified, the elements will be compared directly.
An optional function to transform items of the input sequence into comparable keys.
Applies a key-generating function to each element of the array and returns a new array ordered by the keys.
A function to transform items of the input sequence into comparable keys.
Applies a key-generating function to each element of the array and returns a new array ordered by the keys, descending.
A function to transform items of the input sequence into comparable keys.
Yields an iterable ordered by the selected key descending. If no selector is specified, the elements will be compared directly.
An optional function to transform items of the input sequence into comparable keys.
Returns the sum of the values returned by the selector for each element in the array.
A function to transform each element into a summable value.
Returns a native array of the current value.
Generated using TypeDoc
Wraps the two given arrays as a single concatenated array.
chain([1]).append([2]).toArray() // [1, 2]