DEV Community

Discussion on: Use this trick to map over single objects in Javascript

Collapse
 
allnulled profile image
allnulled

Remember that the typical functions in JavaScript functional programming nowadays, are: forEach, filter, map, reduce (the last one is the more powerful of all).

We also have others, like: Object.assign and Object.defineProperty.

I mentioned forEach because it is the simplest, not because it fit in the example.

Thank you.

Thread Thread
 
arikaturika profile image
Arika O

Thank you for your input.