mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-01 15:57:48 +00:00
Use _.difference instead of _.without.apply(_, …) in test and build files.
Former-commit-id: 5646e8c3e895ea0662df81e7c77e70cdfe2c3a6d
This commit is contained in:
@@ -322,7 +322,7 @@
|
||||
var lodashMethods = allMethods.slice();
|
||||
|
||||
/** List of Underscore methods */
|
||||
var underscoreMethods = _.without.apply(_, [allMethods].concat(lodashOnlyMethods));
|
||||
var underscoreMethods = _.difference(allMethods, lodashOnlyMethods);
|
||||
|
||||
/*--------------------------------------------------------------------------*/
|
||||
|
||||
@@ -1660,10 +1660,10 @@
|
||||
methodNames = methodNames.concat(command.match(/\bplus=(\S*)/)[1].split(/, */));
|
||||
}
|
||||
if (/\bminus=/.test(command)) {
|
||||
methodNames = _.without.apply(_, [methodNames].concat(expandMethodNames(command.match(/\bminus=(\S*)/)[1].split(/, */))));
|
||||
methodNames = _.difference(methodNames, expandMethodNames(command.match(/\bminus=(\S*)/)[1].split(/, */)));
|
||||
}
|
||||
if (/\bexclude=/.test(command)) {
|
||||
methodNames = _.without.apply(_, [methodNames].concat(expandMethodNames(command.match(/\bexclude=(\S*)/)[1].split(/, */))));
|
||||
methodNames = _.difference(methodNames, expandMethodNames(command.match(/\bexclude=(\S*)/)[1].split(/, */)));
|
||||
}
|
||||
|
||||
// expand categories to real method names
|
||||
|
||||
@@ -3697,7 +3697,7 @@
|
||||
return /^_/.test(methodName);
|
||||
});
|
||||
|
||||
var funcs = _.without.apply(_, [allMethods].concat([
|
||||
var funcs = _.difference(allMethods, [
|
||||
'after',
|
||||
'bind',
|
||||
'bindAll',
|
||||
@@ -3713,7 +3713,7 @@
|
||||
'tap',
|
||||
'throttle',
|
||||
'wrap'
|
||||
]));
|
||||
]);
|
||||
|
||||
_.each(funcs, function(methodName) {
|
||||
var actual = [],
|
||||
|
||||
Reference in New Issue
Block a user