Constraints to be applied on subarray

Since 2.4.0

interface SubarrayConstraints {
    maxLength?: number;
    minLength?: number;
}

Properties

maxLength?: number

Upper bound of the generated subarray size (included)

The length of the original array itself

Since 2.4.0

minLength?: number

Lower bound of the generated subarray size (included)

0

Since 2.4.0