Type-safe Object.values() with overload for NonEmptyArray
The object shape
The object shape to get the values from
Array of object values
const result1: NonEmptyReadonlyArray<'value'> = objectValues({key: 'value'} as const);const result2: Array<string> = objectValues({key: 'value'});const result3: [] = objectValues({}); Copy
const result1: NonEmptyReadonlyArray<'value'> = objectValues({key: 'value'} as const);const result2: Array<string> = objectValues({key: 'value'});const result3: [] = objectValues({});
v0.2.0
Type-safe Object.values() with overload for NonEmptyArray