Options
All
  • Public
  • Public/Protected
  • All
Menu

Module logic

Index

Variables

logic: { allTrue: ((...expressions: (boolean | BoolFunction)[]) => boolean); anyTrue: ((...expressions: (boolean | BoolFunction)[]) => boolean); asyncAllTrue: ((...expressions: (boolean | BoolFunction | AsyncBoolFunction)[]) => Promise<boolean>); asyncAnyTrue: ((...expressions: (boolean | BoolFunction | AsyncBoolFunction)[]) => Promise<boolean>) } = ...

Type declaration

  • allTrue: ((...expressions: (boolean | BoolFunction)[]) => boolean)
      • (...expressions: (boolean | BoolFunction)[]): boolean
      • (sync) allTrue

        since

        5.15.0

        Parameters

        • Rest ...expressions: (boolean | BoolFunction)[]

        Returns boolean

        all expressions return true

  • anyTrue: ((...expressions: (boolean | BoolFunction)[]) => boolean)
      • (...expressions: (boolean | BoolFunction)[]): boolean
      • (sync) anyTrue

        since

        5.15.0

        Parameters

        • Rest ...expressions: (boolean | BoolFunction)[]

        Returns boolean

  • asyncAllTrue: ((...expressions: (boolean | BoolFunction | AsyncBoolFunction)[]) => Promise<boolean>)
      • (...expressions: (boolean | BoolFunction | AsyncBoolFunction)[]): Promise<boolean>
      • (async) allTrue

        since

        5.15.0

        Parameters

        • Rest ...expressions: (boolean | BoolFunction | AsyncBoolFunction)[]

        Returns Promise<boolean>

        all expressions return true

  • asyncAnyTrue: ((...expressions: (boolean | BoolFunction | AsyncBoolFunction)[]) => Promise<boolean>)
      • (...expressions: (boolean | BoolFunction | AsyncBoolFunction)[]): Promise<boolean>
      • (async) anyTrue

        since

        5.15.0

        Parameters

        • Rest ...expressions: (boolean | BoolFunction | AsyncBoolFunction)[]

        Returns Promise<boolean>

Functions

  • allTrue(...expressions: (boolean | BoolFunction)[]): boolean
  • (sync) allTrue

    since

    5.15.0

    Parameters

    • Rest ...expressions: (boolean | BoolFunction)[]

    Returns boolean

    all expressions return true

  • anyTrue(...expressions: (boolean | BoolFunction)[]): boolean
  • (sync) anyTrue

    since

    5.15.0

    Parameters

    • Rest ...expressions: (boolean | BoolFunction)[]

    Returns boolean

  • asyncAllTrue(...expressions: (boolean | BoolFunction | AsyncBoolFunction)[]): Promise<boolean>
  • (async) allTrue

    since

    5.15.0

    Parameters

    • Rest ...expressions: (boolean | BoolFunction | AsyncBoolFunction)[]

    Returns Promise<boolean>

    all expressions return true

  • asyncAnyTrue(...expressions: (boolean | BoolFunction | AsyncBoolFunction)[]): Promise<boolean>
  • (async) anyTrue

    since

    5.15.0

    Parameters

    • Rest ...expressions: (boolean | BoolFunction | AsyncBoolFunction)[]

    Returns Promise<boolean>