debian-mirror-gitlab/app/assets/javascripts/extensions/array.js

8 lines
126 B
JavaScript
Raw Normal View History

2014-09-02 18:07:02 +05:30
Array.prototype.first = function() {
return this[0];
}
Array.prototype.last = function() {
return this[this.length-1];
}