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

16 lines (13 loc) 362 B
import getScope from './get-scope'; /** * Determine if a `HTMLTableCellElement` is a row header * @method isRowHeader * @memberof axe.commons.table * @instance * @param {HTMLTableCellElement} cell The table cell to test * @return {Boolean} */ function isRowHeader(cell) { return ['row', 'auto'].includes(getScope(cell)); } export default isRowHeader;