• Adapt a function that may return null or undefined into a function that returns Maybe.

    Type Parameters

    • TArgs extends unknown[]

    • T

    Parameters

    • f: ((...args) => undefined | null | T)
        • (...args): undefined | null | T
        • Parameters

          • Rest ...args: TArgs

          Returns undefined | null | T

    Returns ((...args) => Maybe<T>)

      • (...args): Maybe<T>
      • Parameters

        • Rest ...args: TArgs

        Returns Maybe<T>

Generated using TypeDoc