title: Access vue data object from inside a forEach
body: <p>I have the below variable in my data:</p>
  
  <pre><code> data: function () {
      return {
        myVariable: false,
      }
    }
  </code></pre>
  
  <p>How do I access this variable from with a looping function, like below?</p>
  
  <pre><code>  anArray.forEach(function(item) {
        this.myVariable = true; 
        // do something
    });
  </code></pre>
  
  <p>I get 'this' is undefinded as its looking in the current loop function, not the vuejs object.</p>