Created
March 10, 2016 01:03
-
-
Save FagnerMartinsBrack/9cea8c8a55586398ff89 to your computer and use it in GitHub Desktop.
(Medium) Promises Are Not Proxies - Out of Context
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
fetchSoccerMatchesFromResource( ... ) | |
.then(function( soccerMatches ) { | |
const detailedMatches = soccerMatches.map(function( match ) { | |
return { | |
name: match.name, | |
score: findScoreForMatch( match, soccerResults ) | |
}; | |
}); | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment