gitlab-org--gitlab-foss/app/assets/javascripts/extensions/array.js
Ciro Santilli a7e0ca9e83 Add trailing newline to all text files.
Present in the large majority of files of each respective type.
2014-06-21 11:20:22 +02:00

7 lines
126 B
JavaScript

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