Function pure

  • Lifts an arbitrary value of any type into an Observable of that type which will publish immediately exactly one time.

    Type Parameters

    • A

    Parameters

    • Optional value: A

    Returns Observable<A>

    Example

    const simple = pure(4);
    simple.subscribe((n: number) =>
    void console.log(`simple value: ${n}`)
    );

    Example

    # prints
    simple value: 4

Generated using TypeDoc