src/js/utils/dom.js
function getElementFromObject(attachTo) {
  const op = attachTo.element;

  if (op instanceof HTMLElement) {
    return op;
  }

  return document.querySelector(op);
}
function getElementFromObject(attachTo) {
  const op = attachTo.element;

  if (op instanceof HTMLElement) {
    return op;
  }

  return document.querySelector(op);
}
function getElementFromObject ( attachTo ) { const op = attachTo . element ; if ( op instanceof HTMLElement ) { return op ; } return document . querySelector ( op ) ; }
Get the element from an option object

@method getElementFromObject
@param Object attachTo
@returns {Element}
@private
Get the element from an option object