/** * Creates an array with unique elements from the given array. * * @param array - The array to pick unique elements from * @returns An array with unique elements from the given array * * @public */ export default function uniq(array: ElementType[]): ElementType[]; /** * Creates an array with unique elements from the given array which uniqueness is determined using the mapper function. * * @param array - The array to pick unique elements from * @param mapper - The function that returns the value to check for uniqueness * * @public */ export default function uniq(array: ElementType[], mapper: (i: ElementType) => any): ElementType[]; /** * Creates an array with unique elements from the given array which uniqueness is determined by the element field * * @param array - The array to pick unique elements from * @param key - The name of the field to check for uniqueness * * @public */ export default function uniq(array: ElementType[], key: Key): ElementType[];