I have an object with functions as properties:
var o = {
"f1":function(){alert('invoke one');},
"f2":function(){alert('invoke two');},
"f3":function(){alert('invoke three');}
};
I am planning to use _.each of http://underscorejs.org/ to invoke them. So, my invocation will look like
_.each(o, function(f){f();});
what irritates is the second parameter for _.each. If there is a such function "invoke", I could just call _.each(o,invoke);
I know that defining invoke is fairly easy:
function invoke (f){f();}
but I just want to know if there is anything built-in that I am not aware of.