title: Dynamically call a javascript function, imported from another module, by name
body: <p>I'm trying to make some &quot;dynamic&quot; API calls while retrieving some API call templates from a DB.</p>
  <p>So what I have to work with is the module name, the function name inside the module and some args to pass on.</p>
  <p>And I would like to do something like this :</p>
  <pre><code>import someModule;
  
  let someModuleName = &quot;someModule&quot;;
  let someModuleFunctionName = &quot;someModuleFunction&quot;; // someModuleFunction is declared inside someModule
  
  
  someModuleName.someModuleFunctionName(args);
  </code></pre>
  <p>I tried to use brackets notation and also apply() with no success.</p>
  <p>I must say I am a complete beginner in JS and not a professional coder.</p>
  <p>Any thoughts ?</p>
  <p>Regards,</p>