/ Published in: JavaScript
Simply removes the last character from a string.
Expand |
Embed | Plain Text
String.prototype.chop = function() { return this.substring(0, this.length - 1); }
You need to login to post a comment.
Simply removes the last character from a string.
String.prototype.chop = function() { return this.substring(0, this.length - 1); }
You need to login to post a comment.