Skip to content

Instantly share code, notes, and snippets.

/* tracer.js - A tracer utility in 2kb
*
* @author Angus Croll
* http://javascriptweblog.wordpress.com/2010/06/01/a-tracer-utility-in-2kb/
*/
String.prototype.times = function(count){
return count < 1 ? '' : new Array(count + 1).join(this);
}