Object.create() VS functions
bbenvie at mozilla.com
Sat Oct 26 08:06:23 PDT 2013
On 10/26/2013 7:44 AM, Michaël Rouges wrote:
> Knowing that every function is an object, I am surprised that the
> Object.create() method doesn't really allow cloning function.
Object.create creates Objects. You run into the same limitation when
trying to create Arrays with Object.create (doesn't work correctly).
You're looking for Function.create , which doesn't yet exist
(although you can get pretty close using Proxies for functions).
 A sample implementation of Function.create can be found on
More information about the es-discuss