Is there any way in javascript to create class which will create functions, not objects, just like Function class
var realFunc = new Function();
typeof realFunc; // function
var myFunc = new MyFunction();
typeof myFunc; // object :(
I want to add some methods to function, but not to all of them. I don't want to add methods to each function object, better to add them to prototype of my class, isn't it?