parse-thousands
Parse thousands with custom separator: '1,000,000.1' => 1000000.1
Demo: vovanr.github.io/parse-thousands
Install
npm install --save parse-thousands
Usage
var parseThousands = ; ;//=> 1000 ;//=> 5000 ;//=> 1000000 ;//=> 10000 ;//=> -100000 //=> 10000.0001 ;//=> ''
License
MIT © Vladimir Rodkin