index.js
function checkElement(node, attr, includeScope) {
  var elements = getElements(node, attr);

  if (includeScope && node.hasAttribute(attr)) {
    elements.push(node);
  }

  return elements;
}
function checkElement(node, attr, includeScope) {
  var elements = getElements(node, attr);

  if (includeScope && node.hasAttribute(attr)) {
    elements.push(node);
  }

  return elements;
}
function checkElement ( node , attr , includeScope ) { var elements = getElements ( node , attr ) ; if ( includeScope && node . hasAttribute ( attr ) ) { elements . push ( node ) ; } return elements ; }
checkElement
Get an array of elements for a node.
return elements
@param  {Element} node
@param  {String} attr
@param  {Boolean} includeScope
@return {Array}
checkElement Get an array of elements for a node . return elements