190
rated 0 times
[
191]
[
1]
/ answers: 1 / hits: 9998
/ 4 Years ago, sun, august 16, 2020, 12:00:00
Is there like a quick way to get Javascript Map values as an array?
const map:Map<number, string> = new Map()
map.set(1, '1')
map.set(2, '2')
And then something like Array.from(map.values())
would give ['1','2']
... I could have sworn that I've something like this...?
More From » node.js