|
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:
469 bytes
|
| Line | |
|---|
| 1 | import restArguments from './restArguments.js';
|
|---|
| 2 | import flatten from './_flatten.js';
|
|---|
| 3 | import filter from './filter.js';
|
|---|
| 4 | import contains from './contains.js';
|
|---|
| 5 |
|
|---|
| 6 | // Take the difference between one array and a number of other arrays.
|
|---|
| 7 | // Only the elements present in just the first array will remain.
|
|---|
| 8 | export default restArguments(function(array, rest) {
|
|---|
| 9 | rest = flatten(rest, true, true);
|
|---|
| 10 | return filter(array, function(value){
|
|---|
| 11 | return !contains(rest, value);
|
|---|
| 12 | });
|
|---|
| 13 | });
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.