esamattis / esamattis/underscore.string

Make toNumber to be the inverse of numberFormat

Open
#155 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
3.4k
Forks
367
PR merge metrics
No merged PRs in 30d

Description

Right now toNumber() doesn't understand thousands and decimal separators the way numberFormat() accepts it.

It would be nice if toNumber() takes the same arguments as numberFormat() except the type of the first argument, and be able to reverse the result of numberFormat().

This can be done in a backward compatible way. But there maybe performance hits. Worth it?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.