How to call a class method, where the method name is coming from the dynamic variable / object?
const actions = [{ action: \'someMethodName\', params: \