title: how to compare a string in angular
body: <p>I have an array and I use ng-repeat to display the items in the array. However, I want to compare if the array contains the word "doctor". And if it contains doctor, I need to do some logic.</p>
  
  <p>My array is as follows</p>
  
  <p>fields : ['research','doctor','educator']</p>
  
  <p>How do I do it? </p>