export function pick>(obj: T, keys: string[]) { return Object.fromEntries(keys.filter(key => key in obj).map(key => [key, obj[key]])) }