Function comparatorWithPredicate

  • Creates a new ComparatorWithPredicateFactory, with the given first comparator and predicate.

    See

    ComparatorWithPredicateFactory

    Type Parameters

    Type Parameters

    • U

    Parameters

    • predicate: ((value: any) => value is U) | ((value: U) => boolean)

      a predicate that indicates if the following comparator can handle the value

    • comparator: Comparator<U>

      a comparator for the incoming value

    Returns ComparatorWithPredicateFactory<U>

Generated using TypeDoc