How to add the "size" property to Javascript Array?
<p>To add the <code>size()</code> method to the <code>Array</code> object I do:</p>

<pre><code>if (!Array.size) {
    Array.prototype.size = function() {
        return this.length;
    };
}
</code></pre>

<p>Is there a simple way to define the <code>size</code> <strong>property</strong> that will work like <code>length</code> ?</p>

<p>(I don't really need it, I just want to understand if this is something easily achievable in Javascript.)</p>
