8 lines
126 B
JavaScript
8 lines
126 B
JavaScript
|
Array.prototype.first = function() {
|
||
|
return this[0];
|
||
|
}
|
||
|
|
||
|
Array.prototype.last = function() {
|
||
|
return this[this.length-1];
|
||
|
}
|