Function fromObsLike

  • FromObsLike gets a value and returns an observable. Special cases:

    • If source is an Observable it is returned as is.
    • Else if source is a string it will emits the string as a whole.
    • Else if source is an Array it will emit the Array as a whole or not depending on the treatArraysAsValues parameter.
    • Else if source is an ObservableInput it will emit the unwrapped value.
    • Else it will emit the value as is.

    Default

    true

    Returns

    Observable

    Type Parameters

    • T

    • A extends boolean = true

    Parameters

    • source: T

      Something to turn into an observable

    • treatArraysAsValues: A = ...

    Returns ToObservable<T, A>

Generated using TypeDoc