title: angular Foreach loop through the process and check condition
body: <pre><code>$scope.users = [{
      user_id: 101,
      type: 2,
      name: "Harry"
    },
    {
      user_id: 102,
      type: 2,
      name: "James"
    }
  ];
  
  $scope.item = {
    id: 10,
    type: 3
  };
  
  angular.forEach($scope.users, function(value, key) {
    if (value.type != $scope.item.type) {
      console.log('Sorry this is not for you!');
      return false;
    }
  }); 
  </code></pre>
  
  <p>Let to confirm if it does not match with condition it should return console and exit</p>
  
  <p>Try with break; keyword and return false does not work please guide</p>