/** * Generate a new array which has no duplicate values. * Preserves the order of the first occurrence of each value. * Returns the original array if no duplicates were found. */ export declare const arrayUnique: (array: T[]) => T[]; /** * Generate a function for use in an array reducer which will track * and only keep the first occurrence of each value. */ export declare const uniqueReducer: () => (prev: T[], cur: T) => T[]; /** * Generate the args for an array reducer which keeps only distinct * values. * @example * const unique = items.reduce(...reduceToUnique()); */ export declare const reduceToUnique: () => [(prev: T[], cur: T) => T[], T[]]; //# sourceMappingURL=array-unique.d.ts.map