Filters an array of elements, removing duplicates. Does not guarantee order of filtered elements. An optional comparator function may be passed for arbitrary comparison behavior. The default is a strict equality comparison: `a === b`.