src/sap.ui.documentation/src/sap/ui/documentation/sdk/controller/ApiDetail.controller.js
function (aElements, fnFilter, fnFormat) {
				var i,
					iLength = aElements.length,
					aNewElements = [],
					oElement;

				for (i = 0; i < iLength; i++) {
					oElement = aElements[i];

					if (fnFilter && !fnFilter(oElement)) {
						continue;
					}
					if (fnFormat) {
						fnFormat(oElement);
					}
					aNewElements.push(oElement);
				}
				return aNewElements;
			}
function (aElements, fnFilter, fnFormat) {
				var i,
					iLength = aElements.length,
					aNewElements = [],
					oElement;

				for (i = 0; i < iLength; i++) {
					oElement = aElements[i];

					if (fnFilter && !fnFilter(oElement)) {
						continue;
					}
					if (fnFormat) {
						fnFormat(oElement);
					}
					aNewElements.push(oElement);
				}
				return aNewElements;
			}
function ( aElements , fnFilter , fnFormat ) { var i , iLength = aElements . length , aNewElements = [ ] , oElement ; for ( i = 0 ; i < iLength ; i ++ ) { oElement = aElements [ i ] ; if ( fnFilter && ! fnFilter ( oElement ) ) { continue ; } if ( fnFormat ) { fnFormat ( oElement ) ; } aNewElements . push ( oElement ) ; } return aNewElements ; }
Filter and format elements
@param {array} aElements list of elements
@param {function} fnFilter filtering function
@param {function} fnFormat formatting function
@returns {array} transformed elements list
Filter and format elements