If I want to call a static function by name as string, how do I?
I did what is below, suppose the function name is "move".
class Transformation {
static operate(object, function_name) {
eval(function_name)(object);
}
static move(object) {... some code...}
}
But it did not work.
NOTE: I'm calling this function from another file in the same directory.