src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_V2Requestor.js
function addSelects(vSelects, sExpandPath) {
			if (!Array.isArray(vSelects)) {
				vSelects = vSelects.split(",");
			}
			vSelects.forEach(function (sSelect) {
				var iIndex = sSelect.indexOf("/");

				if (iIndex >= 0 && sSelect.indexOf(".") < 0) {
					// only strip if there is no type cast and no bound action (avoid "correcting"
					// unsupported selects in V2)
					sSelect = sSelect.slice(0, iIndex);
				}
				mSelects[_Helper.buildPath(sExpandPath, sSelect)] = true;
			});
		}
function addSelects(vSelects, sExpandPath) {
			if (!Array.isArray(vSelects)) {
				vSelects = vSelects.split(",");
			}
			vSelects.forEach(function (sSelect) {
				var iIndex = sSelect.indexOf("/");

				if (iIndex >= 0 && sSelect.indexOf(".") < 0) {
					// only strip if there is no type cast and no bound action (avoid "correcting"
					// unsupported selects in V2)
					sSelect = sSelect.slice(0, iIndex);
				}
				mSelects[_Helper.buildPath(sExpandPath, sSelect)] = true;
			});
		}
function addSelects ( vSelects , sExpandPath ) { if ( ! Array . isArray ( vSelects ) ) { vSelects = vSelects . split ( "," ) ; } vSelects . forEach ( function ( sSelect ) { var iIndex = sSelect . indexOf ( "/" ) ; if ( iIndex >= 0 && sSelect . indexOf ( "." ) < 0 ) { // only strip if there is no type cast and no bound action (avoid "correcting" // unsupported selects in V2) sSelect = sSelect . slice ( 0 , iIndex ) ; } mSelects [ _Helper . buildPath ( sExpandPath , sSelect ) ] = true ; } ) ; }
Strips all selects to their first segment and adds them to mSelects.

@param {string|string[]} vSelects The selects for the given expand path as
comma-separated list or array
@param {string} [sExpandPath] The expand path
Strips all selects to their first segment and adds them to mSelects .