mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-09 02:17:50 +00:00
Bump to v4.4.0.
This commit is contained in:
4
omit.js
4
omit.js
@@ -9,7 +9,7 @@ define(['./_arrayMap', './_baseDifference', './_baseFlatten', './_basePick', './
|
||||
* @category Object
|
||||
* @param {Object} object The source object.
|
||||
* @param {...(string|string[])} [props] The property names to omit, specified
|
||||
* individually or in arrays..
|
||||
* individually or in arrays.
|
||||
* @returns {Object} Returns the new object.
|
||||
* @example
|
||||
*
|
||||
@@ -22,7 +22,7 @@ define(['./_arrayMap', './_baseDifference', './_baseFlatten', './_basePick', './
|
||||
if (object == null) {
|
||||
return {};
|
||||
}
|
||||
props = arrayMap(baseFlatten(props), String);
|
||||
props = arrayMap(baseFlatten(props, 1), String);
|
||||
return basePick(object, baseDifference(keysIn(object), props));
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user