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
19 lines (13 loc) • 392 B
JavaScript
import { getRole } from '../../commons/aria';
function ariaRoledescriptionEvaluate(node, options = {}) {
const role = getRole(node);
const supportedRoles = options.supportedRoles || [];
if (supportedRoles.includes(role)) {
return true;
}
if (role && role !== 'presentation' && role !== 'none') {
return undefined;
}
return false;
}
export default ariaRoledescriptionEvaluate;