function hasOnlyValidCountryCodes(countryCodeArray) {
  const countryCodeArrayFilteredWithObjectIbanCode = countryCodeArray
    .filter(countryCode => !(countryCode in ibanRegexThroughCountryCode));

  if (countryCodeArrayFilteredWithObjectIbanCode.length > 0) {
    return false;
  }

  return true;
}
Check if the country codes passed are valid using the
ibanRegexThroughCountryCode as a reference

@param {array} countryCodeArray
@return {boolean}