|
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 | |
|---|
| 1 | var restArguments = require('./restArguments.js');
|
|---|
| 2 | var uniq = require('./uniq.js');
|
|---|
| 3 | var _flatten = require('./_flatten.js');
|
|---|
| 4 |
|
|---|
| 5 | // Produce an array that contains the union: each distinct element from all of
|
|---|
| 6 | // the passed-in arrays.
|
|---|
| 7 | var union = restArguments(function(arrays) {
|
|---|
| 8 | return uniq(_flatten(arrays, true, true));
|
|---|
| 9 | });
|
|---|
| 10 |
|
|---|
| 11 | module.exports = union;
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.