mathiasbynens/String.prototype.repeat — pull request #5 by dtao (2013-12-22 19:04:37+00:00)
Title: only perform final string += string if necessary

This avoids a superfluous string allocation in all cases where n > 1.