Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "utils"

Index

Functions

Const arrayEquals

  • arrayEquals(arr1: any[], arr2: any[]): boolean
  • Returns true iff the two input arrays have strictly equal elements in the same order. (If two corresponding elements are both arrays, we will recurse on the arrays, so this function works for nested arrays.)

    Parameters

    • arr1: any[]

      First input array

    • arr2: any[]

      Second input array

    Returns boolean

    • Do the arrays have identical elements in order?

Const flipOperator

  • flipOperator(operator: string): string
  • Function that converts a V to a & and vice versa.

    Parameters

    • operator: string

    Returns string

Const someAndOther

  • someAndOther(el1: any, el2: any, cb1: function, cb2: function): boolean
  • A function that takes two elements and two functions, and checks if each function can return true for distinct elements.

    Parameters

    • el1: any

      The first element

    • el2: any

      The second element

    • cb1: function
        • (arg: any): boolean
        • Parameters

          • arg: any

          Returns boolean

    • cb2: function
        • (arg: any): boolean
        • Parameters

          • arg: any

          Returns boolean

    Returns boolean

    • Return true iff there are two pairs of functions and elements such that both pairs return true.

Generated using TypeDoc