I need to call a function within the module.export
object by knowing only it string
name
module.exports = {
a : function() { console.log('a'); },
b : function() { console.log('b'); },
c : function() {
var fn; // string contain the name of the function to call ('a' or 'b' for example)
// How do I call `fn` programatically from here?
// something like `self[fn]()`
}
};