Haii so I've recently used converting HTMLCollection to array in order to use the filter method and that by doing Array.prototype.slice.call(htmlcollection).filter(...); from a stackoverflow answer but I can't figure out 2 things:
Array.prototype.slice(htmlcollection).filter(...);won't work- How can a
HTMLCollectionuse an array method
Finally I'd like to create this behavior in my own classes so I can call Array.prototype.slice.call(new MyClass()).filter(...);
Thanks in advance for your generous contribution and time