An Array method that returns the first element passing a callback test, or undefined if none does.
Array `find` tests items with a callback and returns the first item that passes. If no item passes, it returns `undefined`; use `filter` when you need all matches. section 9.1.4
C++ Concurrency in Action, Second Edition`std::find` is a C++ standard library algorithm that returns the first element in a range equal to a specified value, or the end of the range if none is found.
Clojure: The Essential Referencefind is a Clojure function that searches an associative collection for a key and returns the corresponding key-value entry or nil.
The Well-Grounded Rubyist, Fourth Editionfind, also known as detect, is an Enumerable method that returns the first element for which its block evaluates truthily, or nil when no element matches.
containsalternative to · Contains is a membership-query operation that reports whether a specified value, key, element, or substring occurs in a container or collection.
get methodalternative to · A lookup operation on a mapping or associative collection that returns the value associated with a key or index, often with a null-like result or supplied default when no entry exists.
missing valueproduces · A missing value is a marker or condition indicating that an expected data value or reference is absent, unavailable, unknown, or inapplicable.
This explainer was generated by Manning's knowledge graph from the text of Secrets of the JavaScript Ninja, Second Edition. The section links point to the parts of the book it draws on.