UNPKG

axe-core

Version:

Accessibility engine for automated Web UI testing

11 lines (9 loc) 295 B
/** * Gets all Checks (or CheckResults) for a given Rule or RuleResult * @param {RuleResult|Rule} rule */ axe.utils.getAllChecks = function getAllChecks(object) { 'use strict'; var result = []; return result.concat(object.any || []).concat(object.all || []).concat(object.none || []); };