Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add ability to format with a function or options object; deprecate old patterns #213

Merged
merged 1 commit into from
Jul 30, 2019

Conversation

scurker
Copy link
Owner

@scurker scurker commented Jul 30, 2019

Formatting has always been limited to the predefined set options, with no option to change the formatting after a currency object has been instantiated. With this change, a function can be used with the initial options or when calling currency.format().

Removed:

  • options: formatWithSymbol
  • currency.function(useSymbol)

Added:

  • options: format
  • currency.format(options | function)

Related: #191

@scurker scurker merged commit 29a8819 into next Jul 30, 2019
@scurker scurker deleted the functional-format branch July 30, 2019 23:59
@scurker scurker mentioned this pull request Jul 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant