code: function parseAddresses() {
    var addresses = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  
    return (0, _ramda.flatten)([].concat(addresses).map(function (address) {
      if (address && address.address) {
        address = convertAddresses(address);
      }
      return (0, _emailjsAddressparser2.default)(address);
    }));
  }
docs: Parses addresses. Takes in a single address or an array or an
  array of address arrays (eg. To: [[first group], [second group],...])
  
  @param {Mixed} addresses Addresses to be parsed
  @return {Array} An array of address objects