Finds all duplicated elements in an array and returns an array containing one of each.
Can be passed a custom equality function, see equals option.
equals
Optional
Use a custom equality comparison function to check for a complex value's equality (e.g. two different instanced of a class or object might be considered equal if their properties are.)
Finds all duplicated elements in an array and returns an array containing one of each.
Can be passed a custom equality function, see
equals
option.