Sugar for *.prototype and for calling methods as functions

Brandon Benvie brandon at
Tue Feb 21 04:59:27 PST 2012

I would ask as an exploratory idea: is there any interest in, and what
problems exist with exposing most {Builtin}.prototype.* methods as unbound
functional {Builtin}.* functions. Or failing that, a more succint
expression for the following:

Array.prototype.[map/reduce/forEach].call(arraylike, callback)
Object.set('key', va)

Basically, JavaScript has incredible usage potential as a functional
language but has almost not built in support in terms of applyable
functions. It teases you with its charms and then gives no direct payout,
instead asking you to put just one more dollar in for the good stuff.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list