@devlander/utils
Version:
Comprehensive JavaScript and TypeScript utilities for seamless development. Includes object manipulation, data validation, and more.
8 lines (7 loc) • 321 B
TypeScript
/**
* Returns an array of unique elements from the input array based on the specified property.
* @param array The input array.
* @param property The property to compare for uniqueness.
* @returns An array of unique elements.
*/
export declare const getUniqueObjects: (array: Array<any>, property: string) => any[];