Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace Option

Index

Functions

and

andThen

contains

  • contains<T>(opt: OptionType<T>, value: T): boolean

filter

flatten

isNone

isSome

map

mapOr

  • mapOr<T, U>(opt: OptionType<T>, defaults: U, fn: (inner: T) => U): U
  • Type parameters

    • T

    • U

    Parameters

    • opt: OptionType<T>
    • defaults: U
    • fn: (inner: T) => U
        • (inner: T): U
        • Parameters

          • inner: T

          Returns U

    Returns U

mapOrElse

  • mapOrElse<T, U>(opt: OptionType<T>, defaults: () => U, fn: (inner: T) => U): U
  • Type parameters

    • T

    • U

    Parameters

    • opt: OptionType<T>
    • defaults: () => U
        • (): U
        • Returns U

    • fn: (inner: T) => U
        • (inner: T): U
        • Parameters

          • inner: T

          Returns U

    Returns U

none

or

orElse

some

toResult

toResultElse

transpose

unwrap

unwrapOr

unwrapOrElse

  • unwrapOrElse<T>(opt: OptionType<T>, defaults: () => T): T

xor

zip

zipWith

Generated using TypeDoc