3 ms·
NodeList.prototype.__proto__ = Array.prototype; Problem solved without Array.from().
by theandrewbailey 2y ago
NodeList.prototype.__proto__ = Array.prototype;
Problem solved without Array.from().
- cr125rider 2y agoDoes the underlying data structure work okay with that? I would assume there is some sort of lazy iterator involved that may not work with array methods, or only work once. This is JavaScript though…
- jazzypants 2y agoPrototype pollution is bad. We learned this over a decade ago.