( obj )
| 72 | var support = {}; |
| 73 | |
| 74 | var isFunction = function isFunction( obj ) { |
| 75 | |
| 76 | // Support: Chrome <=57, Firefox <=52 |
| 77 | // In some browsers, typeof returns "function" for HTML <object> elements |
| 78 | // (i.e., `typeof document.createElement( "object" ) === "function"`). |
| 79 | // We don't want to classify *any* DOM node as a function. |
| 80 | // Support: QtWeb <=3.8.5, WebKit <=534.34, wkhtmltopdf tool <=0.12.5 |
| 81 | // Plus for old WebKit, typeof returns "function" for HTML collections |
| 82 | // (e.g., `typeof document.getElementsByTagName("div") === "function"`). (gh-4756) |
| 83 | return typeof obj === "function" && typeof obj.nodeType !== "number" && |
| 84 | typeof obj.item !== "function"; |
| 85 | }; |
| 86 | |
| 87 | |
| 88 | var isWindow = function isWindow( obj ) { |
no outgoing calls
no test coverage detected