JavaScript: String.prototype.repeat
New in JS2015.
String.prototype.repeat(count)
Convert this Binding to string, then return count
copy of it, joined together.
console.log( "a".repeat (2) ); // aa
New in JS2015.
String.prototype.repeat(count)
Convert this Binding to string, then return count
copy of it, joined together.
console.log( "a".repeat (2) ); // aa