pluck
pluck<
T
,K
>(obj
,keys
):Pick
<T
,K
>
Defined in: utils/object.ts:11
Plucks the specified keys from an object and returns a new object with only those keys.
Type Parameters
Section titled “Type Parameters”T
extends object
The type of the original object.
K
extends string
| number
| symbol
The keys to pluck from the original object.
Parameters
Section titled “Parameters”T
The original object.
K
[]
The keys to pluck from the original object.
Returns
Section titled “Returns”Pick
<T
, K
>
A new object with only the plucked keys.