first commit
This commit is contained in:
1
modules/polyfills/numberformat.js
Normal file
1
modules/polyfills/numberformat.js
Normal file
@@ -0,0 +1 @@
|
||||
globalThis.Intl||(globalThis.Intl={}),Intl.NumberFormat||(Intl.NumberFormat=function(locales,options){this.options=options||{},this.locales=Array.isArray(locales)?locales:[locales]},Intl.NumberFormat.prototype.format=function(value){var options=this.options;return value=(options.maximumFractionDigits?parseFloat(value.toFixed(options.maximumFractionDigits)):value).toString(),"percent"===options.style&&(value+="%"),value});
|
||||
Reference in New Issue
Block a user