Javascript Array getLastElement()

Description

Javascript Array getLastElement()


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



PreviousNext

Related