Static
emptyCreates an empty Enumerable.
const empty = Enumerable.empty();
A new empty Enumerable.
Static
fromCreates a new Enumerable from the input Iterable.
const numbers = [1, 2, 3, 4];
const enumerable = Enumerable.from(numbers);
A new Enumerable.
The Iterable to create an Enumerable from.
Static
fromCreates a new Enumerable from the input object.
const obj = {
foo: 1,
bar: 'b'
};
const enumerable = Enumerable.from(obj);
A new Enumerable.
The object to create an Enumerable from.
Static
isDetermines if the passed in object is an Enumerable.
True if the obj is an Enumerable. False if not.
The item to test if it is an Enumerable or not.
Static
rangeGenerates a sequence of integral numbers within a specified range.
An IEnumerable
The value of the first integer in the sequence.
The number of sequential integers to generate.
Static
repeatGenerates a sequence that contains one repeated value.
TResult The type of the value to be repeated in the result sequence.
An IEnumerable
The value to be repeated.
The number of times to repeat the value in the generated sequence.
Generated using TypeDoc
Provides a set of static methods for IEnumerable.