O'Reilly logo
  • Patrick S thinks this is interesting:

The find function is fairly straightforward; it takes a collection and a predicate and returns the first element for which the predicate returns true. An example of find is as follows:

_.find(['a', 'b', 3, 'd'], _
		

From

Cover of Functional JavaScript

Note

find(), and predicates