reports/frontend/node_modules/es-toolkit/dist/compat/array/uniqBy.d.mts
jtricerolph 1c411e402e Add settings page for managing forecasting API key and URL via UI
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-07-20 14:37:36 +00:00

18 lines
No EOL
595 B
TypeScript

import { ValueIteratee } from "../_internal/ValueIteratee.mjs";
//#region src/compat/array/uniqBy.d.ts
/**
* Creates a duplicate-free version of an array, using an optional transform function.
*
* @template T
* @param array - The array to inspect.
* @param iteratee - The transform function or property name to get values from.
* @returns Returns the new duplicate-free array.
*
* @example
* uniqBy([2.1, 1.2, 2.3], Math.floor);
* // => [2.1, 1.2]
*/
declare function uniqBy<T>(array: ArrayLike<T> | null | undefined, iteratee: ValueIteratee<T>): T[];
//#endregion
export { uniqBy };