Bump to v4.17.3.

This commit is contained in:
John-David Dalton
2016-12-19 17:41:46 -06:00
parent db9697dfef
commit b93c3b1ee8
33 changed files with 372 additions and 331 deletions

16
_customOmitClone.js Normal file
View File

@@ -0,0 +1,16 @@
var isPlainObject = require('./isPlainObject');
/**
* Used by `_.omit` to customize its `_.cloneDeep` use to only clone plain
* objects.
*
* @private
* @param {*} value The value to inspect.
* @param {string} key The key of the property to inspect.
* @returns {*} Returns the uncloned value or `undefined` to defer cloning to `_.cloneDeep`.
*/
function customOmitClone(value, key) {
return (key !== undefined && isPlainObject(value)) ? undefined : value;
}
module.exports = customOmitClone;