UNPKG

@utilify/core

Version:

Modern, strongly typed, and safe utility function library for JavaScript and TypeScript. Includes type checking, manipulation of arrays, objects, strings, dates, colors, numbers, regular expressions, and more. Compatible with Browser, Node.js, Deno, and B

10 lines 373 B
/** * Picks specified keys from an object. * @template T * @template K * @param {T} obj - The source object. * @param {K[]} keys - The keys to pick. * @returns {Pick<T, K>} A new object with only the picked keys. */ export default function pick<T extends Record<PropertyKey, any>, K extends keyof T>(obj: T, keys: K[]): Pick<T, K>; //# sourceMappingURL=pick.d.ts.map