code: function forEachElement(elements, callback = () => {}) {
    const elementsType = Object.prototype.toString.call(elements);
    const isCollectionTyped = (elementsType === '[object Array]' ||
            (elementsType === '[object NodeList]') ||
            (elementsType === '[object HTMLCollection]') ||
            (typeof jQuery !== 'undefined' && elements instanceof jQuery) || // jquery
            (typeof Elements !== 'undefined' && elements instanceof Elements) // mootools
        );
    let i = 0;
    const j = elements.length;
    if (isCollectionTyped) {
      for (; i < j; i += 1) {
        callback(elements[i]);
      }
    } else {
      callback(elements);
    }
  }
docs: Iterate over each of the provided element(s).
  
  @param {HTMLElement|HTMLElement[]} elements
  @param {Function}                  callback