I don't know any coffescript but aren't you supposed to have some kind of exit condition to that loop ? And what is actually your problem ?
– Laurent S.Jul 02 '14 at 16:52
1
@Bartdude The exit condition is `i--`. When that evaluates to a falsy value (ie, 0) the loop will exit. This is completely fine. The problem is that that loop is a *JavaScript* loop, and he's trying to figure out how to write the equivalent CoffeeScript loop.
– user229044Jul 02 '14 at 16:54
Well, I'll be a little less stupid when going to bed this evening. As I stated I don't know any coffeescript, but will have a look at it :-)
– Laurent S.Jul 02 '14 at 16:59