4 lines
134 B
JavaScript
4 lines
134 B
JavaScript
|
function is_dom_element(obj) {
|
||
|
return !!(obj && obj.nodeType === 1);
|
||
|
}
|
||
|
console.log(is_dom_element(jQuery('body')[0]));
|