From 067036a359e1eab05031d32c1f555161e8d2303f Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Sun, 9 Oct 2016 20:24:36 -0700 Subject: [PATCH] Simplify `isElement`. --- lodash.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lodash.js b/lodash.js index 9bb98969d..26ed30f94 100644 --- a/lodash.js +++ b/lodash.js @@ -11433,7 +11433,7 @@ * // => false */ function isElement(value) { - return value != null && value.nodeType === 1 && isObjectLike(value) && !isPlainObject(value); + return isObjectLike(value) && value.nodeType === 1 && !isPlainObject(value); } /**