lib/core/base/rule.js
function findCheckResults(nodes, checkID) {
	'use strict';

	var checkResults = [];
	nodes.forEach(function(nodeResult) {
		var checks = axe.utils.getAllChecks(nodeResult);
		checks.forEach(function(checkResult) {
			if (checkResult.id === checkID) {
				checkResults.push(checkResult);
			}
		});
	});
	return checkResults;
}
function findCheckResults(nodes, checkID) {
	'use strict';

	var checkResults = [];
	nodes.forEach(function(nodeResult) {
		var checks = axe.utils.getAllChecks(nodeResult);
		checks.forEach(function(checkResult) {
			if (checkResult.id === checkID) {
				checkResults.push(checkResult);
			}
		});
	});
	return checkResults;
}
function findCheckResults ( nodes , checkID ) { 'use strict' ; var checkResults = [ ] ; nodes . forEach ( function ( nodeResult ) { var checks = axe . utils . getAllChecks ( nodeResult ) ; checks . forEach ( function ( checkResult ) { if ( checkResult . id === checkID ) { checkResults . push ( checkResult ) ; } } ) ; } ) ; return checkResults ; }
Finds and collates all results for a given Check on a specific Rule
@private
@param  {Array} nodes RuleResult#nodes; array of 'detail' objects
@param  {String} checkID The ID of the Check to find
@return {Array}         Matching CheckResults
Finds and collates all results for a given Check on a specific Rule