Function arraysAreSame

  • Tests whether the given arrays are exactly the same in length and content. If no predicate is given to compare the elements of the arrays, === will be used.

    Type Parameters

    • T

    Parameters

    • array1: T[]

      The first array to test

    • array2: T[]

      The second array to test

    • Optional comparator: Function2<T, T, boolean>

      The predicate used to compare each element of the given arrays.

    Returns boolean

    true if both arrays are equal, false otherwise.

Generated using TypeDoc