docs: function generateBaseCurrencies(localeData, addDigits) {
    const currenciesData = localeData.main('numbers/currencies');
    const fractions = new cldrJs('en').get(`supplemental/currencyData/fractions`);
    const currencies = {};
    Object.keys(currenciesData).forEach(key => {
      let symbolsArray = [];
      const symbol = currenciesData[key].symbol;
      const symbolNarrow = currenciesData[key]['symbol-alt-narrow'];
      if (symbol && symbol !== key) {
        symbolsArray.push(symbol);
      }
      if (symbolNarrow && symbolNarrow !== symbol) {
        if (symbolsArray.length > 0) {
          symbolsArray.push(symbolNarrow);
        } else {
          symbolsArray = [undefined, symbolNarrow];
        }
      }
      if (addDigits && fractions[key] && fractions[key]['_digits']) {
        const digits = parseInt(fractions[key]['_digits'], 10);
        if (symbolsArray.length === 2) {
          symbolsArray.push(digits);
        } else if (symbolsArray.length === 1) {
          symbolsArray = [...symbolsArray, undefined, digits];
        } else {
          symbolsArray = [undefined, undefined, digits];
        }
      }
      if (symbolsArray.length > 0) {
        currencies[key] = symbolsArray;
      }
    });
    return currencies;
  }