Javascript Array get_last()

Description

Javascript Array get_last()

Array.prototype.get_last = function () {
 var self = this;
 var length = self.length;

 return length ? self[ length - 1 ] : null;
};



PreviousNext

Related