Closed aschepis closed 8 years ago
Many thanks @josscrowcroft for making this library available!
Any chance you could pull in @aschepis commit? Getting some indication whether the parsed string is a valid number is highly useful. In addition the commit appears to be backwards API compatible, so existing users would be unaffected.
Thank you in advance.
Adds a third param to unformat() called options such that if options.returnNaN is truthy a NaN will be returned instead of zero.