How do you set up an Object that has multiple functions the second code example is what I'm trying todo
Object.defineProperty(NodeList.prototype, 'each', {
    value: function (fn) {
        return Array.from(this).forEach((node, index) => fn(node, index))
    }
});
// below doesn't work
HTMLElement.prototype = {
   hasClass: function(selector) {
   },
   next: function(selector) {
   }
}
 
    