UNPKG

@extra-array/unique

Version:
12 lines (11 loc) 376 B
declare module "@extra-array/unique" { import type { compareFn, mapFn } from "./_types"; /** * Removes duplicate values. * @param x an array * @param fc compare function (a, b) * @param fm map function (v, i, x) */ declare function unique<T, U = T>(x: Iterable<T>, fc?: compareFn<T | U>, fm?: mapFn<T, T | U>): T[]; export = unique; //# sourceMappingURL=unique.d.ts.map}