Returns a new sequence that contains the items in the current sequence and items from the given iterable.
Returns unique values in the sequence. Uniqueness is checked using the '===' operator.
Checks that all items in the sequence pass the test implemented by the provided function.
Returns a new sequence where items are filtered out for which the predicate function returns a falsy value.
Returns the value of the first element in the sequence that satisfies the provided testing function. Otherwise undefined is returned.
Returns the first element of the sequence or undefined if the sequence is empty.
Calls the given callback function with each item in the sequence.
Groups the items in the sequence using the given item's key
Key to be used for the grouping
Groups the items in the sequence by keys returned by the given keySelector function.
A function to extract the key for each element.
Groups the items of a sequence according to a specified key and projects the elements for each group by using a specified function.
Key to be used for the grouping
A function to map each source element to an element in an Grouping<TKey,TElement>.
Groups the elements of a sequence according to a specified key selector function and projects the elements for each group by using a specified function.
A function to extract the key for each element.
A function to map each source element to an element in an Grouping<TKey,TElement>.
Determines whether the sequence includes the given element, returning true or false as appropriate. The check is done using '==='.
Returns true if the sequence is empty, false otherwise.
Returns the first element of the sequence or undefined if the sequence is empty.
Maps each item in the sequence to an object composed of the picked object properties.
This method yields the elements from the provided items first, followed by the items in the underlying sequence.
The provided set of items that should be in the prepended to the Sequence.
Executes a reducer function on each item in the sequence resulting in a single output value.
Reverses the order of the items in the sequence
Skips the first N items in the sequence
Bypasses elements in a sequence as long as a specified condition is true and then returns the remaining elements.
A function to test each element for a condition.
Returns true if sequence contains an element for which the given predicate returns a truthy value.
Sorts the elements of a sequence in descending order according to a key by using a specified comparer.
A function to extract a key from an element.
A function to compare the keys
Sums the elements in the sequence. NOTE! If the sequence is empty, 0 is returned.
Sums the elements in the sequence NOTE! If the sequence is empty, 0 is returned.
Maps the elements in the sequence using the valueSelector and sums them together. NOTE! If the sequence is empty, 0 is returned.
A function to select a value from an element.
Maps the elements in the sequence using the valueSelector and sums them together. NOTE! If the sequence is empty, 0 is returned.
A function to select a value from an element.
Takes the firt N items from the sequence
Returns elements from a sequence as long as a specified condition is true, and then skips the remaining elements.
A function to test each element for a condition.
Converts the sequence to an array
Converts the sequence to an object using the given keySelectorFn and possible elementSelectorFn.
Converts the sequence to a Set
Converts the sequence to a string using the given separator
A string used to separate one element of a sequence from the next in the resulting String. If omitted, the elements are separated with a comma.
Returns elements from a sequence as long as they don't exist in the specified iterable items.
The provided set of items that should not be in the returned Sequence.
The optional predicate that determines if two TItem items are equal.
Generated using TypeDoc
A sequence of items