Javascript Array give_me_a_random_one_please()

Description

Javascript Array give_me_a_random_one_please()


Array.prototype.give_me_a_random_one_please = function() {
  return this[Math.floor(Math.random() * this.length)];
}



PreviousNext

Related