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
17 lines (14 loc) • 363 B
JavaScript
import standards from '../../standards';
/**
* Check if an aria- attribute name is valid
* @method validateAttr
* @memberof axe.commons.aria
* @instance
* @param {String} att The attribute name
* @return {Boolean}
*/
function validateAttr(att) {
const attrDefinition = standards.ariaAttrs[att];
return !!attrDefinition;
}
export default validateAttr;