mirror of
https://github.com/xlorepdarkhelm/numinar-coding-project.git
synced 2026-09-06 07:38:25 -04:00
5 lines
118 B
JavaScript
5 lines
118 B
JavaScript
|
|
// Is a given value a DOM element?
|
||
|
|
export default function isElement(obj) {
|
||
|
|
return !!(obj && obj.nodeType === 1);
|
||
|
|
}
|