mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-29 06:27:49 +00:00
Cleanup _.omit.
This commit is contained in:
@@ -13475,17 +13475,14 @@
|
|||||||
if (object == null) {
|
if (object == null) {
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
var bitmask = CLONE_FLAT_FLAG | CLONE_SYMBOLS_FLAG,
|
var bitmask = CLONE_FLAT_FLAG | CLONE_SYMBOLS_FLAG;
|
||||||
isDeep = false;
|
|
||||||
|
|
||||||
paths = arrayMap(paths, function(path) {
|
paths = arrayMap(paths, function(path) {
|
||||||
path = toPath(path);
|
path = toPath(path);
|
||||||
isDeep = isDeep || path.length > 1;
|
bitmask |= (path.length > 1 ? CLONE_DEEP_FLAG : 0);
|
||||||
return path;
|
return path;
|
||||||
});
|
});
|
||||||
|
|
||||||
copyObject(object, getAllKeysIn(object), result);
|
copyObject(object, getAllKeysIn(object), result);
|
||||||
bitmask |= isDeep ? CLONE_DEEP_FLAG : 0;
|
|
||||||
result = baseClone(result, bitmask);
|
result = baseClone(result, bitmask);
|
||||||
|
|
||||||
var length = paths.length;
|
var length = paths.length;
|
||||||
|
|||||||
Reference in New Issue
Block a user