title: Javascript setInterval clearing itself?
body: <p>I'm wondering if there's a way to make <code>setInterval</code> clear itself. </p>
  
  <p>Something like this:</p>
  
  <pre><code>setInterval(function () {
      alert(1);
      clearInterval(this);
  }, 2000);
  </code></pre>
  
  <p>I want it to keep checking thing if it's finished it will stop.</p>