source: frontend/node_modules/underscore/cjs/isFunction.js

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 584 bytes
Line 
1var _tagTester = require('./_tagTester.js');
2var _setup = require('./_setup.js');
3
4var isFunction = _tagTester('Function');
5
6// Optimize `isFunction` if appropriate. Work around some `typeof` bugs in old
7// v8, IE 11 (#1621), Safari 8 (#1929), and PhantomJS (#2236).
8var nodelist = _setup.root.document && _setup.root.document.childNodes;
9if (typeof /./ != 'function' && typeof Int8Array != 'object' && typeof nodelist != 'function') {
10 isFunction = function(obj) {
11 return typeof obj == 'function' || false;
12 };
13}
14
15var isFunction$1 = isFunction;
16
17module.exports = isFunction$1;
Note: See TracBrowser for help on using the repository browser.