UNPKG

278 BTypeScriptView Raw
1/**
2 * Returns a filtered copy of an object with only the specified keys, similar to `_.pick` from lodash / underscore.
3 *
4 * @param object
5 * @param keys
6 */
7declare function pick<T extends object, U extends keyof T>(object: T, keys: readonly U[]): Pick<T, U>;
8
9export = pick;