jakiestfu/Behave.js — pull request #2 by paulmillr (2013-01-25 07:13:47+00:00)
Title: Use native String#repeat if available.

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).