title: How to do non short circuit condition in Typescript?
body: <p>How to evaluate condition in non short circuit way in typescript?
  Typescript does not allow <code>&amp;</code> or <code>|</code> for boolean type.
  The reason why I need a non short circuit checking is I call showErrors in function <code>isValueValid</code>.</p>
  
  <p><strong>Given this function</strong></p>
  
  <pre><code>function isValue1Valid(){
    if(value1 === 0) return true;    
    showErrors1();
    return false;
  }
  
  function isValue2Valid(){
    if(value2 === 0) return true;    
    showErrors2();
    return false;
  }
  </code></pre>
  
  <p><strong>Then in my condition</strong></p>
  
  <pre><code>if(isValue2Valid() &amp; isValue2Valid()){
  //Submit data
  }
  </code></pre>
  
  <p>Although I can do it like this one</p>
  
  <pre><code>if(isValue2Valid() &amp; isValue2Valid()){
  //Submit data 
     return;
  }
  showErrors1()
  showErrors2()
  </code></pre>
  
  <p>But I feel to call it inside isValueValid function. In reality I always think to call show errors by default whenever there's an error.</p>