JSFiddle - React, Tailwind, and code Playground
JavaScript
var myObj = {
overview: function(arg1, arg2, arg3) {
console.info('arg1 is ' + arg1);
console.info('arg2 is ' + arg2);
console.info('arg3 is ' + arg3);
},
modules: function(method, args) {
this[method].apply(null, args);
}
};
myObj.modules('overview', new Array('test1', 'test2'));