Function prune

  • An Transformer which commutes an Observable to one result value before finishing.

    Type Parameters

    • A

    Returns Transformer<A, A>

    A new observable which publishes one value.

    Example

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

    Example

    n = 3
    

Generated using TypeDoc