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
> [email protected]
> https://mail.mozilla.org/listinfo/es-discuss
> 
> 


_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to