Skip to content

Instantly share code, notes, and snippets.

@raypulver
Created January 4, 2018 21:50
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 raypulver/6d08cb480aea5df381cadd35cf830699 to your computer and use it in GitHub Desktop.
Save raypulver/6d08cb480aea5df381cadd35cf830699 to your computer and use it in GitHub Desktop.
transform in promise with no anonymous functions
const mapToMarkets = map(property('market'));
const fetchTickers = () => {
const markets = mapToMarkets(store.getState().targetedMarkets);
return mapSeries(markets, bindKey(liqui, 'getTicker')).then(zipObject(markets));
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment