summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/extensions/array.js
blob: 24f9e00097cb51e7aa20d9ac0b374f7393038492 (plain)
1
2
3
4
5
6
7
Array.prototype.first = function() {
  return this[0];
}

Array.prototype.last = function() {
  return this[this.length-1];
}