Added the underscore node_module.
All checks were successful
Auto Maintenance Cycle / pre-commit Autoupdate (push) Successful in 39s
All checks were successful
Auto Maintenance Cycle / pre-commit Autoupdate (push) Successful in 39s
This commit is contained in:
43
node_modules/underscore/modules/_setup.js
generated
vendored
Normal file
43
node_modules/underscore/modules/_setup.js
generated
vendored
Normal file
@ -0,0 +1,43 @@
|
||||
// Current version.
|
||||
export var VERSION = '1.13.6';
|
||||
|
||||
// Establish the root object, `window` (`self`) in the browser, `global`
|
||||
// on the server, or `this` in some virtual machines. We use `self`
|
||||
// instead of `window` for `WebWorker` support.
|
||||
export var root = (typeof self == 'object' && self.self === self && self) ||
|
||||
(typeof global == 'object' && global.global === global && global) ||
|
||||
Function('return this')() ||
|
||||
{};
|
||||
|
||||
// Save bytes in the minified (but not gzipped) version:
|
||||
export var ArrayProto = Array.prototype, ObjProto = Object.prototype;
|
||||
export var SymbolProto = typeof Symbol !== 'undefined' ? Symbol.prototype : null;
|
||||
|
||||
// Create quick reference variables for speed access to core prototypes.
|
||||
export var push = ArrayProto.push,
|
||||
slice = ArrayProto.slice,
|
||||
toString = ObjProto.toString,
|
||||
hasOwnProperty = ObjProto.hasOwnProperty;
|
||||
|
||||
// Modern feature detection.
|
||||
export var supportsArrayBuffer = typeof ArrayBuffer !== 'undefined',
|
||||
supportsDataView = typeof DataView !== 'undefined';
|
||||
|
||||
// All **ECMAScript 5+** native function implementations that we hope to use
|
||||
// are declared here.
|
||||
export var nativeIsArray = Array.isArray,
|
||||
nativeKeys = Object.keys,
|
||||
nativeCreate = Object.create,
|
||||
nativeIsView = supportsArrayBuffer && ArrayBuffer.isView;
|
||||
|
||||
// Create references to these builtin functions because we override them.
|
||||
export var _isNaN = isNaN,
|
||||
_isFinite = isFinite;
|
||||
|
||||
// Keys in IE < 9 that won't be iterated by `for key in ...` and thus missed.
|
||||
export var hasEnumBug = !{toString: null}.propertyIsEnumerable('toString');
|
||||
export var nonEnumerableProps = ['valueOf', 'isPrototypeOf', 'toString',
|
||||
'propertyIsEnumerable', 'hasOwnProperty', 'toLocaleString'];
|
||||
|
||||
// The largest integer that can be represented exactly.
|
||||
export var MAX_ARRAY_INDEX = Math.pow(2, 53) - 1;
|
Reference in New Issue
Block a user