setDifference function
setDifference(Object mainSet, Object excludeSet)
Computes the difference between two arrays. The first parameter is the main set, and the second parameter is the exclude set to subtract from the whole set. Elements in the second set 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