UniqueArrayConstraintsCustomCompare<T>: UniqueArraySharedConstraints & {
    comparator: ((a, b) => 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, b) => boolean)

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

    Remarks

    Since 2.23.0

      • (a, b): boolean
      • Parameters

        Returns boolean

  • Optional selector?: undefined

    How we should project the values before comparing them together

    Remarks

    Since 2.23.0

Remarks

Since 2.23.0