@economic/taco 2.61.1 → 2.61.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/taco.cjs +3 -0
- package/dist/taco.cjs.map +1 -1
- package/dist/taco.js +3 -0
- package/dist/taco.js.map +1 -1
- package/package.json +2 -2
package/dist/taco.js
CHANGED
@@ -34693,6 +34693,9 @@ class DataType {
|
|
34693
34693
|
const localeNumberSeparators = /* @__PURE__ */ new Map();
|
34694
34694
|
class NumericDataType extends DataType {
|
34695
34695
|
static format(value, locale2, options) {
|
34696
|
+
if (value === void 0 || typeof value !== "number" || isNaN(value)) {
|
34697
|
+
return "";
|
34698
|
+
}
|
34696
34699
|
const localisedValue = new Intl.NumberFormat(locale2, options).format(value);
|
34697
34700
|
return localisedValue.replace(/[\u00A0\u202F]/g, " ");
|
34698
34701
|
}
|