parse-price
Returns a Number
from a localized price string.
Installation
npm install --save parse-price
Usage
Receives a string (price) as input and returns a Number
(or NaN
) as output.
var parsePrice = // => 1234.56 // => 1234.56 // => 1234.56 // => 1234.56 // => 1234.56 // => 1234.56
caiogondim.com · GitHub @caiogondim · Twitter @caio_gondim