debian-mirror-gitlab/app/assets/javascripts/extensions/array.js
2014-09-02 14:37:02 +02:00

7 lines
126 B
JavaScript

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