title: Accessing this in a forEach loop results in undefined
body: <p>I'm iterating through an array using forEach in one of my Class's methods. I need access to the instance of the class inside the forEach but <strong>this</strong> is undefined.</p>
  
  <pre><code>var aGlobalVar = {};
  
  (function () {
  
      "use strict";
  
    aGlobalVar.thing = function() {
        this.value = "thing";   
    }
  
    aGlobalVar.thing.prototype.amethod = function() {
        data.forEach(function(d) {
        console.log(d);
        console.log(this.value);
    });
  }
  })();
  
  var rr = new aGlobalVar.thing();
  rr.amethod(); 
  </code></pre>
  
  <p>I have a fiddle I'm working on here: <a href="http://jsfiddle.net/NhdDS/1/" rel="noreferrer">http://jsfiddle.net/NhdDS/1/</a> .</p>