title: remove object from array with just the object's reference
body: <p>Suppose I have an array of objects called <code>MyArray</code> and that a certain function returns a reference for a particular element within that array; something like this:</p>
  
  <pre><code>MyArray = [Object1, Object2, ..., Objectn];
  
  function DoWork() {
  
     var TheObject = GetTheObject(SomeParamter);
  }
  </code></pre>
  
  <p>At this point, <code>TheObject</code> points to a certain element in the array. Suppose I want to remove this element from <code>MyArray</code>, is this possible without having to reloop through the array to get the index of the element? </p>
  
  <p>I'm looking for something like splice that would work with the reference to the element rather than the index of the element.</p>