Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 1
    A regular loop should work fine. If you check the values a lot it makes sense to create a new object (with the data as keys) to cache it (see this jsperf). What have you tried? Commented May 26, 2014 at 14:23
  • 1
    Are you working with an array of objects? Or with an object that serves as associate array? Commented May 26, 2014 at 14:26
  • There's a find function in ES6 and it's supported by some browsers. A polyfill is available. Commented May 26, 2014 at 14:26