Return to Snippet

Revision: 28166
at July 2, 2010 18:53 by hand4ever


Initial Code
String.prototype.times = function(num){
	return (num <= 0)? "": this.concat(this.times(--num));
};
alert("#".times(3));//show:###

Initial URL

                                

Initial Description

                                

Initial Title
times in String

Initial Tags

                                

Initial Language
JavaScript