Return to Snippet

Revision: 23700
at February 11, 2010 12:55 by Roshambo


Initial Code
String.prototype.chop = function() {
	return this.substring(0, this.length - 1);
}

Initial URL

                                

Initial Description
Simply removes the last character from a string.

Initial Title
JavaScript implementation of Perl’s Chop

Initial Tags

                                

Initial Language
JavaScript