Skip to content

Instantly share code, notes, and snippets.

@OlivierJM
Last active February 20, 2019 14:37
Show Gist options
  • Save OlivierJM/0c11c61d485c2ccdd692c08f2a1105f7 to your computer and use it in GitHub Desktop.
Save OlivierJM/0c11c61d485c2ccdd692c08f2a1105f7 to your computer and use it in GitHub Desktop.
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