UNPKG

es-toolkit

Version:

A state-of-the-art, high-performance JavaScript utility library with a small bundle size and strong type annotations.

9 lines (6 loc) 239 B
import { isObjectLike } from './isObjectLike.mjs'; import { isPlainObject } from './isPlainObject.mjs'; function isElement(value) { return isObjectLike(value) && value.nodeType === 1 && !isPlainObject(value); } export { isElement };