wnumb
wnumb copied to clipboard
The `to()` method does not work with strings.
In the documentation you have the following example:
var Format = wNumb({
prefix: '$',
postfix: ',-',
thousand: ','
});
Format.to ( '90000' );
=> '$90,000,-'
Running it, instead of returning the desired result '$90,000,-'
, it returns false
.
Also, the case is not covered by your tests.
https://jsfiddle.net/1ho4LsjL/
Good observation, I'll get it fixed. Thanks!
@leongersen Still got false
in v1.1.0
.