src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Helper.js
function (mMap, sTransientPredicate, sPredicate) {
			var sPath;

			for (sPath in mMap) {
				if (sPath.includes(sTransientPredicate)) {
					// A path may contain multiple different transient predicates ($uid=...) but a
					// certain transient predicate can only be once in the path and cannot collide
					// with an identifier (keys must not start with $) and with a value of a key
					// predicate (they are encoded by encodeURIComponent which encodes $ with %24
					// and = with %3D)
					mMap[sPath.replace(sTransientPredicate, sPredicate)] = mMap[sPath];
					delete mMap[sPath];
				}
			}
		}
function (mMap, sTransientPredicate, sPredicate) {
			var sPath;

			for (sPath in mMap) {
				if (sPath.includes(sTransientPredicate)) {
					// A path may contain multiple different transient predicates ($uid=...) but a
					// certain transient predicate can only be once in the path and cannot collide
					// with an identifier (keys must not start with $) and with a value of a key
					// predicate (they are encoded by encodeURIComponent which encodes $ with %24
					// and = with %3D)
					mMap[sPath.replace(sTransientPredicate, sPredicate)] = mMap[sPath];
					delete mMap[sPath];
				}
			}
		}
function ( mMap , sTransientPredicate , sPredicate ) { var sPath ; for ( sPath in mMap ) { if ( sPath . includes ( sTransientPredicate ) ) { // A path may contain multiple different transient predicates ($uid=...) but a // certain transient predicate can only be once in the path and cannot collide // with an identifier (keys must not start with $) and with a value of a key // predicate (they are encoded by encodeURIComponent which encodes $ with %24 // and = with %3D) mMap [ sPath . replace ( sTransientPredicate , sPredicate ) ] = mMap [ sPath ] ; delete mMap [ sPath ] ; } } }
Updates certain transient paths from the given map, replacing the given transient
predicate with the given key predicate.

@param {object} mMap
A map from path to anything
@param {string} sTransientPredicate
A (temporary) key predicate for the transient entity: "($uid=...)"
@param {string} sPredicate
The key predicate
Updates certain transient paths from the given map replacing the given transient predicate with the given key predicate .