UNPKG

everyutil

Version:

A comprehensive library of lightweight, reusable utility functions for JavaScript and TypeScript, designed to streamline common programming tasks such as string manipulation, array processing, date handling, and more.

10 lines (9 loc) 288 B
/** * Pulls out unique values for a given key from an array of objects. * @author @dailker * @template T, K extends keyof T * @param {T[]} array * @param {K} key * @returns {T[K][]} */ export declare function pluckUnique<T, K extends keyof T>(array: T[], key: K): T[K][];