Just a quick note about “Javascript doesn’t have basic functions like Object.map.”
Andy Maleh

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

Like what you read? Give Jovica Aleksic a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.