Appearance
@vtj
@vtj / base / pick
pick<T, K>(target, keys): K
T
K
target
keys
对象提取属性
• T extends Record<string, any>
Record
string
any
• K extends Record<string, any>
string[] | (k, v) => boolean
k
v
boolean
packages/base/src/data.ts:144