Created
January 4, 2018 21:50
-
-
Save raypulver/6d08cb480aea5df381cadd35cf830699 to your computer and use it in GitHub Desktop.
transform in promise with no anonymous functions
This file contains hidden or 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
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