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

    Type Alias UniqueArrayConstraintsCustomCompare<T>

    UniqueArrayConstraintsCustomCompare: UniqueArraySharedConstraints & {
        comparator: (a: T, b: T) => boolean;
        selector?: undefined;
    }

    Constraints implying a fully custom comparison function to be applied on uniqueArray

    WARNING - Imply an extra performance cost whenever you want to generate large arrays

    Type Parameters

    • T

    Type declaration

    • comparator: (a: T, b: T) => boolean

      The operator to be used to compare the values after having applied the selector (if any)

      Since 2.23.0

    • Optionalselector?: undefined

      How we should project the values before comparing them together

      Since 2.23.0

    Since 2.23.0