OptionalequalsA custom function for determining equality. If not specified, strict equality (===) is used.
OptionalonInvoked for each pair of items in the first and second arrays that are considered equivalent. Note that if there are multiple items in the second array that could match a given item in the first, the callback will only be invoked for the first match.
OptionalonInvoked for each item in the first array that isn't in the second.
The missing item.
The index of the missing item in the first array.
OptionalonInvoked for each item in the second array that isn't in the first.
The new item.
The index of the new item in the second array.
Options that can be passed to compare.