Given an equality function elemEquals and two arrays a1 and a2, returns a boolean telling if the two arrays are equal according to this equality function. This function is curried on its first parameter
elemEquals
a1
a2
a function to compare elements of the array
a function to compare the arrays themselves
arrayEquals()([1], [1]) // -> truearrayEquals()([1], [3]) // -> falsearrayEquals((a,b) => (a-b)%2 === 0)([1], [3]) // -> true Copy
arrayEquals()([1], [1]) // -> truearrayEquals()([1], [3]) // -> falsearrayEquals((a,b) => (a-b)%2 === 0)([1], [3]) // -> true
Given an equality function
elemEquals
and two arraysa1
anda2
, returns a boolean telling if the two arrays are equal according to this equality function. This function is curried on its first parameter