title: Get element's index after using filter
body: <p>I have an array with objects. I want to find a specific object's index. This object has an unique <code>id</code> property' value , and i can find it with a <code>$filter</code> :</p>
  
  <pre><code> var el = $filter('filter')( tabs, { id: id })[0]; // "el" is my unique element 
  </code></pre>
  
  <p>But how can i know what is the index of this element in it's original array? Does <code>$filter</code> can provide me this information?</p>
  
  <hr>
  
  <p>By now i didn't find an Angular solution, because i can't get much useful info on <a href="http://docs.angularjs.org/api/ng.%24filter">this page</a>. So i have used <code>Array</code>'s <code>indexOf</code> method :</p>
  
  <pre><code> var el_index = tabs.indexOf( el );
  </code></pre>
  
  <p><a href="http://jsfiddle.net/BhxVV/">http://jsfiddle.net/BhxVV/</a></p>
  
  <p>To get indexes of all elements with specific <code>id</code> we go the similar way:</p>
  
  <pre><code> $scope.getTabsIndexes = function(id){
        var els = $filter('filter')( tabs , { id: id });
        var indexes = [];
        if(els.length) { 
            var last_i=0;
            while( els.length ){
               indexes.push( last_i = tabs.indexOf( els.shift() , last_i ) );
            }
        }
        return indexes;        
   }
  </code></pre>
  
  <p><a href="http://jsfiddle.net/BnBCS/1/">http://jsfiddle.net/BnBCS/1/</a></p>
  
  <p>But it is too long and i'm sure that i'm reinventing  the wheel here...</p>