title: ES6 destructuring, dynamic assignment
body: <pre><code>let text, value;
  if (typeof f == 'string') {
      text = value = f;
  } else {
      let {
          text, value
      } = f;
  }
  </code></pre>
  
  <p>Doing this creates two new vars (from the <code>else</code>), however if I write it like so:</p>
  
  <pre><code>let text, value;
  if (typeof f == 'string') {
      text = value = f;
  } else {
      {
          text, value
      } = f;
  }
  </code></pre>
  
  <p>I receive a syntax error. What is the best approach here?</p>