Function arraysIsEqual

  • Function for recursively checking the equality of two arrays. One can choose to ignore the order of items if ignoreOrder is passed as true.

    Parameters

    • a1: readonly unknown[]

      The first array to consider.

    • a2: readonly unknown[]

      The second array to consider.

    • Optional ignoreOrder: boolean

      Flag which decides whether the order should be ignored.

    Returns boolean

    {boolean} Returns if the arrays are equal (true) or not (false).

Generated using TypeDoc