Optional
comparator?: "SameValue" | "SameValueZero" | "IsStrictlyEqual"The operator to be used to compare the values after having applied the selector (if any):
Object.is
— https://tc39.es/ecma262/multipage/abstract-operations.html#sec-samevalueSet
or Map
— https://tc39.es/ecma262/multipage/abstract-operations.html#sec-samevaluezero===
— https://tc39.es/ecma262/multipage/abstract-operations.html#sec-isstrictlyequal'SameValue'
Since 2.23.0
Optional
selector?: ((v) => U)How we should project the values before comparing them together
(v => v)
Since 2.23.0
Since 2.23.0
Constraints implying known and optimized comparison function to be applied on uniqueArray