title: javascript object how to use 'this'?
body: <p>This code is working but if I change <code>N.max</code> to <code>this.max</code> it stops working.
  I wonder why it doesn't work</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>const N = {
    min: function(arr) {
      arr.sort((a, b) =&gt; a - b);
      return arr.reduce(function(a, b) {
        return a * b / N.max(a, b); // here
      });
    },
    max: (a, b) =&gt; (b) ? N.max(b, a % b) : a // and here
  }
  
  let arr = [2, 6, 8, 14];
  
  console.log(N.min(arr));</code></pre>
  </div>
  </div>
  </p>