eslint-plugin-lit-a11y
Version:
linting plugin for lit-a11y
14 lines (12 loc) • 303 B
JavaScript
/**
*
* @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);
}
module.exports = {
hasAttr,
};