@adaptabletools/adaptable-cjs
Version:
Powerful data-agnostic HTML5 AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements
9 lines (8 loc) • 446 B
TypeScript
/**
* 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<T>(array: T[], iteratee: ((value: T) => any) | string): T[];