From 9c162624fed2d61a8105cf855fcc1b7930578b37 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Tue, 23 Feb 2016 09:57:10 -0800 Subject: [PATCH] Cleanup `symbolTag` case in `equalByTag`. --- lodash.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lodash.js b/lodash.js index 0c6b5bb1c..278dcd780 100644 --- a/lodash.js +++ b/lodash.js @@ -4798,7 +4798,9 @@ return equalArrays(convert(object), convert(other), equalFunc, customizer, bitmask | UNORDERED_COMPARE_FLAG, stack); case symbolTag: - return !!symbolValueOf && (symbolValueOf.call(object) == symbolValueOf.call(other)); + if (symbolValueOf) { + return symbolValueOf.call(object) == symbolValueOf.call(other); + } } return false; }