title: Alternate method to splice function in JavaScript
body: <p>Hi i am working on LIME programming which is a subset of javascript.</p>
  
  <p>i need to use javascript.splice to remove certain elements from my array, sad to say, LIME does not support splice function. </p>
  
  <p>Any idea how do i create my own function to remove elements from an array?</p>
  
  <p>Thanks for your time. </p>
  
  <p>EDIT: Manage to create a simple function.</p>
  
  <pre><code>function removeElements(array, index)
  {
      var tempArray = new Array();
      var counter = 0;
  
      for(var i = 0; i &lt; array.length; i++)
      {
          if(i != index)
          {
              tempArray[counter] = array[i];
              counter++;
          }
      }
      return tempArray;
  }
  </code></pre>