/ Published in: JavaScript
Simply removes the last character from a string.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
String.prototype.chop = function() { return this.substring(0, this.length - 1); }