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

21 lines (18 loc) 678 B
import findUpVirtual from './find-up-virtual'; import { getNodeFromTree } from '../../core/utils'; /** * Find the virtual node and call dom.fundUpVirtual * * **WARNING:** this should be used sparingly, as it's not even close to being performant * @method findUp * @memberof axe.commons.dom * @instance * @deprecated use axe.utils.closest * @param {HTMLElement} element The starting HTMLElement * @param {String} target The selector for the HTMLElement * @return {HTMLElement|null} Either the matching HTMLElement or `null` if there was no match */ function findUp(element, target) { return findUpVirtual(getNodeFromTree(element), target); } export default findUp;