Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

Const filter

  • filter applies a precondition to each member of an array producing an array where only the successful members are kept.

    Type parameters

    • A

    • B

    Parameters

    Returns Precondition<A[], B[]>

Const isArray

  • isArray tests if the value is an array

    Type parameters

    • A

    Parameters

    Returns Either<Failure<any>, A[]>

Const map

  • map applies a precondition to each member of an array.

    If the precondition fails for any of the members, the entire array is considered a failure.

    Type parameters

    • A

    • B

    Parameters

    Returns Precondition<A[], B[]>

Const max

  • max sets a maximum number of elements the array can contain.

    Type parameters

    • A

    Parameters

    • target: number

    Returns Precondition<A[], A[]>

Const min

  • min sets a minimum number of elements the array can contain.

    Type parameters

    • A

    Parameters

    • target: number

    Returns Precondition<A[], A[]>

Const notEmpty

  • notEmpty<A>(value: A[]): Either<Failure<A[]>, A[]>
  • notEmpty tests if an array has at least one member.

    Type parameters

    • A

    Parameters

    • value: A[]

    Returns Either<Failure<A[]>, A[]>

Const range

  • range<A>(min: number, max: number): (Anonymous function)
  • range tests whether an array's length falls within a specific min and max range.

    Type parameters

    • A

    Parameters

    • min: number
    • max: number

    Returns (Anonymous function)

Const tuple

  • tuple tests whether the value supplied qualifies as a tuple.

    Each precondition in the list represents a precondition for its corresponding tuple element.

    Type parameters

    • A

    • B

    Parameters

    Returns Precondition<A[], B[]>

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