title: What would be a more elegant approach to calling a wrapper while giving it a function to run
body: <p>I have a wrapper function <code>wrapper(param1, param2, param3, myfunc)</code>, and myfunc which is defined as <code>myfunc(param1, param2, param3)</code>.</p>
  
  <p>I want to call the wrapper on myfunc within a function call which takes a function as a parameter and calls it with parameters. Right now, my function call looks like <code>caller((param1, param2, param3) =&gt; wrapper(param1, param2, param3, myfunc))</code>.</p>
  
  <p>Within wrapper, of course, there's a line <code>myfunc(param1, param2, param3)</code>.</p>
  
  <p>Is there any way I could rewrite this all to make the function call more elegant? I want to be able to easily call wrapper in other places (which provide it with the first 3 parameters) and somehow give it a function.</p>