4 return function isFunction( obj ) {
6 // Support: Chrome <=57, Firefox <=52
7 // In some browsers, typeof returns "function" for HTML <object> elements
8 // (i.e., `typeof document.createElement( "object" ) === "function"`).
9 // We don't want to classify *any* DOM node as a function.
10 return typeof obj === "function" && typeof obj.nodeType !== "number";