es-toolkit
Version:
A state-of-the-art, high-performance JavaScript utility library with a small bundle size and strong type annotations.
13 lines (8 loc) • 364 B
JavaScript
;
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
const isObjectLike = require('./isObjectLike.js');
const isPlainObject = require('./isPlainObject.js');
function isElement(value) {
return isObjectLike.isObjectLike(value) && value.nodeType === 1 && !isPlainObject.isPlainObject(value);
}
exports.isElement = isElement;