title: Passing more than one argument in to a promise function?
body: <p>Often you need to pass "another" argument to a chained function, as well as the "results".  How to do that?</p>
  
  <p>Here's a Parse cloud code example:</p>
  
  <pre><code>var _ = require('underscore');
  Parse.Cloud.define("doSomething", function(request, response)
      {
      var companyId = request.params.company;
      blah...
  
      companyFromCompanyId(companyId).then(function(company)
          {
          blah...
          return employeesFromCompany(company, kount);
  
      }).then(function(employees)
          {
          blah...
          // here, we would like to have passed in 'company' as an argument
          // as well as the "employees" result:
          ...  company.get("name") ...
          blah...
          }
          ,
          function(error) {blah...}
          );
  });
  </code></pre>
  
  <p>So, with <code>then(function(employees)</code> I want to have "more arguments" coming in.</p>
  
  <p>(Obviously, one could just make a variable in a bigger scope. In this question I am asking how to pass more arguments in to a .then)</p>