MCPcopy Create free account
hub / github.com/jashkenas/underscore / where

Function where

underscore-node-f.cjs:1490–1492  ·  view source on GitHub ↗
(obj, attrs)

Source from the content-addressed store, hash-verified

1488// Convenience version of a common use case of `_.filter`: selecting only
1489// objects containing specific `key:value` pairs.
1490function where(obj, attrs) {
1491 return filter(obj, matcher(attrs));
1492}
1493
1494// Return the maximum element (or element-based computation).
1495function max(obj, iteratee, context) {

Callers

nothing calls this directly

Calls 2

filterFunction · 0.70
matcherFunction · 0.70

Tested by

no test coverage detected