setDifference function
setDifference(Object mainSet, Object excludeSet)
Computes the difference between two arrays. The first parameter is the main set, and the second is the set of elements to subtract. Elements in the second set that are not found in the first set are ignored.
Parameters
- Object mainSet - the primary set of elements from which to exclude
- Object excludeSet - the set of elements to be excluded from the main set