AngularJs check weather Array containing an item or not : <p>I have array of name:<br>
<code>$scope.myArray</code> with some values.<br>
Now I want to check an Item is present in array or not,<br>
If it is not present then I want to push that item into array and If that item is already in array then I don't want to push it.<br>
Please tell me how to do this ?</p>
