2 ms·
> In the future, NodeList could extend Array which would make these workarounds redundant. It would break the web, unfortunately. (We've experimented with Node
by gsnedders 10y ago
> In the future, NodeList could extend Array which would make these workarounds redundant.
It would break the web, unfortunately. (We've experimented with NodeList.prototype.__proto__ being Array.prototype instead of Object.prototype and it breaks sites, and ES6's extends notion implies that.)