Creates a Predicate that checks if an Iterable contains only unique values.
const iterable = [1,2,3,2];const result = isDistinct()(iterable);console.log(result); // false
the new Predicate
the optional key extractor, defaults to identity
Generated using TypeDoc
Creates a Predicate that checks if an Iterable contains only unique values.
Example
Returns
the new Predicate