Appearance
values
ts
function values<K, V>(map: Map<K, V>): readonly V[]
Returns the values of the Map instance entries.
Example
ts
map.values(new Map()) // []
ts
map.values(
new Map([
[1, { name: 'Paul McCartney' }],
[2, { name: 'George Harrison' }],
])
) /* [
{ name: 'Paul McCartney' },
{ name: 'George Harrison' },
] */