Function valueOr

  • Returns the supplied value if it is not undefined otherwise it returns the or value.

    Type Parameters

    • T

    Parameters

    • value: undefined | T

      The Value that could be undefined

    • or: T

      The fallback value

    Returns T

Generated using TypeDoc