From 6c84ccd5c564f2cf2c4abcd988db303c0a0482c0 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Sun, 27 Dec 2015 13:27:47 -0600 Subject: [PATCH] Remove dead code from `baseIntersection` and `cloneSymbol`. --- lodash.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lodash.js b/lodash.js index ee2f5231e..d32048516 100644 --- a/lodash.js +++ b/lodash.js @@ -2673,7 +2673,7 @@ array = arrays[0]; var index = -1, - length = array ? array.length : 0, + length = array.length, seen = caches[0]; outer: @@ -3717,14 +3717,14 @@ } /** - * Creates a clone of `symbol`. + * Creates a clone of the `symbol` object. * * @private - * @param {Object} symbol The symbol to clone. - * @returns {Object} Returns the cloned symbol. + * @param {Object} symbol The symbol object to clone. + * @returns {Object} Returns the cloned symbol object. */ function cloneSymbol(symbol) { - return typeof symbol == 'object' ? Object(symbolValueOf.call(symbol)) : symbol; + return Object(symbolValueOf.call(symbol)); } /**