src/sap.ui.core/src/sap/ui/model/odata/v4/lib/_Helper.js
function (mQueryOptions, sPath) {
			sPath = sPath[0] === "("
				? _Helper.getMetaPath(sPath).slice(1) // avoid leading "/"
				: _Helper.getMetaPath(sPath);
			if (sPath) {
				sPath.split("/").some(function (sSegment) {
					mQueryOptions = mQueryOptions && mQueryOptions.$expand
						&& mQueryOptions.$expand[sSegment];
					return !mQueryOptions;
				});
			}
			return mQueryOptions && mQueryOptions.$select;
		}
function (mQueryOptions, sPath) {
			sPath = sPath[0] === "("
				? _Helper.getMetaPath(sPath).slice(1) // avoid leading "/"
				: _Helper.getMetaPath(sPath);
			if (sPath) {
				sPath.split("/").some(function (sSegment) {
					mQueryOptions = mQueryOptions && mQueryOptions.$expand
						&& mQueryOptions.$expand[sSegment];
					return !mQueryOptions;
				});
			}
			return mQueryOptions && mQueryOptions.$select;
		}
function ( mQueryOptions , sPath ) { sPath = sPath [ 0 ] === "(" ? _Helper . getMetaPath ( sPath ) . slice ( 1 ) // avoid leading "/" : _Helper . getMetaPath ( sPath ) ; if ( sPath ) { sPath . split ( "/" ) . some ( function ( sSegment ) { mQueryOptions = mQueryOptions && mQueryOptions . $expand && mQueryOptions . $expand [ sSegment ] ; return ! mQueryOptions ; } ) ; } return mQueryOptions && mQueryOptions . $select ; }
Returns the properties that have been selected for the given path.

@param {object} [mQueryOptions]
A map of query options as returned by
{@link sap.ui.model.odata.v4.ODataModel#buildQueryOptions}
@param {string} sPath
The path of the cache value in the cache
@returns {string[]} aSelect
The properties that have been selected for the given path or undefined otherwise
Returns the properties that have been selected for the given path .