Skip to content

vs

Shorthand Object.values

Usage

ts
import { vs } from 'tsu'

const object = { frog: 'good', toad: 'bad' }

vs(object)
// ['good', 'bad']

Type Definitions

ts
/**
 * @param obj - The object to extract the values from.
 * @returns The values.
 */
function vs<T>(obj: Obj<T>): T[]

Released under the MIT License.