Javascript Array repetion(elem)

Description

Javascript Array repetion(elem)


Array.prototype.repetion=function(elem){
  return this.join().split(elem).length-1
}



PreviousNext

Related