Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • '0'.repeat(...) is not valid javascript
    – kikito
    Commented May 21, 2014 at 16:20
  • @kikito fair enough, probably I had the prototype extended somehow (JQuery?). Anyway, I've edited the function so it's javascript only... thanks for pointing that out.
    – estani
    Commented May 22, 2014 at 13:29
  • @kikito it's valid ES6, though using it would be neglecting cross-browser compatibility. Commented Jul 24, 2016 at 20:58