function localeUnitIsPrefixed(unit, locale = userLocale(), unitDisplay = 'short') {
  const f = new Intl.NumberFormat(locale || undefined, {
    style: 'unit',
    unit,
    unitDisplay,
    useGrouping: false,
    minimumFractionDigits: 0,
    maximumFractionDigits: 0,
  });
  const value = 1;
  const num = translateInteger(value, locale);

  return f.format(1).indexOf(num) > 0;
}
/**
 * Determine the unit symbol/name should be prefixed
 * in the locale specified (or the browser locale
 * if none is passed).
 * @param {string} unit - One of the units accepted by `Intl.NumberFormat`
 * @param {string} [locale]
 * @param {string} [unitDisplay] - One of the `unitDisplay` values accepted
 *   by `Intl.NumberFormat`
 * @return {boolean}
 */
Determine the unit symbol/name should be prefixed
in the locale specified (or the browser locale
if none is passed).
Determine the unit symbol / name should be prefixed in the locale specified ( or the browser locale if none is passed ) .
function localeUnitIsPrefixed(unit, locale = userLocale(), unitDisplay = 'short') {
  const f = new Intl.NumberFormat(locale || undefined, {
    style: 'unit',
    unit,
    unitDisplay,
    useGrouping: false,
    minimumFractionDigits: 0,
    maximumFractionDigits: 0,
  });
  const value = 1;
  const num = translateInteger(value, locale);
  return f.format(1).indexOf(num) > 0;
}
function localeUnitIsPrefixed ( unit , locale = userLocale ( ) , unitDisplay = 'short' ) { const f = new Intl . NumberFormat ( locale || undefined , { style : 'unit' , unit , unitDisplay , useGrouping : false , minimumFractionDigits : 0 , maximumFractionDigits : 0 , } ) ; const value = 1 ; const num = translateInteger ( value , locale ) ; return f . format ( 1 ) . indexOf ( num ) > 0 ; }
Determine the unit symbol/name should be prefixed
 in the locale specified (or the browser locale
 if none is passed).
Determine the unit symbol / name should be prefixed in the locale specified ( or the browser locale if none is passed ) .