Here you can find the source of last()
Array.prototype.last = function() { if (this.length > 0) { return this[this.length - 1] }/*from w w w . j a v a 2s .com*/ };
Array.prototype.last = function(){ if(this.length > 0) return this[this.length-1]; return null; };
Array.prototype.last = function() { if (this.length > 0) { return this[this.length - 1] };
Array.prototype.last = function () { return this[this.length - 1]; };
Array.prototype.last = function () { return this[this.length - 1]; }; var Smart = Smart || {};
Array.prototype.last = function () { return this.pop(); };
Array.prototype.last = function() { if ( this.length === 0 ) { return; return this[ this.length - 1 ]; };
if(!Array.prototype.last) { Array.prototype.last = function() { return this[this.length - 1];
Array.prototype.last = function() { return this[this.length - 1]; };
function p(msg, obj) { if (window.console != undefined) { console.debug(msg, obj); } else { console.log(msg+": "+obj); function warning(msg) { if (window.console != undefined) { ...