摘要: [] let obj = { a: 1, b: 2, c: 3 } function getValues(obj: any, keys: string[]) { return keys.map(key => obj[key]); } console.log(getValues(obj, ['a', 阅读全文
posted @ 2021-03-26 11:52 攀登高山 阅读(926) 评论(0) 推荐(0)