Skip to content

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

T extends Record<string, any>

Parameters

source

T

Source object

keys

keyof T[] = []

Returns

Partial<T>

object populated with the picked keys