source:
node_modules/es-toolkit/dist/compat/predicate/isElement.mjs
| Last change on this file was a762898, checked in by , 5 months ago | |
|---|---|
|
|
| File size: 239 bytes | |
| Rev | Line | |
|---|---|---|
| [a762898] | 1 | import { isObjectLike } from './isObjectLike.mjs'; |
| 2 | import { isPlainObject } from './isPlainObject.mjs'; | |
| 3 | ||
| 4 | function isElement(value) { | |
| 5 | return isObjectLike(value) && value.nodeType === 1 && !isPlainObject(value); | |
| 6 | } | |
| 7 | ||
| 8 | export { isElement }; |
Note:
See TracBrowser
for help on using the repository browser.
