(object)
| 5389 | var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; |
| 5390 | |
| 5391 | function isNode(object) { |
| 5392 | var doc = object ? object.ownerDocument || object : document; |
| 5393 | var defaultView = doc.defaultView || window; |
| 5394 | return !!(object && (typeof defaultView.Node === 'function' ? object instanceof defaultView.Node : (typeof object === 'undefined' ? 'undefined' : _typeof(object)) === 'object' && typeof object.nodeType === 'number' && typeof object.nodeName === 'string')); |
| 5395 | } |
| 5396 | |
| 5397 | module.exports = isNode; |
| 5398 |
no test coverage detected