summaryrefslogtreecommitdiff
path: root/tools/eslint/node_modules/lodash/cloneWith.js
diff options
context:
space:
mode:
Diffstat (limited to 'tools/eslint/node_modules/lodash/cloneWith.js')
-rw-r--r--tools/eslint/node_modules/lodash/cloneWith.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/eslint/node_modules/lodash/cloneWith.js b/tools/eslint/node_modules/lodash/cloneWith.js
index 1bc6035a21..df731c7af6 100644
--- a/tools/eslint/node_modules/lodash/cloneWith.js
+++ b/tools/eslint/node_modules/lodash/cloneWith.js
@@ -2,12 +2,13 @@ var baseClone = require('./_baseClone');
/**
* This method is like `_.clone` except that it accepts `customizer` which
- * is invoked to produce the cloned value. If `customizer` returns `undefined`
+ * is invoked to produce the cloned value. If `customizer` returns `undefined`,
* cloning is handled by the method instead. The `customizer` is invoked with
* up to four arguments; (value [, index|key, object, stack]).
*
* @static
* @memberOf _
+ * @since 4.0.0
* @category Lang
* @param {*} value The value to clone.
* @param {Function} [customizer] The function to customize cloning.
@@ -30,7 +31,7 @@ var baseClone = require('./_baseClone');
* // => 0
*/
function cloneWith(value, customizer) {
- return baseClone(value, false, customizer);
+ return baseClone(value, false, true, customizer);
}
module.exports = cloneWith;