Why does Array.from also take a mapFn?

Jason Orendorff jason.orendorff at gmail.com
Tue Jun 25 08:17:40 PDT 2013

On Tue, Jun 25, 2013 at 9:46 AM, Jason Orendorff
<jason.orendorff at gmail.com> wrote:
> Oh, I didn't get that Array.prototype.filter and the rest are going to
> be subclass-friendly! Hmm. I want to love this change, but I'm
> ambivalent. Typed arrays are fixed-length, and DOM NodeLists aren't
> even constructible. :-\

Wait - the fact that NodeList is *not* a constructor would save
NodeLists in this case. The subclass-friendly methods would still
create arrays.


More information about the es-discuss mailing list