title: Using _ (underscore) variable with arrow functions in ES6/Typescript
body: <p>I came across this construct in an Angular example and I wonder why this is chosen:</p>
  <pre><code>_ =&gt; console.log('Not using any parameters');
  </code></pre>
  <p>I understand that the variable <code>_</code> means don't care/not used but since it is the only variable is there any reason to prefer the use of <code>_</code> over:</p>
  <pre><code>() =&gt; console.log('Not using any parameters');
  </code></pre>
  <p>Surely this can't be about one character less to type. The <code>()</code> syntax conveys the intent better in my opinion and is also more type specific because otherwise I think the first example should have looked like this:</p>
  <pre><code>(_: any) =&gt; console.log('Not using any parameters');
  </code></pre>
  <p>In case it matters, this was the context where it was used:</p>
  <pre><code>submit(query: string): void {
      this.router.navigate(['search'], { queryParams: { query: query } })
        .then(_ =&gt; this.search());
  }
  </code></pre>