function(aContextObjects, aDesignTimeContextIdsByUrl) {
			var aActiveContexts = [];

			aContextObjects.forEach(function (oContext) {
				var bContextActive = ((aDesignTimeContextIdsByUrl ? Array.prototype.indexOf.call(aDesignTimeContextIdsByUrl, oContext.id) : -1)) !== -1;

				if (bContextActive) {
					aActiveContexts.push(oContext.id);
				}
			});

			return aActiveContexts;
		}
function(aContextObjects, aDesignTimeContextIdsByUrl) {
			var aActiveContexts = [];

			aContextObjects.forEach(function (oContext) {
				var bContextActive = ((aDesignTimeContextIdsByUrl ? Array.prototype.indexOf.call(aDesignTimeContextIdsByUrl, oContext.id) : -1)) !== -1;

				if (bContextActive) {
					aActiveContexts.push(oContext.id);
				}
			});

			return aActiveContexts;
		}
function ( aContextObjects , aDesignTimeContextIdsByUrl ) { var aActiveContexts = [ ] ; aContextObjects . forEach ( function ( oContext ) { var bContextActive = ( ( aDesignTimeContextIdsByUrl ? Array . prototype . indexOf . call ( aDesignTimeContextIdsByUrl , oContext . id ) : - 1 ) ) !== - 1 ; if ( bContextActive ) { aActiveContexts . push ( oContext . id ) ; } } ) ; return aActiveContexts ; }
Function to filter all contexts by the context URL parameters.

@param {string[]} aDesignTimeContextIdsByUrl - list of ids passed via URL
@param {object[]} aContextObjects - context objects within the application
@returns {string[]} aActiveContexts - id list of all active contexts
Function to filter all contexts by the context URL parameters .
Returns an array of context ids that are active in the given design time context objects