function isNodeList(val) {
    var type = Object.prototype.toString.call(val);
    return type === htmlCollectionType || type === nodeListType;
  }
Check if a value is a node list or a html collection.

@param {*} val
@returns {Boolean}