source: node_modules/es-toolkit/dist/compat/predicate/isElement.mjs

Last change on this file was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago

Added visualizations

  • Property mode set to 100644
File size: 239 bytes
RevLine 
[a762898]1import { isObjectLike } from './isObjectLike.mjs';
2import { isPlainObject } from './isPlainObject.mjs';
3
4function isElement(value) {
5 return isObjectLike(value) && value.nodeType === 1 && !isPlainObject(value);
6}
7
8export { isElement };
Note: See TracBrowser for help on using the repository browser.