* @param {*} object The object to check. * @return {boolean} Whether or not the object is a DOM node.
(object)
| 553 | * @return {boolean} Whether or not the object is a DOM node. |
| 554 | */ |
| 555 | function isNode(object) { |
| 556 | var doc = object ? object.ownerDocument || object : document; |
| 557 | var defaultView = doc.defaultView || window; |
| 558 | return !!(object && (typeof defaultView.Node === 'function' ? object instanceof defaultView.Node : typeof object === 'object' && typeof object.nodeType === 'number' && typeof object.nodeName === 'string')); |
| 559 | } |
| 560 | |
| 561 | module.exports = isNode; |
| 562 | },{}],16:[function(require,module,exports){ |
no test coverage detected