@formatjs/intl-numberformat
Version:
Ponyfill for ES2020 Intl.NumberFormat
7 lines (6 loc) • 301 B
TypeScript
import { NumberFormatOptions } from '@formatjs/ecma402-abstract';
/**
* Number.prototype.toLocaleString ponyfill
* https://tc39.es/ecma402/#sup-number.prototype.tolocalestring
*/
export declare function toLocaleString(x: number, locales?: string | string[], options?: NumberFormatOptions): string;