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-isstrictlyequalOptional
selector?: (v: T) => UHow we should project the values before comparing them together
Constraints implying known and optimized comparison function to be applied on uniqueArray