function localeThousandsGroupStyle(locale = userLocale()) {
  const f = new Intl.NumberFormat(locale, {
    useGrouping: true,
    minimumFractionDigits: 0,
    maximumFractionDigits: 0,
  });
  const value = 111111;
  const separator = localeThousandsSeparator(locale);
  const index = f.format(value).indexOf(separator);
  return index === 1
    ? 'lakh'
    : index === 2
    // Not sure that Ecmascript supports wan style groupings.
    ? 'wan'
    : 'thousand';
}
/**
 * Determine the style of grouping used for large numbers
 * in the locale specified (or the browser locale
 * if none is passed).
 *
 * @param {string} [locale]
 * @return {string} One of 'thousand', 'lahk', 'wan'
 */
Determine the style of grouping used for large numbers
in the locale specified (or the browser locale
if none is passed).


Determine the style of grouping used for large numbers in the locale specified ( or the browser locale if none is passed ) .
function localeThousandsGroupStyle(locale = userLocale()) {
  const f = new Intl.NumberFormat(locale, {
    useGrouping: true,
    minimumFractionDigits: 0,
    maximumFractionDigits: 0,
  });
  const value = 111111;
  const separator = localeThousandsSeparator(locale);
  const index = f.format(value).indexOf(separator);
  return index === 1
    ? 'lakh'
    : index === 2
    // Not sure that Ecmascript supports wan style groupings.
    ? 'wan'
    : 'thousand';
}
function localeThousandsGroupStyle ( locale = userLocale ( ) ) { const f = new Intl . NumberFormat ( locale , { useGrouping : true , minimumFractionDigits : 0 , maximumFractionDigits : 0 , } ) ; const value = 111111 ; const separator = localeThousandsSeparator ( locale ) ; const index = f . format ( value ) . indexOf ( separator ) ; return index === 1 ? 'lakh' : index === 2 ? 'wan' : 'thousand' ; }
Determine the style of grouping used for large numbers
 in the locale specified (or the browser locale
 if none is passed).
Determine the style of grouping used for large numbers in the locale specified ( or the browser locale if none is passed ) .