code: function forEach(nodes, fn) {
    if (nodes && nodes.length) {
      Array.prototype.slice.call(nodes).forEach(fn);
    }
  }
docs: This is needed as not all browsers, including Edge and IE has not implemented .forEach() on NodeList