JS学びたてで個人的にいいなと思ったのでメモ
example.js
var selectFunc = new Array();
selectFunc.hoge = function(){
console.log("hoge");
}
selectFunc.foo = function(){
console.log("foo");
}
var name = ["hoge","foo"];
name.forEach(function(res){
selectFunc[res];
})
こんな感じの事が出来る。