UI Deploy

Curated, Short, Web UI Dev we Love.

Tidying Up a JavaScript Application with Higher-Order Functions

Higher-order functions are functions that can do one or both of the following:

1. Take a function or functions as arguments
   
2. Return a function as an argument

Most programmers by now are familiar with higher-order functions such as map, reduce, and filter. These functions abstract away the boilerplate when processing collections. For example…

view source

Advertisement