JSFiddle - React, Tailwind, and code Playground
JavaScript
var nFormat = new Intl.NumberFormat('ru-RU').format(1000.15); // "1 000,15"
console.log(nFormat);
var pFormat = new Intl.NumberFormat("ru", { style: "percent" }).format(0.5);
// Chrome: "50%", IE: "50 %"
console.log(pFormat);
var mFormat = new Intl.NumberFormat("ru", {style: "currency", currency: "GBP" }).format(1234567.93); // 1 234 567,93 £
console.log(mFormat);
var utc = new Intl.DateTimeFormat("en-US", {timeZone: "utc", hour: "numeric", minute: "numeric" });
console.log(utc.format(new Date())); // 2:38 PM