Let's assume I have an object:
function obj(){
this.getAll = function(){}
this.doSome = function(){}
}
If I want to invoke them, of course I need to do: obj.getAll();
Now, if I want this object to have a general method, but without specific name, like this code:
function obj(){
this.getAll = function(){}
this.doSome = function(){}
this.x = function(){}
}
And by invoking obj.abc(), it will go to this.x
Is it possible to do?