1 | # Installation
|
2 | > `npm install --save @types/object.pick`
|
3 |
|
4 | # Summary
|
5 | This package contains type definitions for object.pick (https://github.com/jonschlinkert/object.pick).
|
6 |
|
7 | # Details
|
8 | Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/object.pick.
|
9 | ## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/object.pick/index.d.ts)
|
10 | ````ts
|
11 | /**
|
12 | * Returns a filtered copy of an object with only the specified keys, similar to `_.pick` from lodash / underscore.
|
13 | *
|
14 | * @param object
|
15 | * @param keys
|
16 | */
|
17 | declare function pick<T extends object, U extends keyof T>(object: T, keys: readonly U[]): Pick<T, U>;
|
18 |
|
19 | export = pick;
|
20 |
|
21 | ````
|
22 |
|
23 | ### Additional Details
|
24 | * Last updated: Tue, 07 Nov 2023 09:09:39 GMT
|
25 | * Dependencies: none
|
26 |
|
27 | # Credits
|
28 | These definitions were written by [Ifiok Jr.](https://github.com/ifiokjr).
|
29 |
|
\ | No newline at end of file |