array.js 126 Bytes EditWeb IDE 1 2 3 4 5 6 7 Array.prototype.first = function() { return this[0]; } Array.prototype.last = function() { return this[this.length-1]; }