gitlab-org--gitlab-foss/app/assets/javascripts/extensions/array.js

8 lines
126 B
JavaScript
Raw Normal View History

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