Browse Source

Removed options variable and passed argument directly to function

pull/4243/head
Guillermo Fernandez 7 months ago
parent
commit
f5907cabc5
  1. 8
      libs/common/src/lib/helper.ts

8
libs/common/src/lib/helper.ts

@ -251,11 +251,9 @@ export function getNumberFormatDecimal(aLocale?: string) {
}
export function getNumberFormatGroup(aLocale = getLocale()) {
const formatOptions = { useGrouping: true };
const formatObject = new Intl.NumberFormat(
aLocale,
formatOptions
).formatToParts(9999.99);
const formatObject = new Intl.NumberFormat(aLocale, {
useGrouping: true
}).formatToParts(9999.99);
return formatObject.find((object) => {
return object.type === 'group';

Loading…
Cancel
Save