Skip to main content

Function: noBias()

noBias<T>(arb): Arbitrary<T>

Defined in: packages/fast-check/src/arbitrary/noBias.ts:35

Build an arbitrary without any bias.

The produced instance wraps the source one and ensures the bias factor will always be passed to undefined meaning bias will be deactivated. All the rest stays unchanged.

Type Parameters

Type Parameter
T

Parameters

ParameterTypeDescription
arbArbitrary<T>The original arbitrary used for generating values. This arbitrary remains unchanged.

Returns

Arbitrary<T>

Remarks

Since 3.20.0