title: Is is possible to create a for-of loop without a variable?
body: <p>Suppose I have a function like this: </p>
  
  <pre><code>const hasAny = xs =&gt; {
    for (const x of xs) {
      return true;
    }
  
    return false;
  };
  </code></pre>
  
  <p><a href="/questions/tagged/eslint" class="post-tag" title="show questions tagged &#39;eslint&#39;" rel="tag">eslint</a> will complain that <code>x</code> is not used, and indeed it isn't. </p>
  
  <p>Can I write a for-of loop that does not declare any variables?</p>