xorWith<T>(): T[]
Computes the symmetric difference between two arrays using a custom equality function. The symmetric difference is the set of elements which are in either of the arrays, but not in their intersection.
T[]
An array containing the elements that are present in either arr1
or arr2
but not in both, based on the custom equality function.