Skip to main content

Function: uniqueArray()

Call Signature

uniqueArray<T, U>(arb, constraints?): Arbitrary<T[]>

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

For arrays of unique values coming from arb

Type Parameters

Type Parameter
T
U

Parameters

ParameterTypeDescription
arbArbitrary<T>Arbitrary used to generate the values inside the array
constraints?UniqueArrayConstraintsRecommended<T, U>Constraints to apply when building instances

Returns

Arbitrary<T[]>

Remarks

Since 2.23.0

Call Signature

uniqueArray<T>(arb, constraints): Arbitrary<T[]>

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

For arrays of unique values coming from arb

Type Parameters

Type Parameter
T

Parameters

ParameterTypeDescription
arbArbitrary<T>Arbitrary used to generate the values inside the array
constraintsUniqueArrayConstraintsCustomCompare<T>Constraints to apply when building instances

Returns

Arbitrary<T[]>

Remarks

Since 2.23.0

Call Signature

uniqueArray<T, U>(arb, constraints): Arbitrary<T[]>

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

For arrays of unique values coming from arb

Type Parameters

Type Parameter
T
U

Parameters

ParameterTypeDescription
arbArbitrary<T>Arbitrary used to generate the values inside the array
constraintsUniqueArrayConstraintsCustomCompareSelect<T, U>Constraints to apply when building instances

Returns

Arbitrary<T[]>

Remarks

Since 2.23.0

Call Signature

uniqueArray<T, U>(arb, constraints): Arbitrary<T[]>

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

For arrays of unique values coming from arb

Type Parameters

Type Parameter
T
U

Parameters

ParameterTypeDescription
arbArbitrary<T>Arbitrary used to generate the values inside the array
constraintsUniqueArrayConstraints<T, U>Constraints to apply when building instances

Returns

Arbitrary<T[]>

Remarks

Since 2.23.0