BigW Consortium Gitlab

array.js 253 Bytes
Newer Older
1
// TODO: remove this
2

3 4
// eslint-disable-next-line no-extend-native
Array.prototype.first = function first() {
5
  return this[0];
6
};
7

8 9 10
// eslint-disable-next-line no-extend-native
Array.prototype.last = function last() {
  return this[this.length - 1];
11
};