No Description

findWhere.js 277B

12345678
  1. import find from './find.js';
  2. import matcher from './matcher.js';
  3. // Convenience version of a common use case of `_.find`: getting the first
  4. // object containing specific `key:value` pairs.
  5. export default function findWhere(obj, attrs) {
  6. return find(obj, matcher(attrs));
  7. }