• Creates a Predicate that checks if an Iterable contains only unique values.

    Example

    const iterable = [1,2,3,2];
    const result = isDistinct()(iterable);
    console.log(result); // false

    Returns

    the new Predicate

    Type Parameters

    • T

    Parameters

    • keyExtractor: Mapper<T, unknown> = identity

      the optional key extractor, defaults to identity

    Returns Predicate<[Iterable<T>]>

Generated using TypeDoc