// 🧐 Read this: https://github.com/microsoft/TypeScript/issues/35859
export const getKeyValue = <T extends object, U extends keyof T>(obj: T) => (key: U) => obj[key];