re: How The Hell Do I use Map? VIEW POST

FULL DISCUSSION
 

Nice explanation! Simple and concise. 😄

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

const doubleScores = sores.map(x => 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.

code of conduct - report abuse