Skip to content

Instantly share code, notes, and snippets.

@FagnerMartinsBrack
Created March 10, 2016 01:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FagnerMartinsBrack/9cea8c8a55586398ff89 to your computer and use it in GitHub Desktop.
Save FagnerMartinsBrack/9cea8c8a55586398ff89 to your computer and use it in GitHub Desktop.
(Medium) Promises Are Not Proxies - Out of Context
...
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