Closed paulmillr closed 11 years ago
Also, MUCH faster algorithm otherwise.
String.prototype.repeat made it through to new ECMAScript standard, so it will be bad to overwrite existing methods.
Taken from my es6-shim (https://github.com/paulmillr/es6-shim/blob/master/es6-shim.js).
Also, MUCH faster algorithm otherwise.
String.prototype.repeat made it through to new ECMAScript standard, so it will be bad to overwrite existing methods.
Taken from my es6-shim (https://github.com/paulmillr/es6-shim/blob/master/es6-shim.js).