title: Conditional function call without if
body: <p>I used the following code a lot in my work</p>
  
  <pre><code>if (people === 'someone') {
    doSomething();
  }
  </code></pre>
  
  <p>Is there any shorter way to do it ?</p>