src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Helper.js
function (mMap, sPath, oItem) {
			if (oItem) {
				if (!mMap[sPath]) {
					mMap[sPath] = [oItem];
				} else if (mMap[sPath].indexOf(oItem) < 0) {
					mMap[sPath].push(oItem);
				}
			}
		}
function (mMap, sPath, oItem) {
			if (oItem) {
				if (!mMap[sPath]) {
					mMap[sPath] = [oItem];
				} else if (mMap[sPath].indexOf(oItem) < 0) {
					mMap[sPath].push(oItem);
				}
			}
		}
function ( mMap , sPath , oItem ) { if ( oItem ) { if ( ! mMap [ sPath ] ) { mMap [ sPath ] = [ oItem ] ; } else if ( mMap [ sPath ] . indexOf ( oItem ) < 0 ) { mMap [ sPath ] . push ( oItem ) ; } } }
Adds an item to the given map by path.

@param {object} mMap
A map from path to a list of items
@param {string} sPath
The path
@param {object} [oItem]
The item; if it is <code>undefined</code>, nothing happens
Adds an item to the given map by path .