title: AngularJS - ForEach Accessing previous/next index array, Possible?
body: <pre><code>  $scope.todos = [
      {text:'learn', done:true},
      {text:'build', done:false},
      {text:'watch', done:false},
      {text:'destroy', done:false},
      {text:'rebuild', done:false}];
  
  
    $scope.remaining = function() {
      var count = 0;
      angular.forEach($scope.todos, function(todo,i) {
        todo.text = 'want2learn';
        todo.text[i+1] = todo.text;
      });
  </code></pre>
  
  <p>is it possible for a ForEach function accessing/set previous/next index array value of object, Possible?</p>