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

15 lines (11 loc) 375 B
import windowIsTopMatches from './window-is-top-matches'; function bypassMatches(node) { // the top level window should have an anchor if (windowIsTopMatches(node)) { return !!node.querySelector('a[href]'); } // all iframes do not need an anchor but should be checked for bypass // elements (headings, landmarks, etc.) return true; } export default bypassMatches;