polyfill-Number.toLocaleString-with-Locales
polyfill-Number.toLocaleString-with-Locales copied to clipboard
A polyfill to allow locales to be passed to Number.toLocaleString.
Results
4
polyfill-Number.toLocaleString-with-Locales issues
Sort by
recently updated
recently updated
newest added
Since toFixed returns a string, I needed to use parseInt and forward the result to toLocaleString.
expect(0.1000122.toLocaleString()).toEqual "0.1" Expected '0.1,000,122' to equal '0.1'.