Bump to v4.16.0.

This commit is contained in:
John-David Dalton
2016-09-17 22:28:43 -07:00
parent 28663c1e27
commit 94ac73824f
102 changed files with 526 additions and 320 deletions

View File

@@ -1,8 +1,7 @@
import arrayMap from './_arrayMap.js';
import baseDifference from './_baseDifference.js';
import baseFlatten from './_baseFlatten.js';
import basePick from './_basePick.js';
import baseRest from './_baseRest.js';
import flatRest from './_flatRest.js';
import getAllKeysIn from './_getAllKeysIn.js';
import toKey from './_toKey.js';
@@ -25,11 +24,11 @@ import toKey from './_toKey.js';
* _.omit(object, ['a', 'c']);
* // => { 'b': '2' }
*/
var omit = baseRest(function(object, props) {
var omit = flatRest(function(object, props) {
if (object == null) {
return {};
}
props = arrayMap(baseFlatten(props, 1), toKey);
props = arrayMap(props, toKey);
return basePick(object, baseDifference(getAllKeysIn(object), props));
});