How do I convert a JavaScript forEach loop/function to CoffeeScript
use a comprehension The code above translates to so you can see d and i are what you want them to be. Go here and search for “forEach” for some examples. Finally, look at the first comment for some more useful info.