From dadde87cab309e898a1088cb0119ed3c4e1da134 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Tue, 8 Nov 2016 08:36:02 -0800 Subject: [PATCH] Consolidate ternary in `baseClone`. --- lodash.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lodash.js b/lodash.js index 8f842661b..10802a686 100644 --- a/lodash.js +++ b/lodash.js @@ -2686,7 +2686,7 @@ return cloneBuffer(value, isDeep); } if (tag == objectTag || tag == argsTag || (isFunc && !object)) { - result = isFlat ? {} : initCloneObject(isFunc ? {} : value); + result = (isFlat || isFunc) ? {} : initCloneObject(value); if (!isDeep) { return isFlat ? copySymbolsIn(value, baseAssignIn(result, value))