Function intoFallback

  • Creates a converter that converts an input control to the one replacing undefined value with fallback one.

    Treats null values as undefined. Despite the signature does not allow nulls they are often used instead. E.g. when receiving JSON from server.

    Type Parameters

    • TValue

      Input value type.

    Parameters

    • fallback: TValue

      A fallback value that is used instead of original one when undefined (ornull) is assigned to converted control.

    Returns InConverter<TValue, TValue | undefined>

Generated using TypeDoc