Added the underscore node_module.
All checks were successful
Auto Maintenance Cycle / pre-commit Autoupdate (push) Successful in 39s
All checks were successful
Auto Maintenance Cycle / pre-commit Autoupdate (push) Successful in 39s
This commit is contained in:
13
node_modules/underscore/modules/difference.js
generated
vendored
Normal file
13
node_modules/underscore/modules/difference.js
generated
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
import restArguments from './restArguments.js';
|
||||
import flatten from './_flatten.js';
|
||||
import filter from './filter.js';
|
||||
import contains from './contains.js';
|
||||
|
||||
// Take the difference between one array and a number of other arrays.
|
||||
// Only the elements present in just the first array will remain.
|
||||
export default restArguments(function(array, rest) {
|
||||
rest = flatten(rest, true, true);
|
||||
return filter(array, function(value){
|
||||
return !contains(rest, value);
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user