source: frontend/node_modules/underscore/cjs/union.js

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 11 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 349 bytes
Line 
1var restArguments = require('./restArguments.js');
2var uniq = require('./uniq.js');
3var _flatten = require('./_flatten.js');
4
5// Produce an array that contains the union: each distinct element from all of
6// the passed-in arrays.
7var union = restArguments(function(arrays) {
8 return uniq(_flatten(arrays, true, true));
9});
10
11module.exports = union;
Note: See TracBrowser for help on using the repository browser.