code: function isNodeList(nodes) {
    var stringRepr = Object.prototype.toString.call(nodes)
  
    return typeof nodes === 'object' &&
      /^\[object (HTMLCollection|NodeList|Object)\]$/.test(stringRepr) &&
      (typeof nodes.length === 'number') &&
      (nodes.length === 0 || (typeof nodes[0] === "object" && nodes[0].nodeType > 0))
  }
docs: Thanks: http://stackoverflow.com/questions/7238177/detect-htmlcollection-nodelist-in-javascript