t-tasks
    Preparing search index...

    Function fromNullable

    • Maybe constructor from optional or nullable value

      Resolves to 'nothing' in case of undefined or null value and 'just value' otherwise

      Parameters

      • value: undefined

        possibly undefined or null value

      Returns Nothing<never>

      either 'just value' or 'nothing'

    • Maybe constructor from optional or nullable value

      Resolves to 'nothing' in case of undefined or null value and 'just value' otherwise

      Parameters

      • value: null

        possibly undefined or null value

      Returns Nothing<never>

      either 'just value' or 'nothing'

    • Maybe constructor from optional or nullable value

      Resolves to 'nothing' in case of undefined or null value and 'just value' otherwise

      Type Parameters

      • R

        underlying type

      Parameters

      • value: Exclude<R, null | undefined>

        possibly undefined or null value

      Returns Just<R>

      either 'just value' or 'nothing'

    • Maybe constructor from optional or nullable value

      Resolves to 'nothing' in case of undefined or null value and 'just value' otherwise

      Type Parameters

      • R

        underlying type

      Parameters

      • value: R | null | undefined

        possibly undefined or null value

      Returns Maybe<R>

      either 'just value' or 'nothing'