Linked Questions

Popular Questions

Can you make an object 'callable'?

Asked by At

Is it possible to make an object callable by implementing either call or apply on it, or in some other way? E.g.:

var obj = {};
obj.call = function (context, arg1, arg2, ...) {
    ...
};

...

obj (a, b);

Related Questions