title: how to get index position of an array item in controller passing a value in angularjs
body: <p>I have an array with list of values. </p>
  
  <pre><code> [Object { id="5", country="UAE"}, Object { id="4", country="India"}]
  </code></pre>
  
  <p>I want to get the index of array item based on the value present in the id. How can I get the index position of an array item with value of id = 4 in angularJS Controller?</p>