Javascript Array count(letter)

Description

Javascript Array count(letter)

Array.prototype.count = function (letter) {
  return this.filter(l => l === letter).length
}



PreviousNext

Related