UNPKG

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 (14 loc) 346 B
import { getNodeAttributes } from '../core/utils'; function ariaHasAttrMatches(node) { var aria = /^aria-/; if (node.hasAttributes()) { var attrs = getNodeAttributes(node); for (var i = 0, l = attrs.length; i < l; i++) { if (aria.test(attrs[i].name)) { return true; } } } return false; } export default ariaHasAttrMatches;