2017-03-13 17:48:32 -04:00
|
|
|
// TODO: remove this
|
2017-01-13 11:05:09 -05:00
|
|
|
|
2017-03-13 17:48:32 -04:00
|
|
|
// eslint-disable-next-line no-extend-native
|
|
|
|
Array.prototype.first = function first() {
|
2016-11-23 10:54:35 -05:00
|
|
|
return this[0];
|
2017-01-10 17:54:56 -05:00
|
|
|
};
|
2016-11-23 10:54:35 -05:00
|
|
|
|
2017-03-13 17:48:32 -04:00
|
|
|
// eslint-disable-next-line no-extend-native
|
|
|
|
Array.prototype.last = function last() {
|
|
|
|
return this[this.length - 1];
|
2016-11-23 10:54:35 -05:00
|
|
|
};
|