Simplify isElement.

This commit is contained in:
John-David Dalton
2016-10-09 20:24:36 -07:00
parent 22b51ed232
commit 067036a359

View File

@@ -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);
}
/**