• Creates a new Enumerable from the input Iterable.

    Type Parameters

    • TSource

    Parameters

    • src: Iterable<TSource>

      The Iterable to create an Enumerable from.

    Returns IEnumerable<TSource>

    A new Enumerable.

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

    TSource The type of the Iterable.