isFunction.js 584 B

1234567891011121314151617
  1. var _tagTester = require('./_tagTester.js');
  2. var _setup = require('./_setup.js');
  3. var isFunction = _tagTester('Function');
  4. // Optimize `isFunction` if appropriate. Work around some `typeof` bugs in old
  5. // v8, IE 11 (#1621), Safari 8 (#1929), and PhantomJS (#2236).
  6. var nodelist = _setup.root.document && _setup.root.document.childNodes;
  7. if (typeof /./ != 'function' && typeof Int8Array != 'object' && typeof nodelist != 'function') {
  8. isFunction = function(obj) {
  9. return typeof obj == 'function' || false;
  10. };
  11. }
  12. var isFunction$1 = isFunction;
  13. module.exports = isFunction$1;