Hey look, it's my favorite example.

var powersOf2 = Array.apply(null, new
Array(32)).map(Function.prototype.call.bind(Number)).map(Math.pow.bind(null,
2))

> var powersOf2 = []
> >
> > for (var index=0; index<16; index++) {
> >   powersOf2.push(Math.pow(2, index))
> > }
>
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to