function addSelects(vSelects, sExpandPath) {
			if (!Array.isArray(vSelects)) {
				vSelects = vSelects.split(",");
			}
			vSelects.forEach(function (sSelect) {
				var iIndex = sSelect.indexOf("/");

				if (iIndex >= 0 && !sSelect.includes(".")) {
					// 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.
@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 . @param { string|string [] } vSelects The selects for the given expand path as comma - separated list or array @param { string } [ sExpandPath ] The expand path
function addSelects(vSelects, sExpandPath) {
			if (!Array.isArray(vSelects)) {
				vSelects = vSelects.split(",");
			}
			vSelects.forEach(function (sSelect) {
				var iIndex = sSelect.indexOf("/");
				if (iIndex >= 0 && !sSelect.includes(".")) {
					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 . includes ( "." ) ) { sSelect = sSelect . slice ( 0 , iIndex ) ; } mSelects [ _Helper . buildPath ( sExpandPath , sSelect ) ] = true ; } ) ; }
Strips all selects to their first segment and adds them to mSelects.
Strips all selects to their first segment and adds them to mSelects .
// only strip if there is no type cast and no bound action (avoid "correcting" // unsupported selects in V2)