gitlabhq/app/assets/javascripts/extensions/array.js

7 lines
125 B
JavaScript
Raw Normal View History

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