title: Javascript - Pop a value from array, but not at the end of array
body: <p>I have for example this array (each number is singolar, no one duplicate) called pvalue : 1 2 3 15 20 12 14 18 7 8 (sizeof 10).</p>
  
  <p>I need for example to pop the value "15", and after this pvalue should be 1 2 3 20 12 14 18 7 8 (sizeof 9). How can do it?</p>
  
  <p>the pop() function take the value at the end of the array. I don't want this :)
  cheers</p>
  
  <p>EDIT</p>
  
  <pre><code>for(i=0; i&lt;pvalue.length; i++) {
      if(pvalue[i]==param) {
          ind=i;
          break;
      }
  }
  pvalue.splice(ind, 1);
  </code></pre>