/** * Attribute getter */ export function attr( name: K, ): >(obj: O) => O[K] { return (obj) => obj[name]; }