JavaScript String.prototype.slice