Javascript Array extend()
extend()
Array.prototype.extend = function() { var oCurrentObj = {}; for(var i = 0; i < this.length; i++) {// w w w. j a va 2 s . c o m oCurrentObj = this[i].extend(oCurrentObj); } return oCurrentObj; }