Repositorio del curso CCOM4030 el semestre B91 del proyecto Artesanías con el Instituto de Cultura

where.js 289B

1234567891011
  1. define(['./matcher', './filter'], function (matcher, filter) {
  2. // Convenience version of a common use case of `_.filter`: selecting only
  3. // objects containing specific `key:value` pairs.
  4. function where(obj, attrs) {
  5. return filter(obj, matcher(attrs));
  6. }
  7. return where;
  8. });