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

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

Fix frontend appearance

  • Property mode set to 100644
File size: 528 bytes
Line 
1import tagTester from './_tagTester.js';
2import { root } from './_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 = root.document && 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
15export default isFunction;
Note: See TracBrowser for help on using the repository browser.