Last active
February 20, 2019 14:37
-
-
Save OlivierJM/0c11c61d485c2ccdd692c08f2a1105f7 to your computer and use it in GitHub Desktop.
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
import * as R from 'ramda' | |
const formatNumber = R.compose( | |
appendCountryCode, | |
removePrefix, | |
removeSymbol | |
); | |
// the above function can be called like this | |
formatNumber(numberToformat)(countryCode) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment