mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 10:07:48 +00:00
Bump to v4.17.3.
This commit is contained in:
3
omit.js
3
omit.js
@@ -3,6 +3,7 @@ import baseClone from './_baseClone.js';
|
||||
import baseUnset from './_baseUnset.js';
|
||||
import castPath from './_castPath.js';
|
||||
import copyObject from './_copyObject.js';
|
||||
import customOmitClone from './_customOmitClone.js';
|
||||
import flatRest from './_flatRest.js';
|
||||
import getAllKeysIn from './_getAllKeysIn.js';
|
||||
|
||||
@@ -44,7 +45,7 @@ var omit = flatRest(function(object, paths) {
|
||||
});
|
||||
copyObject(object, getAllKeysIn(object), result);
|
||||
if (isDeep) {
|
||||
result = baseClone(result, CLONE_DEEP_FLAG | CLONE_FLAT_FLAG | CLONE_SYMBOLS_FLAG);
|
||||
result = baseClone(result, CLONE_DEEP_FLAG | CLONE_FLAT_FLAG | CLONE_SYMBOLS_FLAG, customOmitClone);
|
||||
}
|
||||
var length = paths.length;
|
||||
while (length--) {
|
||||
|
||||
Reference in New Issue
Block a user