title: How do I access a Javascript property from within the object itself?
body: <p>Ok so, I am trying to access a property and I am having issues with it.
  The issue seems to be while accessing <code>this.threshhold</code>. In the example below, I expected the alert to display <code>100</code>, but I am getting <code>undefined</code>.</p>
  
  <p>I understand that the object has not yet been created and I assume that neither the object nor the property exist yet(?) so the object cannot not be accessed for that <em>obvious</em> reason.</p>
  
  <p>Am I approaching this wrongly? Can this be done? If not; is there any other clean/proper way to do this?</p>
  
  <p>Hopefully, I have been clear enough.</p>
  
  <p><a href="https://jsfiddle.net/fq58vz1f/" rel="nofollow">https://jsfiddle.net/fq58vz1f/</a></p>
  
  <pre><code>  var helpers = {
      throttle: function(fn, threshhold) {
        return function() {
          alert(threshhold);
        }
      }
    };
  
    var header = {
      threshhold: 100,
      scroll: helpers.throttle(function() {
        // stuff
      }, this.threshhold)
    };
  
    header.scroll();
  </code></pre>