MCPcopy Create free account
hub / github.com/SincereCSL/Playgrounds / getValues

Function getValues

TypeScript/StudyTypeScript/src/advanced_02.ts:8–10  ·  view source on GitHub ↗
(obj: any, keys: string[])

Source from the content-addressed store, hash-verified

6 c: 3,
7}
8function getValues(obj: any, keys: string[]){
9 return keys.map(key => obj[key])
10}
11console.log(getValues(tmpObj, ['a','b']))
12// console.log(getValues(tmpObj, ['d','e']))
13

Callers 1

advanced_02.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected