• Checks if two Arrays are equal

    Example

    const array1 = [1, 2, 3];
    const array2 = [1, 3, 2];
    const result = equal(array1)(array2);
    console.log(result); // false

    Returns

    true if both Arrays have the same elements in the same order, otherwise false

    Type Parameters

    • T

      the Array element type

    Parameters

    Returns ((arrayA: T[]) => boolean)

      • (arrayA: T[]): boolean
      • Parameters

        • arrayA: T[]

        Returns boolean

Generated using TypeDoc