array.js 253 Bytes EditWeb IDE 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]; };