Here you can find the source of repeat(count)
// String.prototype.repeat String.prototype.repeat = function (count) { return new Array((count || 0) + 1).join(this); };
String.prototype.repeat = function( num ) { for( var i = 0, buf = ""; i < num; i++ ) buf += this; return buf;
SUBMIT_TIME_OUT = 10; CONTEST_START_TIME = Date.UTC(2014, 4, 21, 3, 30, 0); CONTEST_END_TIME = Date.UTC(2014, 4, 21, 9, 30, 0); Tasks = new Meteor.Collection('ctf_tasks'); Submits = new Meteor.Collection('submits'); String.prototype.repeat = function( num ) { return new Array( num + 1 ).join( this ); }; getTimeInNiceFormat = function(t) { ...
String.prototype.repeat = function( num ) { for( var i = 0, buf = ""; i < num; i++ ) buf += this; return buf;
String.prototype.repeat = function( num ) { return new Array( num + 1 ).join( this );
String.prototype.repeat = function(count) { return new Array(count + 1).join(this); };
String.prototype.repeat = function (count) { return new Array((count || 0) + 1).join(this); };
String.prototype.repeat = function (count){ var str, pattern, i; pattern = String(this); if(!count){ return patern; str = ''; ...
String.prototype.repeat = function(count) { if (count < 1) return ''; var result = '', pattern = this.valueOf(); while (count > 1) { if (count & 1) result += pattern; count >>= 1, pattern += pattern; return result + pattern; }; ...
String.prototype.repeat = function(count) { if (count < 1) return ''; var result = '', pattern = this.valueOf(); while (count > 1) { if (count & 1) result += pattern; count >>>= 1, pattern += pattern; return result + pattern; }; ...