UNPKG

eslint-plugin-lit-a11y

Version:
12 lines (10 loc) 290 B
/** * * @param {string[]} attributes - Array of the specific elements' attributes * @param {string} attribute - the attribute we want to find * @returns {boolean} */ function hasAttr(attributes, attribute) { return Object.keys(attributes).includes(attribute); } export { hasAttr };