Bump to v4.14.0.

This commit is contained in:
John-David Dalton
2016-07-24 09:52:22 -07:00
parent 6b3e0da93c
commit 51ed7e7707
231 changed files with 1136 additions and 820 deletions

View File

@@ -1,5 +1,6 @@
import baseIteratee from './_baseIteratee.js';
import basePickBy from './_basePickBy.js';
import negate from './negate.js';
import pickBy from './pickBy.js';
/**
* The opposite of `_.pickBy`; this method creates an object composed of
@@ -12,8 +13,7 @@ import basePickBy from './_basePickBy.js';
* @since 4.0.0
* @category Object
* @param {Object} object The source object.
* @param {Array|Function|Object|string} [predicate=_.identity]
* The function invoked per property.
* @param {Function} [predicate=_.identity] The function invoked per property.
* @returns {Object} Returns the new object.
* @example
*
@@ -23,10 +23,7 @@ import basePickBy from './_basePickBy.js';
* // => { 'b': '2' }
*/
function omitBy(object, predicate) {
predicate = baseIteratee(predicate);
return basePickBy(object, function(value, key) {
return !predicate(value, key);
});
return pickBy(object, negate(baseIteratee(predicate)));
}
export default omitBy;