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

union.js 326B

1234567891011
  1. define(['./_flatten', './restArguments', './uniq'], function (_flatten, restArguments, uniq) {
  2. // Produce an array that contains the union: each distinct element from all of
  3. // the passed-in arrays.
  4. var union = restArguments(function(arrays) {
  5. return uniq(_flatten(arrays, true, true));
  6. });
  7. return union;
  8. });