COFFEESCRIPT Questions and Answers

How can you map an array in CoffeeScript?

Coffee script has clean support for anonymous functions, to map an array in object use map() with an anonymous function. For simple mapping, list comprehension is more useful as Coffee script directly support list comprehensions.