Javascript String findRow(n)

Description

Javascript String findRow(n)


String.prototype.findRow = function(n) {
 var r = Math.floor(n / 9);
 return this.slice(r*9, r*9+9)
}



PreviousNext

Related