Why not NodeList#forEach :\?

Hemanth H.M hemanth.hm at gmail.com
Mon Jun 11 05:56:15 PDT 2012


Wow, that's interesting. When will that be implemented?

On Mon, Jun 11, 2012 at 5:59 PM, Rick Waldron <waldron.rick at gmail.com>wrote:

>
> On Monday, June 11, 2012 at 6:30 AM, Hemanth H.M wrote:
>
> [].forEach.call(NodeList,function(elm) {}) why that? Why not treat it like
> an [] ?
>
> ES6 draft specifies a new Array constructor called Array.from that will
> essentially convert "array-likes" into arrays:
>
> Array.from( nodes ).forEach(...
>
> Rick
>
>
> --
> *'I am what I am because of who we all are'*
> h3manth.com <http://www.h3manth.com>
> *-- Hemanth HM *
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
>
>
>


-- 
*'I am what I am because of who we all are'*
h3manth.com <http://www.h3manth.com>
*-- Hemanth HM *
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20120611/55094417/attachment.html>


More information about the es-discuss mailing list