mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-29 06:27:49 +00:00
Update vendor/benchmark.js.
This commit is contained in:
4
vendor/benchmark.js/benchmark.js
vendored
4
vendor/benchmark.js/benchmark.js
vendored
@@ -508,9 +508,9 @@
|
||||
* @param {*} value The value to clone.
|
||||
* @returns {*} The cloned value.
|
||||
*/
|
||||
var cloneDeep = _.partialRight(_.cloneDeep, function(value) {
|
||||
var cloneDeep = _.partial(_.cloneDeep, _, function(value) {
|
||||
// only clone primitives, arrays, and plain objects
|
||||
return (typeof value == 'object' && !_.isArray(value) && !_.isPlainObject(value))
|
||||
return (_.isObject(value) && !_.isArray(value) && !_.isPlainObject(value))
|
||||
? value
|
||||
: undefined;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user