title: JavaScript: Get value inside Number prototype function
body: <p>I try to use <code>includes</code> in prototype but it does not work but I do not get the expected results:</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>Number.prototype.inList = function (list) {
    return list.includes(this);
  }
  
  let value = 0;
  
  let find1 = value.inList([0,1]);
  let find2 = [0,1].includes(value);
  
  console.log("find1", find1); // false
  console.log("find2", find2); // true</code></pre>
  </div>
  </div>
  </p>