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

1234567891011
  1. define(['./_has', './_group'], function (_has, _group) {
  2. // Groups the object's values by a criterion. Pass either a string attribute
  3. // to group by, or a function that returns the criterion.
  4. var groupBy = _group(function(result, value, key) {
  5. if (_has(result, key)) result[key].push(value); else result[key] = [value];
  6. });
  7. return groupBy;
  8. });