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

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


None yet
1 participant
Copy link

c-frater commented Jul 3, 2018


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

const formatter =
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 referenced this issue Jul 4, 2018


feature(format): Update to use plain functions #483

6 of 6 tasks complete

@c-frater c-frater modified the milestones: 2.0.0, Pre 2.0.0 Jul 6, 2018


This comment has been minimized.

Copy link

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