API Reference | fast-check | Property based testing framework

    Type Alias UniqueArrayConstraintsCustomCompareSelect<T, U>

    UniqueArrayConstraintsCustomCompareSelect: UniqueArraySharedConstraints & {
        comparator: (a: U, b: U) => boolean;
        selector: (v: T) => U;
    }

    Constraints implying fully custom comparison function and selector to be applied on uniqueArray

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

    Type Parameters

    • T
    • U

    Type declaration

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

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

      Since 2.23.0

    • selector: (v: T) => U

      How we should project the values before comparing them together

      Since 2.23.0

    Since 2.23.0

    MMNEPVFCICPMFPCPTTAAATR