Function each

  • Create an Observable which publishes each value of an Iterable object.

    Type Parameters

    • A

    Parameters

    • it: Iterable<A>

    Returns Observable<A>

    Example

    const array = each([1, 2, 3]);
    array.subscribe(
    (n: number) => void console.log(`received: ${n}`)
    );

    Example

    # prints
    received: 1
    received: 2
    received: 3

Generated using TypeDoc