Thanks for the information, Jake.
Array.from() (or Array.import() that maybe is more intuitive name for the method) would be nice feature in addition to toArray() method of DOM list objects.
But I wonder what are chances for this to be added to the DOM standard. Discussion you've mentioned is outside of firstname.lastname@example.org as far as I can see.
24.12.2011, 05:09, "Jake Verbaten" <email@example.com>:
To add to the conversation. A recent jsperfšš http://jsperf.com/toarray-vs-slicešshows that toArray and slice.call have similar levels of performance depending on array sizes.
And I believe es.next will have Array.from (šhttps://mail.mozilla.org/pipermail/es-discuss/2011-July/015831.html
š) which is basically an official readable method to turn an array like into an array.
However as a web developer, I will add that the most common utility function I use when working with the DOM is a toArray function. I use a toArray function becuase "what does slice.call do?" is a common question.