title: Destructuring promise callback
body: <p>There is a promise in my code:</p>
  <pre><code>req.getValidationResult()
          .then(result =&gt; {
              let errors = result.array();
              if (errors.length) {
                  return res.status(400).json({ errors: errors });
              }
              
              return next();
          });
  </code></pre>
  <p>I'd like to know is there any variants to destructure my 'result' variable on then call (something like <code>.then({result.array(): errors} =&gt;...</code>) and not to make <code>let errors = result.array();</code> assignment.</p>