MCPcopy Create free account
hub / github.com/Snapchat/Valdi / pick

Function pick

valdi/vscode_debugger/src/common/objUtils.ts:295–302  ·  view source on GitHub ↗
(obj: T, keys: ReadonlyArray<keyof T>)

Source from the content-addressed store, hash-verified

293 * Picks the subset of keys from the object.
294 */
295export function pick<T>(obj: T, keys: ReadonlyArray<keyof T>): Partial<T> {
296 const partial: Partial<T> = {};
297 for (const key of keys) {
298 partial[key] = obj[key];
299 }
300
301 return partial;
302}

Callers 1

vsCodeSessionLauncherFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected