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

Format: Use plain functions instead of curried functions #457

Closed
c-frater opened this issue Jul 3, 2018 · 1 comment
Closed

Format: Use plain functions instead of curried functions #457

c-frater opened this issue Jul 3, 2018 · 1 comment
Assignees
Milestone

Comments

@c-frater
Copy link
Contributor

@c-frater c-frater commented Jul 3, 2018

Context

Currently, to format a number, you have to create a formatter:

const formatter = hx.format.si(2)
const formattedVal = formatter(myVal)

Expected Behavior

It should be possible to do something like:

import { formatSi } from 'hexagon-js'
const formattedVal = formatSi(myVal, { sf: 2 })
@c-frater c-frater added this to the 2.0.0 milestone Jul 3, 2018
@c-frater c-frater self-assigned this Jul 4, 2018
@c-frater c-frater mentioned this issue Jul 4, 2018
6 of 6 tasks complete
@c-frater c-frater modified the milestones: 2.0.0, Pre 2.0.0 Jul 6, 2018
@c-frater
Copy link
Contributor Author

@c-frater c-frater commented Jul 9, 2018

Follow up in #487

@c-frater c-frater closed this Jul 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant