title: Invoke a callback with an unknown number of parameters
body: <p>Is there a way in javascript to invoke a callback with an unknown number of parameters?</p>
  
  <p>For example, if this was our invoking method:</p>
  
  <pre><code>function invokeCallback(callback, params) {
      return callback.invoke(params);
  }
  </code></pre>
  
  <p>And if these were our example callback methods:</p>
  
  <pre><code>function action() {
      doSomeAction();
  }
  
  function greet(msg) {
      console.log(msg);
  }
  
  function nameage(name, age) {
      var msg = 'My name is ' + name + ' and my age is ' + age;
      console.log(msg);
  }
  </code></pre>
  
  <p>And if we could then easily call them like so:</p>
  
  <pre><code>invokeCallback(action);
  invokeCallback(greet, 'Hello!');
  invokeCallback(nameage, 'Bob', 20);
  </code></pre>
  
  <p>Then it would be great.</p>
  
  <p>Is something like this possible?</p>