UNPKG

@formatjs/intl-numberformat

Version:

Ponyfill for ES2020 Intl.NumberFormat

12 lines (11 loc) 553 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var core_1 = require("./src/core"); var to_locale_string_1 = require("./src/to_locale_string"); var ecma402_abstract_1 = require("@formatjs/ecma402-abstract"); (0, ecma402_abstract_1.defineProperty)(Intl, 'NumberFormat', { value: core_1.NumberFormat }); (0, ecma402_abstract_1.defineProperty)(Number.prototype, 'toLocaleString', { value: function toLocaleString(locales, options) { return (0, to_locale_string_1.toLocaleString)(this, locales, options); }, });