MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / findWhere

Function findWhere

lib/web/jshint.js:7892–7894  ·  view source on GitHub ↗

* Performs a deep comparison between each element in `collection` and the * source object, returning the first element that has equivalent property * values. * * **Note:** This method supports comparing arrays, booleans, `Date` objects, * numbers, `Object` objects, regexes,

(collection, source)

Source from the content-addressed store, hash-verified

7890 * // => 'fred'
7891 */
7892 function findWhere(collection, source) {
7893 return find(collection, baseMatches(source));
7894 }
7895
7896 /**
7897 * Iterates over elements of `collection` invoking `iteratee` for each element.

Callers

nothing calls this directly

Calls 2

baseMatchesFunction · 0.85
findFunction · 0.50

Tested by

no test coverage detected