* @param {*} object The object to check. * @return {boolean} Whether or not the object is a DOM node.
(object)
| 640 | * @return {boolean} Whether or not the object is a DOM node. |
| 641 | */ |
| 642 | function isNode(object) { |
| 643 | var doc = object ? object.ownerDocument || object : document; |
| 644 | var defaultView = doc.defaultView || window; |
| 645 | return !!(object && (typeof defaultView.Node === 'function' ? object instanceof defaultView.Node : typeof object === 'object' && typeof object.nodeType === 'number' && typeof object.nodeName === 'string')); |
| 646 | } |
| 647 | |
| 648 | module.exports = isNode; |
| 649 | },{}],15:[function(require,module,exports){ |
no test coverage detected