lib/core/utils/select.js
function pushNode(result, nodes) {
	'use strict';

	var temp;

	if (result.length === 0) {
		return nodes;
	}
	if (result.length < nodes.length) {
		// switch so the comparison is shortest
		temp = result;
		result = nodes;
		nodes = temp;
	}
	for (var i = 0, l = nodes.length; i < l; i++) {
		if (!result.includes(nodes[i])) {
			result.push(nodes[i]);
		}
	}
	return result;
}
function pushNode(result, nodes) {
	'use strict';

	var temp;

	if (result.length === 0) {
		return nodes;
	}
	if (result.length < nodes.length) {
		// switch so the comparison is shortest
		temp = result;
		result = nodes;
		nodes = temp;
	}
	for (var i = 0, l = nodes.length; i < l; i++) {
		if (!result.includes(nodes[i])) {
			result.push(nodes[i]);
		}
	}
	return result;
}
function pushNode ( result , nodes ) { 'use strict' ; var temp ; if ( result . length === 0 ) { return nodes ; } if ( result . length < nodes . length ) { // switch so the comparison is shortest temp = result ; result = nodes ; nodes = temp ; } for ( var i = 0 , l = nodes . length ; i < l ; i ++ ) { if ( ! result . includes ( nodes [ i ] ) ) { result . push ( nodes [ i ] ) ; } } return result ; }
Pushes unique nodes that are in context to an array
@private
@param  {Array} result  The array to push to
@param  {Array} nodes   The list of nodes to push
@param  {Object} context The "resolved" context object, @see resolveContext
Pushes unique nodes that are in context to an array