Skip to content

Instantly share code, notes, and snippets.

@WaldoJeffers
Last active May 27, 2018 12:34
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 WaldoJeffers/bf44c0425d6a7d771172888a6bc32031 to your computer and use it in GitHub Desktop.
Save WaldoJeffers/bf44c0425d6a7d771172888a6bc32031 to your computer and use it in GitHub Desktop.
const reducer = (acc, character_id) => getHomeworldName(character_id)
.then(mergeByAdding(acc))
// reducer({ Tatooine: 1 }, 3) == { Naboo: 1, Tatooine: 1 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment