Skip to content

Commit

Permalink
Merge pull request #1 from devTristan/patch-1
Browse files Browse the repository at this point in the history
fix example to use map instead of forEach
  • Loading branch information
gilbert committed Nov 29, 2015
2 parents e1f7fd2 + dbdaba4 commit dd2f94a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ Although flipping the order of function & argument may seem small, it opens sign

```js
fetchPlayers()
.then(players => players.filter( p => p.score > 100 ).forEach( fetchGames ))
.then(players => players.filter( p => p.score > 100 ).map( fetchGames ))
|> Promise.all
|> then(processGames)
|> catchError( ProcessError, err => [] )
Expand Down

0 comments on commit dd2f94a

Please sign in to comment.