source: frontend/node_modules/underscore/modules/difference.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: 469 bytes
Line 
1import restArguments from './restArguments.js';
2import flatten from './_flatten.js';
3import filter from './filter.js';
4import 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.
8export 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.