This link appeared in WDRL 163 on .
format-num.js…or ES6!
If you need to deal with different currency formats, it’s likely that some third-party library is in place. A powerful tool that can handle most conversions really well is toLocaleString
.