Returns true if arrays contain same value items, regardless of order. Will return false if arrays are of different length.
By default uses === semantics to compare items. Pass in a comparer function or key generating function otherwise:
isEqualIgnoreOrder(arrayA, arrayB, (v) => v.name); Copy
isEqualIgnoreOrder(arrayA, arrayB, (v) => v.name);
Array
Function to compare objects or produce a string representation. Defaults to isEqualDefault
If input parameters are not correct
Returns true if arrays contain same value items, regardless of order. Will return false if arrays are of different length.
By default uses === semantics to compare items. Pass in a comparer function or key generating function otherwise: