import { keysOf } from './keysOf' /** * Get all the values contained in an object. */ export const valuesOf = >( obj: A, ): A extends Record ? R[] : [] => { const keys = keysOf(obj) return keys.map((x) => obj[x]) as any }