Javascript Array lastElement()
lastElement()
Array.prototype.lastElement = function() { return Array[Array.length-1]; };
Array.prototype.lastElement = function() { return this[this.length - 1]; }