b997e3e50b62c5b7721a4aac2a8e932825a02ce395268538e8e3ff9e65c33d5314ce0fad1cd123405a04cc707cd37065e6aa5022ee1fd2ff82b8cee897fcdd 674 B

1234567891011121314151617
  1. define( function() {
  2. "use strict";
  3. return function isFunction( obj ) {
  4. // Support: Chrome <=57, Firefox <=52
  5. // In some browsers, typeof returns "function" for HTML <object> elements
  6. // (i.e., `typeof document.createElement( "object" ) === "function"`).
  7. // We don't want to classify *any* DOM node as a function.
  8. // Support: QtWeb <=3.8.5, WebKit <=534.34, wkhtmltopdf tool <=0.12.5
  9. // Plus for old WebKit, typeof returns "function" for HTML collections
  10. // (e.g., `typeof document.getElementsByTagName("div") === "function"`). (gh-4756)
  11. return typeof obj === "function" && typeof obj.nodeType !== "number" &&
  12. typeof obj.item !== "function";
  13. };
  14. } );