/** * This method is like `uniq` except that it accepts `comparator` which * is invoked to compare elements of `array`. The order of result values is * determined by the order they occur in the array. The comparator is invoked * with two arguments: (arrVal, othVal). * * @param array The array to inspect. * @param compareFunction The comparator invoked per element. * @return Returns the new duplicate free array. * @example * * const objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 2 }] * * uniqWith(objects, isEqual) * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }] */ export declare const uniqueWith: (array: T[], compareFunction: (a: T, b: T) => boolean) => T[];