* @param {*} object The object to check. * @return {boolean} Whether or not the object is a DOM node.
(object)
| 595 | * @return {boolean} Whether or not the object is a DOM node. |
| 596 | */ |
| 597 | function isNode(object) { |
| 598 | var doc = object ? object.ownerDocument || object : document; |
| 599 | var defaultView = doc.defaultView || window; |
| 600 | return !!(object && (typeof defaultView.Node === 'function' ? object instanceof defaultView.Node : typeof object === 'object' && typeof object.nodeType === 'number' && typeof object.nodeName === 'string')); |
| 601 | } |
| 602 | |
| 603 | module.exports = isNode; |
| 604 | },{}],18:[function(require,module,exports){ |
no test coverage detected