Pure win: Array.from and Array.of

Brendan Eich brendan at mozilla.org
Sat Jul 9 22:35:48 PDT 2011

Thanks to @rwaldron for compiling these, and dherman (@littlecalculist) for being a twitter conversationalist who speaks in JS:


From a twitter conversation sparked by an IRC conversation where I reminded jcranmer at mozilla.com that ES5 Function.prototype.bind can be used to spread arguments into a 'new' expression.

Standardizing these would save reinventing them, and the built-ins could be optimized quite a bit.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20110709/5f1c187d/attachment.html>

More information about the es-discuss mailing list