* @param {*} object The object to check. * @return {boolean} Whether or not the object is a DOM node.
(object)
| 496 | * @return {boolean} Whether or not the object is a DOM node. |
| 497 | */ |
| 498 | function isNode(object) { |
| 499 | var doc = object ? object.ownerDocument || object : document; |
| 500 | var defaultView = doc.defaultView || window; |
| 501 | return !!(object && (typeof defaultView.Node === 'function' ? object instanceof defaultView.Node : typeof object === 'object' && typeof object.nodeType === 'number' && typeof object.nodeName === 'string')); |
| 502 | } |
| 503 | |
| 504 | module.exports = isNode; |
| 505 | },{}],14:[function(require,module,exports){ |
no test coverage detected