gitlabhq/app/assets/javascripts/extensions/array.js
2012-12-03 22:51:56 +01:00

7 lines
No EOL
125 B
JavaScript

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