Filters word combinations containing certain function words at any position.

@param {WordCombination[]} wordCombinations The word combinations to filter.
@param {array} functionWords The list of function words.
@returns {WordCombination[]} Filtered word combinations.
function filterFunctionWordsAnywhere( wordCombinations, functionWords ) {
	return wordCombinations.filter( function( combination ) {
		return isEmpty(
			intersection( functionWords, combination.getWords() )
		);
	} );
}