lib/core/utils/select.js
function reduceIncludes(includes) {
	return includes.reduce((res, el) => {
		if (
			!res.length ||
			!res[res.length - 1].actualNode.contains(el.actualNode)
		) {
			res.push(el);
		}
		return res;
	}, []);
}
function reduceIncludes(includes) {
	return includes.reduce((res, el) => {
		if (
			!res.length ||
			!res[res.length - 1].actualNode.contains(el.actualNode)
		) {
			res.push(el);
		}
		return res;
	}, []);
}
function reduceIncludes ( includes ) { return includes . reduce ( ( res , el ) => { if ( ! res . length || ! res [ res . length - 1 ] . actualNode . contains ( el . actualNode ) ) { res . push ( el ) ; } return res ; } , [ ] ) ; }
reduces the includes list to only the outermost includes
@param {Array} the array of include nodes
@return {Array} the modified array of nodes
reduces the includes list to only the outermost includes