Abstract Returns true if any of the items match the predicate, otherwise false
Optional predicate: Predicate<T>if (myEnumerable.any()) {
// do something because the enumerable has elements
}
let myEnumerable = new ArrayEnumerable([1, 2, 3, 4]);
if (myEnumerable.any((i) => i == 2)) {
// the enumerable contains a '2'
}
Adds a value to the end of the sequence.
Returns the average of the numbers selected by the selector
Concatenates two sequences.
Returns the unique items designated by the selector
Returns the first item in the enumerable
Optional predicate: Predicate<T>Returns the first item in the enumerable or null
Optional predicate: Predicate<T>Abstract getreturns an Enumerator for the items
Groups the items by the key selector using the default comparer
Private internalReturns the item at the specified index
The index of the item to return
Returns the last item in the enumerable
Optional predicate: Predicate<T>Returns the last item in the enumerable or null
Optional predicate: Predicate<T>Returns the largest number designated by the selector
Returns the smallest number designated by the selector
Returns an enumerable of items that match the type
the type
Orders the enumerable by the the selector and optional comparer ascending
Optional comparer: IComparer<R>Orders the enumerable by the the selector and optional comparer descending
Optional comparer: IComparer<R>Adds a value to the beginning of the sequence.
Selects the items by the selector
Returns a single element only if there is one element in the enumerable
Optional predicate: Predicate<T>InvalidOperationException if there is not exactly one item in the enumerable
Returns a single element only if there is one element in the enumerable. If there are no items in the enumerable, then null is returned
Optional predicate: Predicate<T>InvalidOperationException if there is not exactly one or zero items in the enumerable
Skips the number of items specified. If the count is larger than the size of the enumerable, no items will be returned.
the number of items to skip
Splits a enumerable into two queryables. One set is for true predicates, the other set is for false predicates.
Sums the items in the enumerable using the selector
selector to return the number to be summed
Takes the number of specified items from the enumerable. If the count is larger than the size of the enumerable, all items will be returned
the number of items to take.
Returns a dictionary based on the key and value selctors
Filters the enumerable by the predicate
the filter for each item.
Generated using TypeDoc
Returns true if all the items match the predicate, otherwise false