mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-12 03:47:50 +00:00
Reduce _.omit.
This commit is contained in:
@@ -7203,13 +7203,8 @@
|
|||||||
if (typeof predicate == 'function') {
|
if (typeof predicate == 'function') {
|
||||||
return basePick(object, negate(lodash.createCallback(predicate, thisArg, 3)));
|
return basePick(object, negate(lodash.createCallback(predicate, thisArg, 3)));
|
||||||
}
|
}
|
||||||
var omitProps = baseFlatten(arguments, true, false, 1),
|
var omitProps = baseFlatten(arguments, true, false, 1);
|
||||||
length = omitProps.length;
|
return basePick(object, baseDifference(keysIn(object), arrayMap(omitProps, String)));
|
||||||
|
|
||||||
while (length--) {
|
|
||||||
omitProps[length] = String(omitProps[length]);
|
|
||||||
}
|
|
||||||
return basePick(object, baseDifference(keysIn(object), omitProps));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user