DEV Community


Discussion on: How The Hell Do I use Map?

yokim profile image
Yokim Pillay

Nice explanation! Simple and concise. 😄

You've got a typo in your second code block:

const doubleScores = => x * 2)

There's a good book that's written for PHP, but provides a good understanding of higher-order functions like map and filter, written by Adam Wathan, called Refactoring to Collections.

It really helped me clean up and understand the work I do, on both front and backend layers.