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

12 lines (8 loc) 212 B
import { isHTML5 } from '../../commons/dom'; function html5ScopeEvaluate(node) { if (!isHTML5(document)) { return true; } return node.nodeName.toUpperCase() === 'TH'; } export default html5ScopeEvaluate;