this is an example function:
function processFanGrowth() {
console.log('fanGrowth');
}
and an object "data" which has a property name "FanGrowth"
for(var property in data) {
// here i'm trying to generate the function name.
funcName = "process" + property;
funcName();
}
i'm getting this error: Uncaught TypeError: string is not a function