* @param {*} object The object to check. * @return {boolean} Whether or not the object is a DOM node.
(object)
| 537 | * @return {boolean} Whether or not the object is a DOM node. |
| 538 | */ |
| 539 | function isNode(object) { |
| 540 | var doc = object ? object.ownerDocument || object : document; |
| 541 | var defaultView = doc.defaultView || window; |
| 542 | return !!(object && (typeof defaultView.Node === 'function' ? object instanceof defaultView.Node : typeof object === 'object' && typeof object.nodeType === 'number' && typeof object.nodeName === 'string')); |
| 543 | } |
| 544 | |
| 545 | module.exports = isNode; |
| 546 | },{}],13:[function(require,module,exports){ |
no test coverage detected