• Recursively go through a type Tsuch that all nested Option types are unwrapped.

    For each nested Option type, if the option is a Some, it returns its value, otherwise, it returns the provided fallback value which defaults to null.

    Type Parameters

    • T

    Parameters

    • input: T

    Returns UnwrappedOption<T>

  • Type Parameters

    • T

    • U

    Parameters

    • input: T
    • fallback: (() => U)
        • (): U
        • Returns U

    Returns UnwrappedOption<T, U>

Generated using TypeDoc