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:
15
node_modules/underscore/cjs/difference.js
generated
vendored
Normal file
15
node_modules/underscore/cjs/difference.js
generated
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
var restArguments = require('./restArguments.js');
|
||||
var _flatten = require('./_flatten.js');
|
||||
var filter = require('./filter.js');
|
||||
var contains = require('./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.
|
||||
var difference = restArguments(function(array, rest) {
|
||||
rest = _flatten(rest, true, true);
|
||||
return filter(array, function(value){
|
||||
return !contains(rest, value);
|
||||
});
|
||||
});
|
||||
|
||||
module.exports = difference;
|
Reference in New Issue
Block a user