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

14 lines (10 loc) 219 B
function noEmptyRoleMatches(node, virtualNode) { if (!virtualNode.hasAttr('role')) { return false; } if (!virtualNode.attr('role').trim()) { return false; } return true; } export default noEmptyRoleMatches;