src/sap.ui.support/src/sap/ui/support/supportRules/util/RuleValidator.js
function(aEnum, oEnumComparison) {

		if (aEnum && Array.isArray(aEnum) && aEnum.length) {

			for (var i = 0; i < aEnum.length; i++) {

				if (oEnumComparison.hasOwnProperty(aEnum[i])) {
					continue;
				} else {
					return false;
				}

			}

			return true;
		}

		return false;
	}
function(aEnum, oEnumComparison) {

		if (aEnum && Array.isArray(aEnum) && aEnum.length) {

			for (var i = 0; i < aEnum.length; i++) {

				if (oEnumComparison.hasOwnProperty(aEnum[i])) {
					continue;
				} else {
					return false;
				}

			}

			return true;
		}

		return false;
	}
function ( aEnum , oEnumComparison ) { if ( aEnum && Array . isArray ( aEnum ) && aEnum . length ) { for ( var i = 0 ; i < aEnum . length ; i ++ ) { if ( oEnumComparison . hasOwnProperty ( aEnum [ i ] ) ) { continue ; } else { return false ; } } return true ; } return false ; }
Validates any given collection.
Basically you can validate Audiences, Categories, Severity etc - everything that meets the criteria

Positive cases :
- "Capitalcase"

@private
@param {array} aEnum Enum to be validated.
@param {array} oEnumComparison Enum comparison.
@returns {boolean} Boolean response if the provided collection is valid.
Validates any given collection . Basically you can validate Audiences Categories Severity etc - everything that meets the criteria