src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Helper.js
function (sName) {
			var iIndex = sName.indexOf("/");

			if (iIndex >= 0) {
				// consider only the first path segment
				sName = sName.slice(0, iIndex);
			}
			// now we have a qualified name, drop the last segment (the name)
			iIndex = sName.lastIndexOf(".");

			return iIndex < 0 ? "" : sName.slice(0, iIndex);
		}
function (sName) {
			var iIndex = sName.indexOf("/");

			if (iIndex >= 0) {
				// consider only the first path segment
				sName = sName.slice(0, iIndex);
			}
			// now we have a qualified name, drop the last segment (the name)
			iIndex = sName.lastIndexOf(".");

			return iIndex < 0 ? "" : sName.slice(0, iIndex);
		}
function ( sName ) { var iIndex = sName . indexOf ( "/" ) ; if ( iIndex >= 0 ) { // consider only the first path segment sName = sName . slice ( 0 , iIndex ) ; } // now we have a qualified name, drop the last segment (the name) iIndex = sName . lastIndexOf ( "." ) ; return iIndex < 0 ? "" : sName . slice ( 0 , iIndex ) ; }
Determines the namespace of the given qualified name.

@param {string} sName
The qualified name
@returns {string}
The namespace
Determines the namespace of the given qualified name .