Common CoffeeScript Idoms
Each
myfunction(item) for item in items
Map
result = (item.name for item in items)
Select
result = (item for item in items when item.name is "foobar")
Include
included = "foobar" in ["bar", "foobar", "foo"]
Include in a string
foo = "A dog walks down a path in the park."
included = !!~ foo.indexOf "dog"