2017-08-17 22:00:37 +05:30
|
|
|
// TODO: remove this
|
|
|
|
|
|
|
|
// eslint-disable-next-line no-extend-native
|
|
|
|
Array.prototype.first = function first() {
|
2014-09-02 18:07:02 +05:30
|
|
|
return this[0];
|
2017-08-17 22:00:37 +05:30
|
|
|
};
|
2014-09-02 18:07:02 +05:30
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
// eslint-disable-next-line no-extend-native
|
|
|
|
Array.prototype.last = function last() {
|
|
|
|
return this[this.length - 1];
|
|
|
|
};
|