src code

instance method Enumerable#detect

Enumerable#detect(iterator[, context]) → firstElement | undefined

Finds the first element for which the iterator returns a "truthy" value. Aliased by the Enumerable#find method.

Aliased as: Enumerable#find