src/dom/hasAttribute.js
function hasAttribute(element, name) {
  assertType(element, Node, false, 'Invalid element specified');
  let value = element.getAttribute(name);
  if (value === '') return true;
  return !noval(value);
}
function hasAttribute(element, name) {
  assertType(element, Node, false, 'Invalid element specified');
  let value = element.getAttribute(name);
  if (value === '') return true;
  return !noval(value);
}
function hasAttribute ( element , name ) { assertType ( element , Node , false , 'Invalid element specified' ) ; let value = element . getAttribute ( name ) ; if ( value === '' ) return true ; return ! noval ( value ) ; }
Checks to see if an element has the attribute of the specified name.

@param {Node} element - Target element.
@param {string} name - Attribute name.

@return {boolean} True if attribute with said name exists, false otherwise.

@alias module:requiem~dom.hasAttribute
Checks to see if an element has the attribute of the specified name .