Why does Array.from also take a mapFn?

Anne van Kesteren annevk at annevk.nl
Tue Jun 25 07:59:32 PDT 2013


On Tue, Jun 25, 2013 at 11:46 PM, Jason Orendorff
<jason.orendorff at gmail.com> wrote:
> If (as I am beginning to suspect) it just makes no sense for NodeList
> to be a subclass of Array, we should urgently figure out some kind of
> recommendation for such cases. DOM has more than just the one.

We could give NodeList a constructor. Eventually we want something
slightly different from NodeList though, that also exposes some custom
methods that make sense for searching through nodes.


--
http://annevankesteren.nl/


More information about the es-discuss mailing list