UNPKG

@augment-vir/common

Version:

A collection of augments, helpers types, functions, and classes for any JavaScript environment.

14 lines (13 loc) 534 B
import { getObjectTypedKeys } from '@augment-vir/core'; /** * Gets an object's values. This is the same as * [`Object.values`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object/values) * except that it has better TypeScript types. * * @category Object * @category Package : @augment-vir/common * @package [`@augment-vir/common`](https://www.npmjs.com/package/@augment-vir/common) */ export function getObjectTypedValues(input) { return getObjectTypedKeys(input).map((key) => input[key]); }