Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

Functions

Const isBoolean

  • isBoolean<A>(n: A): Either<Failure<A>, boolean>
  • isBoolean tests if a value is a boolean.

    Type parameters

    • A

    Parameters

    • n: A

    Returns Either<Failure<A>, boolean>

Const toBoolean

  • toBoolean<A>(value: A): Either<Failure<A>, boolean>
  • toBoolean casts a value to a boolean.

    Basically anything that is not null or undefined results in true.

    Type parameters

    • A

    Parameters

    • value: A

    Returns Either<Failure<A>, boolean>

Legend

  • Variable
  • Function
  • Function with type parameter
  • Type alias
  • Type alias with type parameter
  • Interface
  • Interface with type parameter
  • Class with type parameter

Generated using TypeDoc