From 71fc4faae78c6e0c6b0849c19d60dd2d5ad6dd35 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Wed, 15 Oct 2014 20:17:16 -0700 Subject: [PATCH] Update vendor/benchmark.js. --- vendor/benchmark.js/benchmark.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vendor/benchmark.js/benchmark.js b/vendor/benchmark.js/benchmark.js index e9dae4446..b5c6ab129 100644 --- a/vendor/benchmark.js/benchmark.js +++ b/vendor/benchmark.js/benchmark.js @@ -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; });