title: Typescript string empty check is not working
body: <p>how to validate white space to false. am using  <code>if (value)</code> to check <code>value</code>. <code>method2</code> prints true. is there any method to check  white space string like this <code>'  '</code></p>
  
  <pre><code> method1() {
      this.method2(' ');
    }
  
    method2(value) {
      debugger;
      if (value) {
        console.log("true");
      } else {
        console.log("false");
      }
    }
  </code></pre>