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 (16 loc) 491 B
function focusableContentEvaluate(node, options, virtualNode) { /** * Note: * Check if given node contains focusable elements (excluding thyself) */ const tabbableElements = virtualNode.tabbableElements; if (!tabbableElements) { return false; } // remove thyself from tabbable elements (if exists) const tabbableContentElements = tabbableElements.filter( el => el !== virtualNode ); return tabbableContentElements.length > 0; } export default focusableContentEvaluate;