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