jstd-web/node_modules/@uppy/utils/lib/isDOMElement.js

12 lines
249 B
JavaScript
Raw Normal View History

2025-11-25 15:23:22 +08:00
"use strict";
function isDOMElement(obj) {
return (obj == null ? void 0 : obj.nodeType) === Node.ELEMENT_NODE;
}
/**
* Check if an object is a DOM element. Duck-typing based on `nodeType`.
*
* @param {*} obj
*/
module.exports = isDOMElement;