@extra-array/is-unique.min
Version:
Checks if there are no duplicate values.
14 lines (11 loc) • 410 B
TypeScript
declare module "@extra-array/is-unique.min" {
import type { compareFn, mapFn } from "./_types";
/**
* Checks if there are no duplicate values.
* @param x an array
* @param fc compare function (a, b)
* @param fm map function (v, i, x)
*/
declare function isUnique<T, U = T>(x: Iterable<T>, fc?: compareFn<T | U>, fm?: mapFn<T, T | U>): boolean;
export = isUnique;
//# sourceMappingURL=isUnique.d.ts.map}