function toLocaleString(x, locales, options) {
        var dtf = new DateTimeFormat(locales, options);
        return dtf.format(x);
    }
Number.prototype.toLocaleString ponyfill
https://tc39.es/ecma402/#sup-number.prototype.tolocalestring