Skip to content

arrayWith

arrayWith<T, Min>(predicate, arbitrary, constraints): Dependent<ArrayOf<T, Min>>

Type Parameters

T

Min extends number = number

Parameters

predicate

(x, xs, skippedInRow, constraints) => Try<boolean>

arbitrary

Arbitrary<T>

constraints

MaybePartial<ArrayWithGenerator<T, Min>> = {}

Returns

Dependent<ArrayOf<T, Min>>