| 1 | // Current version.
|
|---|
| 2 | export 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.
|
|---|
| 7 | export 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:
|
|---|
| 13 | export var ArrayProto = Array.prototype, ObjProto = Object.prototype;
|
|---|
| 14 | export var SymbolProto = typeof Symbol !== 'undefined' ? Symbol.prototype : null;
|
|---|
| 15 |
|
|---|
| 16 | // Create quick reference variables for speed access to core prototypes.
|
|---|
| 17 | export var push = ArrayProto.push,
|
|---|
| 18 | slice = ArrayProto.slice,
|
|---|
| 19 | toString = ObjProto.toString,
|
|---|
| 20 | hasOwnProperty = ObjProto.hasOwnProperty;
|
|---|
| 21 |
|
|---|
| 22 | // Modern feature detection.
|
|---|
| 23 | export 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.
|
|---|
| 28 | export 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.
|
|---|
| 34 | export var _isNaN = isNaN,
|
|---|
| 35 | _isFinite = isFinite;
|
|---|
| 36 |
|
|---|
| 37 | // Keys in IE < 9 that won't be iterated by `for key in ...` and thus missed.
|
|---|
| 38 | export var hasEnumBug = !{toString: null}.propertyIsEnumerable('toString');
|
|---|
| 39 | export var nonEnumerableProps = ['valueOf', 'isPrototypeOf', 'toString',
|
|---|
| 40 | 'propertyIsEnumerable', 'hasOwnProperty', 'toLocaleString'];
|
|---|
| 41 |
|
|---|
| 42 | // The largest integer that can be represented exactly.
|
|---|
| 43 | export var MAX_ARRAY_INDEX = Math.pow(2, 53) - 1;
|
|---|