Javascript String prevChar(i)

Description

Javascript String prevChar(i)


String.prototype.prevChar = function (i) {
    var n = i | 1;
    return String.fromCharCode(this.charCodeAt(0) - n);
}



PreviousNext

Related