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()) { export function getNumberFormatGroup(aLocale = getLocale()) {
const formatOptions = { useGrouping: true }; const formatObject = new Intl.NumberFormat(aLocale, {
const formatObject = new Intl.NumberFormat( useGrouping: true
aLocale, }).formatToParts(9999.99);
formatOptions
).formatToParts(9999.99);
return formatObject.find((object) => { return formatObject.find((object) => {
return object.type === 'group'; return object.type === 'group';

Loading…
Cancel
Save