Here you can find the source of size()
///*from w w w.j av a 2 s . c o m*/ /** * Returns the number of elements in this array. * @return the number of elements in this array. */ Array.prototype.size = function () { return this.length; };
Array.prototype.size = function() { return this.length; };
Array.prototype.size = function () { var l = this.length ? --this.length : -1; for (var k in this) { l++; return l;
Array.prototype.size = function() { return this.length; };
Array.prototype.size = function(){ var s = 0; for(var i in this) if(typeof eval(this.get(i)) != 'function') s++; return s;