Skip to main content

Type Alias: UniqueArrayConstraintsRecommended<T, U>

UniqueArrayConstraintsRecommended<T, U> = UniqueArraySharedConstraints & object

Defined in: packages/fast-check/src/arbitrary/uniqueArray.ts:92

Constraints implying known and optimized comparison function to be applied on uniqueArray

Type Declaration

comparator?

optional comparator?: "SameValue" | "SameValueZero" | "IsStrictlyEqual"

The operator to be used to compare the values after having applied the selector (if any):

Default Value

'SameValue'

Remarks

Since 2.23.0

selector?

optional selector?: (v) => U

How we should project the values before comparing them together

Parameters

ParameterType
vT

Returns

U

Default Value

(v =&gt; v)

Remarks

Since 2.23.0

Type Parameters

Type Parameter
T
U

Remarks

Since 2.23.0