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

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

Show your support

Clapping shows how much you appreciated Jovica Aleksic’s story.