Last active
June 22, 2017 14:54
-
-
Save HirotoShioi/62861a495c736e69845b9b03edd67810 to your computer and use it in GitHub Desktop.
Slack連携アプリ開発とES6+の便利なAPIの話 ref: http://qiita.com/zikaa/items/633977269f6615a59f8a
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 { HIGH24HOUR, LOW24HOUR, PRICE, CHANGE24HOUR, FROMSYMBOL } = currency[exchange]; |
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 availableCoinList = Object.values(coinList.Data).map(data => { return data.Name}); |
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 filterCoins = (currencies = [], exchange = "USD", coinList = {}) => {} |
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
| "author_icon":`https://www.cryptocompare.com/${ImageUrl}`, | |
| "fallback": `Current rate for the ${FROMSYMBOL} is ${formatPrice(PRICE, exchange)} , |
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 doSomething = () => {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment