• Recursively go through a type T such 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>

  • Recursively go through a type T such 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
    • U

    Parameters

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

    Returns UnwrappedOption<T, U>