API Reference | fast-check | Property based testing framework
    Preparing search index...

    Interface SubarrayConstraints

    Constraints to be applied on subarray

    Since 2.4.0

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

    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