mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-11 11:27:50 +00:00
Simplify isElement.
This commit is contained in:
@@ -11433,7 +11433,7 @@
|
|||||||
* // => false
|
* // => false
|
||||||
*/
|
*/
|
||||||
function isElement(value) {
|
function isElement(value) {
|
||||||
return value != null && value.nodeType === 1 && isObjectLike(value) && !isPlainObject(value);
|
return isObjectLike(value) && value.nodeType === 1 && !isPlainObject(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user