function addCurrencyPrefixOrSuffix(target, symbol, locale, currencyDisplay) {
  if (localeCurrencyIsPrefixed(locale, currencyDisplay)){
    target.prefix = formatSymbol(symbol, true, locale, currencyDisplay);
    // Ensure only one or the other is set.
    delete target.suffix;
  } else {
    target.suffix = formatSymbol(symbol, false, locale, currencyDisplay);
    // Ensure only one or the other is set.
    delete target.prefix;
  }

  return target;
}
/**
 * @private
 * Add a currency symbol to the given `NumberDisplay` props either
 * prefixed or suffixed based on the browser locale.
 * @param {object} target - The `NumberDisplay` props to which you wish to
 *   add either a `prefix` or `suffix` prop.
 * @param {string} symbol - The symbol to add to the number.
 * @param {string} [locale]
 * @param {string} [currencyDisplay] - One of the `currencyDisplay`
 *   formats that can be accepted by `Intl.NumberFormat`.
 * @return {string}
 */
@private
Add a currency symbol to the given `NumberDisplay` props either
prefixed or suffixed based on the browser locale.
@private Add a currency symbol to the given ` NumberDisplay ` props either prefixed or suffixed based on the browser locale .
function addCurrencyPrefixOrSuffix(target, symbol, locale, currencyDisplay) {
  if (localeCurrencyIsPrefixed(locale, currencyDisplay)){
    target.prefix = formatSymbol(symbol, true, locale, currencyDisplay);
    delete target.suffix;
  } else {
    target.suffix = formatSymbol(symbol, false, locale, currencyDisplay);
    delete target.prefix;
  }
  return target;
}
function addCurrencyPrefixOrSuffix ( target , symbol , locale , currencyDisplay ) { if ( localeCurrencyIsPrefixed ( locale , currencyDisplay ) ) { target . prefix = formatSymbol ( symbol , true , locale , currencyDisplay ) ; delete target . suffix ; } else { target . suffix = formatSymbol ( symbol , false , locale , currencyDisplay ) ; delete target . prefix ; } return target ; }
@private
 Add a currency symbol to the given `NumberDisplay` props either
 prefixed or suffixed based on the browser locale.
@private Add a currency symbol to the given ` NumberDisplay ` props either prefixed or suffixed based on the browser locale .
// Ensure only one or the other is set. // Ensure only one or the other is set.