/** * This method is like `uniq` except that it accepts iteratee which is * invoked for each element in array to generate the criterion by which * uniqueness is computed. The order of result values is determined by the * order they occur in the array. The iteratee is invoked with one argument: (value). * Drop-in replacement for lodash/uniqBy. */ export default function uniqBy(array: T[], iteratee: ((value: T) => any) | string): T[];