export function pick(obj: T, keys: K[]): Pick { const newObj = {} as Pick for (const key of keys) { newObj[key] = obj[key] } return newObj }