• Safely extracts the value from an Option with a fallback. Use this function when you need to convert an Option<A> to an A, providing a default value for the None case.

    Type Parameters

    • A

    Parameters

    • defaultValue: A

      The value to return if the Option is None

    Returns (option: Option<A>) => A

    The contained value if Some, defaultValue if None