src/js/main.js
/**
     * Basic Helper function to check if an Element is an instance of Node
     * @param {any} domNode either a dom node or querySelector
     * @returns {boolean} either true or false
     */
Basic Helper function to check if an Element is an instance of Node
@param {any} domNode either a dom node or querySelector
@returns {boolean} either true or false
Basic Helper function to check if an Element is an instance of Node @param { any } domNode either a dom node or querySelector @returns { boolean } either true or false
function isDomElement(domNode) {
      if (domNode instanceof Node || domNode instanceof NodeList || domNode instanceof HTMLCollection) {
        return true;
      }
      return false;
    }
function isDomElement ( domNode ) { if ( domNode instanceof Node || domNode instanceof NodeList || domNode instanceof HTMLCollection ) { return true ; } return false ; }
Basic Helper function to check if an Element is an instance of Node
 @param {any} domNode either a dom node or querySelector
 @returns {boolean} either true or false
Basic Helper function to check if an Element is an instance of Node @param { any } domNode either a dom node or querySelector @returns { boolean } either true or false