committed by
GitHub
parent
20d2b4f98d
commit
e4f3964f67
2
node_modules/underscore/cjs/_collectNonEnumProps.js
generated
vendored
2
node_modules/underscore/cjs/_collectNonEnumProps.js
generated
vendored
@ -25,7 +25,7 @@ function collectNonEnumProps(obj, keys) {
|
||||
keys = emulatedSet(keys);
|
||||
var nonEnumIdx = _setup.nonEnumerableProps.length;
|
||||
var constructor = obj.constructor;
|
||||
var proto = isFunction(constructor) && constructor.prototype || _setup.ObjProto;
|
||||
var proto = (isFunction(constructor) && constructor.prototype) || _setup.ObjProto;
|
||||
|
||||
// Constructor is a special case.
|
||||
var prop = 'constructor';
|
||||
|
6
node_modules/underscore/cjs/_setup.js
generated
vendored
6
node_modules/underscore/cjs/_setup.js
generated
vendored
@ -1,13 +1,13 @@
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
|
||||
// Current version.
|
||||
var VERSION = '1.13.2';
|
||||
var VERSION = '1.13.4';
|
||||
|
||||
// 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.
|
||||
var root = typeof self == 'object' && self.self === self && self ||
|
||||
typeof global == 'object' && global.global === global && global ||
|
||||
var root = (typeof self == 'object' && self.self === self && self) ||
|
||||
(typeof global == 'object' && global.global === global && global) ||
|
||||
Function('return this')() ||
|
||||
{};
|
||||
|
||||
|
2
node_modules/underscore/cjs/isObject.js
generated
vendored
2
node_modules/underscore/cjs/isObject.js
generated
vendored
@ -1,7 +1,7 @@
|
||||
// Is a given variable an object?
|
||||
function isObject(obj) {
|
||||
var type = typeof obj;
|
||||
return type === 'function' || type === 'object' && !!obj;
|
||||
return type === 'function' || (type === 'object' && !!obj);
|
||||
}
|
||||
|
||||
module.exports = isObject;
|
||||
|
4
node_modules/underscore/cjs/max.js
generated
vendored
4
node_modules/underscore/cjs/max.js
generated
vendored
@ -7,7 +7,7 @@ var each = require('./each.js');
|
||||
function max(obj, iteratee, context) {
|
||||
var result = -Infinity, lastComputed = -Infinity,
|
||||
value, computed;
|
||||
if (iteratee == null || typeof iteratee == 'number' && typeof obj[0] != 'object' && obj != null) {
|
||||
if (iteratee == null || (typeof iteratee == 'number' && typeof obj[0] != 'object' && obj != null)) {
|
||||
obj = _isArrayLike(obj) ? obj : values(obj);
|
||||
for (var i = 0, length = obj.length; i < length; i++) {
|
||||
value = obj[i];
|
||||
@ -19,7 +19,7 @@ function max(obj, iteratee, context) {
|
||||
iteratee = _cb(iteratee, context);
|
||||
each(obj, function(v, index, list) {
|
||||
computed = iteratee(v, index, list);
|
||||
if (computed > lastComputed || computed === -Infinity && result === -Infinity) {
|
||||
if (computed > lastComputed || (computed === -Infinity && result === -Infinity)) {
|
||||
result = v;
|
||||
lastComputed = computed;
|
||||
}
|
||||
|
4
node_modules/underscore/cjs/min.js
generated
vendored
4
node_modules/underscore/cjs/min.js
generated
vendored
@ -7,7 +7,7 @@ var each = require('./each.js');
|
||||
function min(obj, iteratee, context) {
|
||||
var result = Infinity, lastComputed = Infinity,
|
||||
value, computed;
|
||||
if (iteratee == null || typeof iteratee == 'number' && typeof obj[0] != 'object' && obj != null) {
|
||||
if (iteratee == null || (typeof iteratee == 'number' && typeof obj[0] != 'object' && obj != null)) {
|
||||
obj = _isArrayLike(obj) ? obj : values(obj);
|
||||
for (var i = 0, length = obj.length; i < length; i++) {
|
||||
value = obj[i];
|
||||
@ -19,7 +19,7 @@ function min(obj, iteratee, context) {
|
||||
iteratee = _cb(iteratee, context);
|
||||
each(obj, function(v, index, list) {
|
||||
computed = iteratee(v, index, list);
|
||||
if (computed < lastComputed || computed === Infinity && result === Infinity) {
|
||||
if (computed < lastComputed || (computed === Infinity && result === Infinity)) {
|
||||
result = v;
|
||||
lastComputed = computed;
|
||||
}
|
||||
|
2
node_modules/underscore/cjs/unzip.js
generated
vendored
2
node_modules/underscore/cjs/unzip.js
generated
vendored
@ -5,7 +5,7 @@ var pluck = require('./pluck.js');
|
||||
// Complement of zip. Unzip accepts an array of arrays and groups
|
||||
// each array's elements on shared indices.
|
||||
function unzip(array) {
|
||||
var length = array && max(array, _getLength).length || 0;
|
||||
var length = (array && max(array, _getLength).length) || 0;
|
||||
var result = Array(length);
|
||||
|
||||
for (var index = 0; index < length; index++) {
|
||||
|
Reference in New Issue
Block a user