Javascript Array reverse(fn)

Description

Javascript Array reverse(fn)


Array.prototype.reverse = function(fn) {
  for (var i = this.length - 1; i >= 0; i--) fn(this[i]);
}



PreviousNext

Related