gitlab-org--gitlab-foss/app/assets/javascripts/extensions/array.js
2017-03-13 21:48:32 +00:00

11 lines
253 B
JavaScript

// TODO: remove this
// eslint-disable-next-line no-extend-native
Array.prototype.first = function first() {
return this[0];
};
// eslint-disable-next-line no-extend-native
Array.prototype.last = function last() {
return this[this.length - 1];
};