Is everything linked to Function prototype as well?
<p>I am reading JavaScript The Good Parts without prior js knowledge and this bit baffled me. I think I need clarification.</p>

<blockquote>
  <p>JavaScript allows the basic types of the language to be augmented. In Chapter 3, we saw that adding a method to Object.prototype makes that method available to all objects. This also works for functions, arrays, strings, numbers, regular expressions, and booleans.
  For example, by augmenting Function.prototype, we can make a method available to all functions:</p>
</blockquote>

<p>Then goes on with this example:</p>

<pre><code>Function.prototype.method = function (name, func) {
     this.prototype[name] = func;
     return this;
};
</code></pre>

<p>Now every basic type has a "method" method so new functions can be defined for them, like:</p>

<pre><code>Number.method('integer', function () {
    return Math[this &lt; 0 ? 'ceiling' : 'floor'](this);
});
</code></pre>

<p>But the book previously noted everything links to Object not to Function! How is this working out?</p>
