Javascript String splitEvery(n)

Description

Javascript String splitEvery(n)

String.prototype.splitEvery = function(n){
  return this.split("").splitEvery(n).map(a=>a.join(""))
}



PreviousNext

Related