blob: 027222f804dfc023f8a38a482b33031d81ee2cb4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
// 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];
};
|