mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-05 17:37:50 +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.
|
* @param {*} value The value to clone.
|
||||||
* @returns {*} The cloned value.
|
* @returns {*} The cloned value.
|
||||||
*/
|
*/
|
||||||
var cloneDeep = _.partialRight(_.cloneDeep, function(value) {
|
var cloneDeep = _.partial(_.cloneDeep, _, function(value) {
|
||||||
// only clone primitives, arrays, and plain objects
|
// only clone primitives, arrays, and plain objects
|
||||||
return (typeof value == 'object' && !_.isArray(value) && !_.isPlainObject(value))
|
return (_.isObject(value) && !_.isArray(value) && !_.isPlainObject(value))
|
||||||
? value
|
? value
|
||||||
: undefined;
|
: undefined;
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user