title: Typescript String equality check not working
body: <p>I am using Angular 5. </p>
  
  <p>In my component, I check if value is equal to "DATE".</p>
  
  <pre><code>isDateColumn(columnName: string){
      this.configData.some((el) =&gt; {
        if (columnName == el.key.columnName){
          console.log("FOUND: " + el.dataType + " For " + columnName);
          return el.dataType === "DATE";
        }
      })
      return false;
    }
  </code></pre>
  
  <p>In my console, I found something like below:</p>
  
  <p><code>FOUND: DATE For CLIENT_START_DT</code></p>
  
  <p>But this function still returns me <code>false</code>.</p>
  
  <p>Why is it so? </p>