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
18 lines (13 loc) • 407 B
JavaScript
import { tokenList } from '../../core/utils';
import { getRoleType } from '../../commons/aria';
function abstractroleEvaluate(node, options, virtualNode) {
const abstractRoles = tokenList(virtualNode.attr('role')).filter(
role => getRoleType(role) === 'abstract'
);
if (abstractRoles.length > 0) {
this.data(abstractRoles);
return true;
}
return false;
}
export default abstractroleEvaluate;