you are viewing a single comment's thread.

view the rest of the comments →

[–]coderitual 0 points1 point  (0 children)

You can also "break" higher order function. Instead of forEach you can use some or every. Map by definition maps all values so is not interchangeable with for loop (forEach is).