title: accessing arguments in an inner function argument (javascript)
body: <p>Is there any possible way to obtain the arguments from a function that's been listed as an argument in another function? For example:</p>
  
  <pre><code>    function contract(preList,post,f) //where f is the function in question
  {
          //get arguments of f and do something
  
  }
  </code></pre>
  
  <p>In the function contract, preList checks if the arguments presented by f are numbers, and post checks if the result returned by f is a number.</p>
  
  <p>Here is what the contract function would look like in use:</p>
  
  <pre><code>    var mult = contract(
               [isNumber, isNumber], //isNumber checks if input is number
                isNumber,
                function mult (x, y) {
                  return x+y;
                 });
  </code></pre>
  
  <p>I'm trying to access the x and y but I have very limited experience in javascript and I feel like I'm not asking the right questions to solve this. Any help would be appreciated!</p>