source: frontend/node_modules/underscore/modules/_setup.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: 1.8 KB
Line 
1// Current version.
2export var VERSION = '1.13.6';
3
4// Establish the root object, `window` (`self`) in the browser, `global`
5// on the server, or `this` in some virtual machines. We use `self`
6// instead of `window` for `WebWorker` support.
7export var root = (typeof self == 'object' && self.self === self && self) ||
8 (typeof global == 'object' && global.global === global && global) ||
9 Function('return this')() ||
10 {};
11
12// Save bytes in the minified (but not gzipped) version:
13export var ArrayProto = Array.prototype, ObjProto = Object.prototype;
14export var SymbolProto = typeof Symbol !== 'undefined' ? Symbol.prototype : null;
15
16// Create quick reference variables for speed access to core prototypes.
17export var push = ArrayProto.push,
18 slice = ArrayProto.slice,
19 toString = ObjProto.toString,
20 hasOwnProperty = ObjProto.hasOwnProperty;
21
22// Modern feature detection.
23export var supportsArrayBuffer = typeof ArrayBuffer !== 'undefined',
24 supportsDataView = typeof DataView !== 'undefined';
25
26// All **ECMAScript 5+** native function implementations that we hope to use
27// are declared here.
28export var nativeIsArray = Array.isArray,
29 nativeKeys = Object.keys,
30 nativeCreate = Object.create,
31 nativeIsView = supportsArrayBuffer && ArrayBuffer.isView;
32
33// Create references to these builtin functions because we override them.
34export var _isNaN = isNaN,
35 _isFinite = isFinite;
36
37// Keys in IE < 9 that won't be iterated by `for key in ...` and thus missed.
38export var hasEnumBug = !{toString: null}.propertyIsEnumerable('toString');
39export var nonEnumerableProps = ['valueOf', 'isPrototypeOf', 'toString',
40 'propertyIsEnumerable', 'hasOwnProperty', 'toLocaleString'];
41
42// The largest integer that can be represented exactly.
43export var MAX_ARRAY_INDEX = Math.pow(2, 53) - 1;
Note: See TracBrowser for help on using the repository browser.