MCPcopy
hub / github.com/jquery/jquery / isFunction

Function isFunction

test/data/jquery-3.7.1.js:74–85  ·  view source on GitHub ↗
( obj )

Source from the content-addressed store, hash-verified

72var support = {};
73
74var 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
88var isWindow = function isWindow( obj ) {

Callers 10

jquery-3.7.1.jsFile · 0.85
isArrayLikeFunction · 0.85
winnowFunction · 0.85
adoptValueFunction · 0.85
mightThrowFunction · 0.85
accessFunction · 0.85
domManipFunction · 0.85
AnimationFunction · 0.85
addFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected