pick
pick<
T
>(source
,keys
):Partial
<T
>
Defined in: src/util/misc/pick.ts:7
Populates an object with properties of another object
Type Parameters
Section titled “Type Parameters”T
extends Record
<string
, any
>
Parameters
Section titled “Parameters”source
Section titled “source”T
Source object
keyof T
[] = []
Returns
Section titled “Returns”Partial
<T
>
object populated with the picked keys