//#region src/get-unique.d.ts /** * Returns an array of unique values from the given array. * * @param arr - The array to get unique values from. * @returns An array of unique values. */ declare const getUnique: (arr: T[]) => T[]; /** * Returns a new array containing only the unique elements from the original array, * based on the values returned by the mapper function. * * @example * ```ts * uniqBy([1.2, 1.5, 2.1, 3.2, 5.7, 5.3, 7.19], Math.floor); * // [1.2, 2.1, 3.2, 5.7, 7.19] * ``` * * @param arr - The array to process. * @param mapper - The function used to convert the array elements. * @returns A new array containing only the unique elements from the original array, based on the values returned by the mapper function. */ declare function getUniqueBy(arr: readonly T[], mapper?: (item: T) => U): T[]; //#endregion export { getUnique, getUniqueBy }; //# sourceMappingURL=get-unique.d.cts.map