Javascript has a fair bit of functional programming built right into the language itself, but Javascript really comes into its own when you add useful libraries on top of it, such as ExtJS or Prototype.

Underscore.js provides a great library for functional programming support, and is similar to what you would get with something like Prototype.

The difference is that Underscore.js does not extend the existing Javascript object model.

There are some great features, for example, functions to return the maximum or minimum values in a list, various array and object-handling functions, such as flattening a multidimensional array.

Share