takes an array of 2-tuples (entries) of the form [key: string, value: any], and returns a union of the second element of each of the tuples (values). it practically functions like the elements of Object.values.
[key: string, value: any]
Object.values
type MyValues = EntriesToValues<[["name", "john"], ["age", 30], ["title", string]]>// type MyValues === ("john" | 30 | string) Copy
type MyValues = EntriesToValues<[["name", "john"], ["age", 30], ["title", string]]>// type MyValues === ("john" | 30 | string)
Generated using TypeDoc
takes an array of 2-tuples (entries) of the form
[key: string, value: any]
, and returns a union of the second element of each of the tuples (values). it practically functions like the elements ofObject.values
.