From 5b2bde6e0d7db91a28eac847a77e4431596cdab1 Mon Sep 17 00:00:00 2001 From: jdalton Date: Fri, 10 Apr 2015 19:56:38 -0700 Subject: [PATCH] Simplify `getSymbols`. --- lodash.src.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lodash.src.js b/lodash.src.js index a28637079..57deacf12 100644 --- a/lodash.src.js +++ b/lodash.src.js @@ -4147,7 +4147,7 @@ * @returns {Array} Returns the array of symbols. */ var getSymbols = !getOwnPropertySymbols ? constant([]) : function(object) { - return object == null ? [] : getOwnPropertySymbols(toObject(object)); + return getOwnPropertySymbols(toObject(object)); }; /**