title: How can i make check for empty string to be considered as truthy value
body: <p>In js empty string is considered as falsy value.</p>
  <pre><code>
  let str = '';
  
  if (str) {
    alert('success')
  } else {
    alert('failure')
  }
  
  </code></pre>
  <p>i get printed failure.</p>
  <p>I have a scenario where i want to consider everything as falsy value in my string except ''.</p>
  <p>Is there other way except with this explicit checking ?</p>
  <pre><code>if (str == '') {
  </code></pre>