title: indexOf not working in AngularJS filter
body: <p>I have created the following filter in angular.js. Now I am trying to use the indexOf to remove the country variable by splice I always get the error saying _filters.indexOf is not a function:</p>
  
  <pre><code>.filter('MyFilter', function () {
      return function (_filters) {
          _filters = _filters.splice(_filters.indexOf(_filters['country']), 1);
      }
  })
  </code></pre>
  
  <p>The filter object looks like this:</p>
  
  <pre><code>{
    "rate": 5,
    "country": [
      "Russia",
      "Polen",
      "France"
    ],
    "city": [
      "Dubai"
    ]
  }
  </code></pre>