That looks like documentation for
Alex Dixon

So many ways to achive mapping over an object. Simply depends on what you need. The keys? The values?
Object.keys(obj).map(key => obj[key])
const values = Object.keys(obj).reduce((res, key) => […res, obj[key]], [])
for (const [key, value] of entries(myObj)) {

and many more ways. yes, the there is no single way, but that’s the cost of an expressive language — if you consider it a cost

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.