Skip to content

@vtj


@vtj / base / pick

Function: pick()

pick<T, K>(target, keys): K

对象提取属性

Type Parameters

T extends Record<string, any>

K extends Record<string, any>

Parameters

target

T

keys

string[] | (k, v) => boolean

Returns

K

Defined in

packages/base/src/data.ts:144

Released under the MIT License.