convert-to-locale
v1.0.1
Published
If you pass string value like '123qwe132.32' it will return { strValue: '123,132.32', numValue: 123132.32 } it help you to manage your input field for sanitization
Downloads
1
Maintainers
Readme
In that you see convertToLocale Method
It take three args first string value, second number value (default: 2) and third locale string (default: 'en-US')
example: convertToString('123124123we213EWS~!@#.232', 3, 'en-US')
output: {strValue: '123,124,123,213.232' , numValue: 123124123213.232}