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) 389 B
import getScope from './get-scope'; /** * Determine if a `HTMLTableCellElement` is a column header * @method isColumnHeader * @memberof axe.commons.table * @instance * @param {HTMLTableCellElement} element The table cell to test * @return {Boolean} */ function isColumnHeader(element) { return ['col', 'auto'].indexOf(getScope(element)) !== -1; } export default isColumnHeader;