title: How to manually destroy an object in javascript?
body: <p>Consider the below code,</p>
  
  <pre><code>function destroyer(obj){
    obj = undefined;
  }
  
  abcObj = {
    a:1,
    b:2
  }
  
  destroyer(abcObj);
  </code></pre>
  
  <p>As far as I understand, all I can do is throw the object out of scope and the GC will clean it when it sees fit. But the above code does not throw the object out of scope.</p>
  
  <p>How to force an object out of scope?</p>
  
  <p><strong>Reason for wanting to do so</strong>: The thing I wanted to achieve is a class having a static method <code>destroy</code> to destroy the instances of same class. Is that possible in javascript? Or is it that I can't force the cleanup. A cleanup method would be great since, the lib I'm working with spawns a lot of instances like 200 to 300.</p>