Function arraysEqual

  • Function that will compare two arrays, if they are equal.

    Example:

    const a = [1,2,3,4,5]
    arraysEqual(a, [1,2,3,4]) // => false;
    arraysEqual(a, [1,2,3,4,5]) // => true;
    arraysEqual(a, [1,2,3,5,4], false) // => true;

    Parameters

    • a: any[]

      Array Element A

    • b: any[]

      Array Element B

    • considerOrder: boolean = true

      Flag to enable/disable Order checking

    Returns boolean

Generated using TypeDoc