( x: number | bigint, locales?: string | string[], options?: NumberFormatOptions )
| 7 | * https://tc39.es/ecma402/#sup-number.prototype.tolocalestring |
| 8 | */ |
| 9 | export function toLocaleString( |
| 10 | x: number | bigint, |
| 11 | locales?: string | string[], |
| 12 | options?: NumberFormatOptions |
| 13 | ): string { |
| 14 | const numberFormat = new NumberFormat(locales, options) |
| 15 | return numberFormat.format(x) |
| 16 | } |