src/sap.ui.core/src/sap/ui/model/odata/_ODataMetaModelUtils.js
function (aArray, vExpectedPropertyValue, sPropertyName) {
			var iIndex = Utils.findIndex(aArray, vExpectedPropertyValue, sPropertyName);

			return iIndex < 0 ? null : aArray[iIndex];
		}
function (aArray, vExpectedPropertyValue, sPropertyName) {
			var iIndex = Utils.findIndex(aArray, vExpectedPropertyValue, sPropertyName);

			return iIndex < 0 ? null : aArray[iIndex];
		}
function ( aArray , vExpectedPropertyValue , sPropertyName ) { var iIndex = Utils . findIndex ( aArray , vExpectedPropertyValue , sPropertyName ) ; return iIndex < 0 ? null : aArray [ iIndex ] ; }
Returns the object inside the given array, where the property with the given name has
the given expected value.

@param {object[]} aArray
some array
@param {any} vExpectedPropertyValue
expected value of the property with given name
@param {string} [sPropertyName="name"]
some property name
@returns {object}
the object found or <code>null</code> if no such object is found
Returns the object inside the given array where the property with the given name has the given expected value .