title: JSLint doesn’t expect my tildes
body: <p>JSLint insists that my use of the somewhat <a href="http://timmywillison.com/pres/operators/#tilde-useful" rel="noreferrer">exotic <em>tilde</em> operator</a> in the below example is unexpected. What I’m wondering is whether this is a limitation of JSLint? or strict mode? or what else am I missing?</p>
  
  <pre><code>(function () {
      'use strict';
      if (~'foo'.indexOf('bar')) {
          return 'wild accusations';
      }
  }());
  </code></pre>
  
  <p>Also, why shouldn’t I use the simple-looking tilde operator instead of the more complex example below? Surely there must be a good reason not to?</p>
  
  <pre><code>if ('foo'.indexOf('bar') &gt;= 0) { … }
  </code></pre>