title: JS: delete first element from array by value
body: <p>I have an array:</p>
  
  <pre><code>arr = [50, 40, 50, 50];
  </code></pre>
  
  <p>I need to delete first element, that equal 50 and dont touch another.
  This code return only <code>[40]</code>.</p>
  
  <pre><code>arr = arr.filter(function(e) {return e !== 50}) // [40]
  </code></pre>
  
  <p>But I need </p>
  
  <pre><code>arr = arr.somefunction(function(e) {return e !== 50}) // [40, 50, 50]
  </code></pre>
  
  <p>I would be grateful for any help.</p>