title: Remove or Filter values out of an Array using for loop or a function
body: <p>I have an Array and i would like to  Filter or delete the following urls from my Array every time they appear:   </p>
  
  <pre><code>"https://basueUrl.com/Claim"
  "https://basueUrl.com/ExplanationOfBenefit"
  </code></pre>
  
  <p>My Array</p>
  
  <pre><code>Array= [  
          "https://basueUrl.com/Patient"
          "https://basueUrl.com/Organization"
          "https://basueUrl.com/Claim"
          "https://basueUrl.com/Practitioner"
          "https://basueUrl.com/Encounter"
          "https://basueUrl.com/Condition"
          "https://basueUrl.com/Claim"
          "https://basueUrl.com/ExplanationOfBenefit"
          "https://basueUrl.com/Claim"
          "https://basueUrl.com/ExplanationOfBenefit" 
          "https://basueUrl.com/ExplanationOfBenefit"
          ]
  </code></pre>
  
  <p><strong>First Solution</strong> I have tried for loop but did not work?</p>
  
  <pre><code>   for( var i = 0; i &lt; Array.length; i++){ 
     if ( Array[i] === "https://basueUrl.com/ExplanationOfBenefit" &amp; "https://basueUrl.com/Claim") {
      Array.splice(i, 1);
      i--;
     }
  }
  console.log(Array);
  
  </code></pre>
  
  <p><strong>Second Solution</strong> I tried making a remove method did not work either.  </p>
  
  <pre><code>function arrayRemove(Array, value) {
  
     return Array.filter(function(ele){
         return ele != value;
     });
  }
  var result = arrayRemove(Array,"https://basueUrl.com/ExplanationOfBenefit" &amp; "https://basueUrl.com/Claim");
  
  </code></pre>
  
  <p>Any suggestion please?</p>