Skip to main content

CommonArraysEqual

Callable

  • CommonArraysEqual(a1: readonly any[], a2: readonly any[], ignoreOrder?: boolean): boolean

  • Checks whether two arrays are equal. The arrays are considered equal if they have the same length and contain the same items in the same order, as determined by === comparison


    Parameters

    • a1: readonly any[]

      The first array to compare

    • a2: readonly any[]

      The second array to compare

    • optionalignoreOrder: boolean = false

      Whether to ignore item order when considering equality

    Returns boolean

    • TRUE if both arrays have the same length and contain the same items in the same order, FALSE otherwise