export function pick( object: T, ...keys: K[] ): Pick { const result: any = {} for (const key of keys) { result[key] = object[key] } return result }