function concatFlexObjects(aResponses, sPath) {
		var aFlexObjects = aResponses.reduce(function (aFlexObjects, oResponse) {
			if (ObjectPath.get(sPath, oResponse)) {
				return aFlexObjects.concat(ObjectPath.get(sPath, oResponse));
			}
			return aFlexObjects;
		}, []);

		var aFlexObjectIds = [];
		return aFlexObjects.filter(function (oFlexObject) {
			var sFileName = oFlexObject.fileName;
			var bObjectAlreadyAdded = aFlexObjectIds.indexOf(sFileName) !== -1;
			if (bObjectAlreadyAdded && !oFlexObject.cloned) {
				return false;
			}

			aFlexObjectIds.push(sFileName);
			return true;
		});
	}
/**
	 * Concatenates all flex objects from a list of flex data request responses, into a passed result array and removes duplicates.
	 *
	 * @param {object[]} aResponses List of responses containing flex object type properties to be concatenated
	 * @param {string} sPath Type of flex object signified by object property
	 * @returns {object[]} Merged array of flex objects
	 * @private
	 * @ui5-restricted sap.ui.fl.Cache, sap.ui.fl.apply._internal.flexState.FlexState
	 */
Concatenates all flex objects from a list of flex data request responses, into a passed result array and removes duplicates.
Concatenates all flex objects from a list of flex data request responses into a passed result array and removes duplicates .
function concatFlexObjects(aResponses, sPath) {
		var aFlexObjects = aResponses.reduce(function (aFlexObjects, oResponse) {
			if (ObjectPath.get(sPath, oResponse)) {
				return aFlexObjects.concat(ObjectPath.get(sPath, oResponse));
			}
			return aFlexObjects;
		}, []);
		var aFlexObjectIds = [];
		return aFlexObjects.filter(function (oFlexObject) {
			var sFileName = oFlexObject.fileName;
			var bObjectAlreadyAdded = aFlexObjectIds.indexOf(sFileName) !== -1;
			if (bObjectAlreadyAdded && !oFlexObject.cloned) {
				return false;
			}
			aFlexObjectIds.push(sFileName);
			return true;
		});
	}
function concatFlexObjects ( aResponses , sPath ) { var aFlexObjects = aResponses . reduce ( function ( aFlexObjects , oResponse ) { if ( ObjectPath . get ( sPath , oResponse ) ) { return aFlexObjects . concat ( ObjectPath . get ( sPath , oResponse ) ) ; } return aFlexObjects ; } , [ ] ) ; var aFlexObjectIds = [ ] ; return aFlexObjects . filter ( function ( oFlexObject ) { var sFileName = oFlexObject . fileName ; var bObjectAlreadyAdded = aFlexObjectIds . indexOf ( sFileName ) !== - 1 ; if ( bObjectAlreadyAdded && ! oFlexObject . cloned ) { return false ; } aFlexObjectIds . push ( sFileName ) ; return true ; } ) ; }
Concatenates all flex objects from a list of flex data request responses, into a passed result array and removes duplicates.
Concatenates all flex objects from a list of flex data request responses into a passed result array and removes duplicates .