luhn-generator
Version:
A generator of numbers that passes the validation of Luhn algorithm or Luhn formula, also known as the 'modulus 10' or 'mod 10' algorithm
13 lines (10 loc) • 309 B
JavaScript
import { getRoleType } from '../../commons/aria';
function hasWidgetRoleEvaluate(node) {
const role = node.getAttribute('role');
if (role === null) {
return false;
}
const roleType = getRoleType(role);
return roleType === 'widget' || roleType === 'composite';
}
export default hasWidgetRoleEvaluate;