• Creates a new Enumerable from the input Iterable.

    Example

    const numbers = [1, 2, 3, 4];
    const enumerable = from(numbers);

    Typeparam

    TSource The type of the Iterable.

    Returns

    A new Enumerable.

    Type Parameters

    • TSource

    Parameters

    • src: Iterable<TSource>

      The Iterable to create an Enumerable from.

    Returns IEnumerable<TSource>

Generated using TypeDoc