UniqueArrayConstraintsCustomCompareSelect<T, U>: UniqueArraySharedConstraints & {
    comparator: ((a, b) => boolean);
    selector: ((v) => 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, b) => boolean)
      • (a, b): boolean
      • The operator to be used to compare the values after having applied the selector (if any)

        Parameters

        • a: U
        • b: U

        Returns boolean

        Remarks

        Since 2.23.0

  • selector: ((v) => U)
      • (v): U
      • How we should project the values before comparing them together

        Parameters

        • v: T

        Returns U

        Remarks

        Since 2.23.0

Remarks

Since 2.23.0

Generated using TypeDoc