init 3
This commit is contained in:
7
node_modules/lodash/_Map.js
generated
vendored
Normal file
7
node_modules/lodash/_Map.js
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
var getNative = require('./_getNative'),
|
||||
root = require('./_root');
|
||||
|
||||
/* Built-in method references that are verified to be native. */
|
||||
var Map = getNative(root, 'Map');
|
||||
|
||||
module.exports = Map;
|
||||
32
node_modules/lodash/_MapCache.js
generated
vendored
Normal file
32
node_modules/lodash/_MapCache.js
generated
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
var mapCacheClear = require('./_mapCacheClear'),
|
||||
mapCacheDelete = require('./_mapCacheDelete'),
|
||||
mapCacheGet = require('./_mapCacheGet'),
|
||||
mapCacheHas = require('./_mapCacheHas'),
|
||||
mapCacheSet = require('./_mapCacheSet');
|
||||
|
||||
/**
|
||||
* Creates a map cache object to store key-value pairs.
|
||||
*
|
||||
* @private
|
||||
* @constructor
|
||||
* @param {Array} [entries] The key-value pairs to cache.
|
||||
*/
|
||||
function MapCache(entries) {
|
||||
var index = -1,
|
||||
length = entries == null ? 0 : entries.length;
|
||||
|
||||
this.clear();
|
||||
while (++index < length) {
|
||||
var entry = entries[index];
|
||||
this.set(entry[0], entry[1]);
|
||||
}
|
||||
}
|
||||
|
||||
// Add methods to `MapCache`.
|
||||
MapCache.prototype.clear = mapCacheClear;
|
||||
MapCache.prototype['delete'] = mapCacheDelete;
|
||||
MapCache.prototype.get = mapCacheGet;
|
||||
MapCache.prototype.has = mapCacheHas;
|
||||
MapCache.prototype.set = mapCacheSet;
|
||||
|
||||
module.exports = MapCache;
|
||||
23
node_modules/lodash/_arrayEvery.js
generated
vendored
Normal file
23
node_modules/lodash/_arrayEvery.js
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
/**
|
||||
* A specialized version of `_.every` for arrays without support for
|
||||
* iteratee shorthands.
|
||||
*
|
||||
* @private
|
||||
* @param {Array} [array] The array to iterate over.
|
||||
* @param {Function} predicate The function invoked per iteration.
|
||||
* @returns {boolean} Returns `true` if all elements pass the predicate check,
|
||||
* else `false`.
|
||||
*/
|
||||
function arrayEvery(array, predicate) {
|
||||
var index = -1,
|
||||
length = array == null ? 0 : array.length;
|
||||
|
||||
while (++index < length) {
|
||||
if (!predicate(array[index], index, array)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
module.exports = arrayEvery;
|
||||
26
node_modules/lodash/_arrayReduce.js
generated
vendored
Normal file
26
node_modules/lodash/_arrayReduce.js
generated
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
/**
|
||||
* A specialized version of `_.reduce` for arrays without support for
|
||||
* iteratee shorthands.
|
||||
*
|
||||
* @private
|
||||
* @param {Array} [array] The array to iterate over.
|
||||
* @param {Function} iteratee The function invoked per iteration.
|
||||
* @param {*} [accumulator] The initial value.
|
||||
* @param {boolean} [initAccum] Specify using the first element of `array` as
|
||||
* the initial value.
|
||||
* @returns {*} Returns the accumulated value.
|
||||
*/
|
||||
function arrayReduce(array, iteratee, accumulator, initAccum) {
|
||||
var index = -1,
|
||||
length = array == null ? 0 : array.length;
|
||||
|
||||
if (initAccum && length) {
|
||||
accumulator = array[++index];
|
||||
}
|
||||
while (++index < length) {
|
||||
accumulator = iteratee(accumulator, array[index], index, array);
|
||||
}
|
||||
return accumulator;
|
||||
}
|
||||
|
||||
module.exports = arrayReduce;
|
||||
12
node_modules/lodash/_asciiSize.js
generated
vendored
Normal file
12
node_modules/lodash/_asciiSize.js
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
var baseProperty = require('./_baseProperty');
|
||||
|
||||
/**
|
||||
* Gets the size of an ASCII `string`.
|
||||
*
|
||||
* @private
|
||||
* @param {string} string The string inspect.
|
||||
* @returns {number} Returns the string size.
|
||||
*/
|
||||
var asciiSize = baseProperty('length');
|
||||
|
||||
module.exports = asciiSize;
|
||||
21
node_modules/lodash/_baseAggregator.js
generated
vendored
Normal file
21
node_modules/lodash/_baseAggregator.js
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
var baseEach = require('./_baseEach');
|
||||
|
||||
/**
|
||||
* Aggregates elements of `collection` on `accumulator` with keys transformed
|
||||
* by `iteratee` and values set by `setter`.
|
||||
*
|
||||
* @private
|
||||
* @param {Array|Object} collection The collection to iterate over.
|
||||
* @param {Function} setter The function to set `accumulator` values.
|
||||
* @param {Function} iteratee The iteratee to transform keys.
|
||||
* @param {Object} accumulator The initial aggregated object.
|
||||
* @returns {Function} Returns `accumulator`.
|
||||
*/
|
||||
function baseAggregator(collection, setter, iteratee, accumulator) {
|
||||
baseEach(collection, function(value, key, collection) {
|
||||
setter(accumulator, value, iteratee(value), collection);
|
||||
});
|
||||
return accumulator;
|
||||
}
|
||||
|
||||
module.exports = baseAggregator;
|
||||
67
node_modules/lodash/_baseDifference.js
generated
vendored
Normal file
67
node_modules/lodash/_baseDifference.js
generated
vendored
Normal file
@@ -0,0 +1,67 @@
|
||||
var SetCache = require('./_SetCache'),
|
||||
arrayIncludes = require('./_arrayIncludes'),
|
||||
arrayIncludesWith = require('./_arrayIncludesWith'),
|
||||
arrayMap = require('./_arrayMap'),
|
||||
baseUnary = require('./_baseUnary'),
|
||||
cacheHas = require('./_cacheHas');
|
||||
|
||||
/** Used as the size to enable large array optimizations. */
|
||||
var LARGE_ARRAY_SIZE = 200;
|
||||
|
||||
/**
|
||||
* The base implementation of methods like `_.difference` without support
|
||||
* for excluding multiple arrays or iteratee shorthands.
|
||||
*
|
||||
* @private
|
||||
* @param {Array} array The array to inspect.
|
||||
* @param {Array} values The values to exclude.
|
||||
* @param {Function} [iteratee] The iteratee invoked per element.
|
||||
* @param {Function} [comparator] The comparator invoked per element.
|
||||
* @returns {Array} Returns the new array of filtered values.
|
||||
*/
|
||||
function baseDifference(array, values, iteratee, comparator) {
|
||||
var index = -1,
|
||||
includes = arrayIncludes,
|
||||
isCommon = true,
|
||||
length = array.length,
|
||||
result = [],
|
||||
valuesLength = values.length;
|
||||
|
||||
if (!length) {
|
||||
return result;
|
||||
}
|
||||
if (iteratee) {
|
||||
values = arrayMap(values, baseUnary(iteratee));
|
||||
}
|
||||
if (comparator) {
|
||||
includes = arrayIncludesWith;
|
||||
isCommon = false;
|
||||
}
|
||||
else if (values.length >= LARGE_ARRAY_SIZE) {
|
||||
includes = cacheHas;
|
||||
isCommon = false;
|
||||
values = new SetCache(values);
|
||||
}
|
||||
outer:
|
||||
while (++index < length) {
|
||||
var value = array[index],
|
||||
computed = iteratee == null ? value : iteratee(value);
|
||||
|
||||
value = (comparator || value !== 0) ? value : 0;
|
||||
if (isCommon && computed === computed) {
|
||||
var valuesIndex = valuesLength;
|
||||
while (valuesIndex--) {
|
||||
if (values[valuesIndex] === computed) {
|
||||
continue outer;
|
||||
}
|
||||
}
|
||||
result.push(value);
|
||||
}
|
||||
else if (!includes(values, computed, comparator)) {
|
||||
result.push(value);
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
module.exports = baseDifference;
|
||||
14
node_modules/lodash/_baseEachRight.js
generated
vendored
Normal file
14
node_modules/lodash/_baseEachRight.js
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
var baseForOwnRight = require('./_baseForOwnRight'),
|
||||
createBaseEach = require('./_createBaseEach');
|
||||
|
||||
/**
|
||||
* The base implementation of `_.forEachRight` without support for iteratee shorthands.
|
||||
*
|
||||
* @private
|
||||
* @param {Array|Object} collection The collection to iterate over.
|
||||
* @param {Function} iteratee The function invoked per iteration.
|
||||
* @returns {Array|Object} Returns `collection`.
|
||||
*/
|
||||
var baseEachRight = createBaseEach(baseForOwnRight, true);
|
||||
|
||||
module.exports = baseEachRight;
|
||||
18
node_modules/lodash/_baseIsArguments.js
generated
vendored
Normal file
18
node_modules/lodash/_baseIsArguments.js
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
var baseGetTag = require('./_baseGetTag'),
|
||||
isObjectLike = require('./isObjectLike');
|
||||
|
||||
/** `Object#toString` result references. */
|
||||
var argsTag = '[object Arguments]';
|
||||
|
||||
/**
|
||||
* The base implementation of `_.isArguments`.
|
||||
*
|
||||
* @private
|
||||
* @param {*} value The value to check.
|
||||
* @returns {boolean} Returns `true` if `value` is an `arguments` object,
|
||||
*/
|
||||
function baseIsArguments(value) {
|
||||
return isObjectLike(value) && baseGetTag(value) == argsTag;
|
||||
}
|
||||
|
||||
module.exports = baseIsArguments;
|
||||
18
node_modules/lodash/_baseIsSet.js
generated
vendored
Normal file
18
node_modules/lodash/_baseIsSet.js
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
var getTag = require('./_getTag'),
|
||||
isObjectLike = require('./isObjectLike');
|
||||
|
||||
/** `Object#toString` result references. */
|
||||
var setTag = '[object Set]';
|
||||
|
||||
/**
|
||||
* The base implementation of `_.isSet` without Node.js optimizations.
|
||||
*
|
||||
* @private
|
||||
* @param {*} value The value to check.
|
||||
* @returns {boolean} Returns `true` if `value` is a set, else `false`.
|
||||
*/
|
||||
function baseIsSet(value) {
|
||||
return isObjectLike(value) && getTag(value) == setTag;
|
||||
}
|
||||
|
||||
module.exports = baseIsSet;
|
||||
20
node_modules/lodash/_baseNth.js
generated
vendored
Normal file
20
node_modules/lodash/_baseNth.js
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
var isIndex = require('./_isIndex');
|
||||
|
||||
/**
|
||||
* The base implementation of `_.nth` which doesn't coerce arguments.
|
||||
*
|
||||
* @private
|
||||
* @param {Array} array The array to query.
|
||||
* @param {number} n The index of the element to return.
|
||||
* @returns {*} Returns the nth element of `array`.
|
||||
*/
|
||||
function baseNth(array, n) {
|
||||
var length = array.length;
|
||||
if (!length) {
|
||||
return;
|
||||
}
|
||||
n += n < 0 ? length : 0;
|
||||
return isIndex(n, length) ? array[n] : undefined;
|
||||
}
|
||||
|
||||
module.exports = baseNth;
|
||||
28
node_modules/lodash/_baseRange.js
generated
vendored
Normal file
28
node_modules/lodash/_baseRange.js
generated
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
/* Built-in method references for those with the same name as other `lodash` methods. */
|
||||
var nativeCeil = Math.ceil,
|
||||
nativeMax = Math.max;
|
||||
|
||||
/**
|
||||
* The base implementation of `_.range` and `_.rangeRight` which doesn't
|
||||
* coerce arguments.
|
||||
*
|
||||
* @private
|
||||
* @param {number} start The start of the range.
|
||||
* @param {number} end The end of the range.
|
||||
* @param {number} step The value to increment or decrement by.
|
||||
* @param {boolean} [fromRight] Specify iterating from right to left.
|
||||
* @returns {Array} Returns the range of numbers.
|
||||
*/
|
||||
function baseRange(start, end, step, fromRight) {
|
||||
var index = -1,
|
||||
length = nativeMax(nativeCeil((end - start) / (step || 1)), 0),
|
||||
result = Array(length);
|
||||
|
||||
while (length--) {
|
||||
result[fromRight ? length : ++index] = start;
|
||||
start += step;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
module.exports = baseRange;
|
||||
19
node_modules/lodash/_baseTrim.js
generated
vendored
Normal file
19
node_modules/lodash/_baseTrim.js
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
var trimmedEndIndex = require('./_trimmedEndIndex');
|
||||
|
||||
/** Used to match leading whitespace. */
|
||||
var reTrimStart = /^\s+/;
|
||||
|
||||
/**
|
||||
* The base implementation of `_.trim`.
|
||||
*
|
||||
* @private
|
||||
* @param {string} string The string to trim.
|
||||
* @returns {string} Returns the trimmed string.
|
||||
*/
|
||||
function baseTrim(string) {
|
||||
return string
|
||||
? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')
|
||||
: string;
|
||||
}
|
||||
|
||||
module.exports = baseTrim;
|
||||
44
node_modules/lodash/_compareMultiple.js
generated
vendored
Normal file
44
node_modules/lodash/_compareMultiple.js
generated
vendored
Normal file
@@ -0,0 +1,44 @@
|
||||
var compareAscending = require('./_compareAscending');
|
||||
|
||||
/**
|
||||
* Used by `_.orderBy` to compare multiple properties of a value to another
|
||||
* and stable sort them.
|
||||
*
|
||||
* If `orders` is unspecified, all values are sorted in ascending order. Otherwise,
|
||||
* specify an order of "desc" for descending or "asc" for ascending sort order
|
||||
* of corresponding values.
|
||||
*
|
||||
* @private
|
||||
* @param {Object} object The object to compare.
|
||||
* @param {Object} other The other object to compare.
|
||||
* @param {boolean[]|string[]} orders The order to sort by for each property.
|
||||
* @returns {number} Returns the sort order indicator for `object`.
|
||||
*/
|
||||
function compareMultiple(object, other, orders) {
|
||||
var index = -1,
|
||||
objCriteria = object.criteria,
|
||||
othCriteria = other.criteria,
|
||||
length = objCriteria.length,
|
||||
ordersLength = orders.length;
|
||||
|
||||
while (++index < length) {
|
||||
var result = compareAscending(objCriteria[index], othCriteria[index]);
|
||||
if (result) {
|
||||
if (index >= ordersLength) {
|
||||
return result;
|
||||
}
|
||||
var order = orders[index];
|
||||
return result * (order == 'desc' ? -1 : 1);
|
||||
}
|
||||
}
|
||||
// Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications
|
||||
// that causes it, under certain circumstances, to provide the same value for
|
||||
// `object` and `other`. See https://github.com/jashkenas/underscore/pull/1247
|
||||
// for more details.
|
||||
//
|
||||
// This also ensures a stable sort in V8 and other engines.
|
||||
// See https://bugs.chromium.org/p/v8/issues/detail?id=90 for more details.
|
||||
return object.index - other.index;
|
||||
}
|
||||
|
||||
module.exports = compareMultiple;
|
||||
28
node_modules/lodash/_customDefaultsMerge.js
generated
vendored
Normal file
28
node_modules/lodash/_customDefaultsMerge.js
generated
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
var baseMerge = require('./_baseMerge'),
|
||||
isObject = require('./isObject');
|
||||
|
||||
/**
|
||||
* Used by `_.defaultsDeep` to customize its `_.merge` use to merge source
|
||||
* objects into destination objects that are passed thru.
|
||||
*
|
||||
* @private
|
||||
* @param {*} objValue The destination value.
|
||||
* @param {*} srcValue The source value.
|
||||
* @param {string} key The key of the property to merge.
|
||||
* @param {Object} object The parent object of `objValue`.
|
||||
* @param {Object} source The parent object of `srcValue`.
|
||||
* @param {Object} [stack] Tracks traversed source values and their merged
|
||||
* counterparts.
|
||||
* @returns {*} Returns the value to assign.
|
||||
*/
|
||||
function customDefaultsMerge(objValue, srcValue, key, object, source, stack) {
|
||||
if (isObject(objValue) && isObject(srcValue)) {
|
||||
// Recursively merge objects and arrays (susceptible to call stack limits).
|
||||
stack.set(srcValue, objValue);
|
||||
baseMerge(objValue, srcValue, undefined, customDefaultsMerge, stack);
|
||||
stack['delete'](srcValue);
|
||||
}
|
||||
return objValue;
|
||||
}
|
||||
|
||||
module.exports = customDefaultsMerge;
|
||||
16
node_modules/lodash/_getAllKeys.js
generated
vendored
Normal file
16
node_modules/lodash/_getAllKeys.js
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
var baseGetAllKeys = require('./_baseGetAllKeys'),
|
||||
getSymbols = require('./_getSymbols'),
|
||||
keys = require('./keys');
|
||||
|
||||
/**
|
||||
* Creates an array of own enumerable property names and symbols of `object`.
|
||||
*
|
||||
* @private
|
||||
* @param {Object} object The object to query.
|
||||
* @returns {Array} Returns the array of property names and symbols.
|
||||
*/
|
||||
function getAllKeys(object) {
|
||||
return baseGetAllKeys(object, keys, getSymbols);
|
||||
}
|
||||
|
||||
module.exports = getAllKeys;
|
||||
46
node_modules/lodash/_getRawTag.js
generated
vendored
Normal file
46
node_modules/lodash/_getRawTag.js
generated
vendored
Normal file
@@ -0,0 +1,46 @@
|
||||
var Symbol = require('./_Symbol');
|
||||
|
||||
/** Used for built-in method references. */
|
||||
var objectProto = Object.prototype;
|
||||
|
||||
/** Used to check objects for own properties. */
|
||||
var hasOwnProperty = objectProto.hasOwnProperty;
|
||||
|
||||
/**
|
||||
* Used to resolve the
|
||||
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
||||
* of values.
|
||||
*/
|
||||
var nativeObjectToString = objectProto.toString;
|
||||
|
||||
/** Built-in value references. */
|
||||
var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
|
||||
|
||||
/**
|
||||
* A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
|
||||
*
|
||||
* @private
|
||||
* @param {*} value The value to query.
|
||||
* @returns {string} Returns the raw `toStringTag`.
|
||||
*/
|
||||
function getRawTag(value) {
|
||||
var isOwn = hasOwnProperty.call(value, symToStringTag),
|
||||
tag = value[symToStringTag];
|
||||
|
||||
try {
|
||||
value[symToStringTag] = undefined;
|
||||
var unmasked = true;
|
||||
} catch (e) {}
|
||||
|
||||
var result = nativeObjectToString.call(value);
|
||||
if (unmasked) {
|
||||
if (isOwn) {
|
||||
value[symToStringTag] = tag;
|
||||
} else {
|
||||
delete value[symToStringTag];
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
module.exports = getRawTag;
|
||||
13
node_modules/lodash/_getValue.js
generated
vendored
Normal file
13
node_modules/lodash/_getValue.js
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
/**
|
||||
* Gets the value at `key` of `object`.
|
||||
*
|
||||
* @private
|
||||
* @param {Object} [object] The object to query.
|
||||
* @param {string} key The key of the property to get.
|
||||
* @returns {*} Returns the property value.
|
||||
*/
|
||||
function getValue(object, key) {
|
||||
return object == null ? undefined : object[key];
|
||||
}
|
||||
|
||||
module.exports = getValue;
|
||||
36
node_modules/lodash/_overRest.js
generated
vendored
Normal file
36
node_modules/lodash/_overRest.js
generated
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
var apply = require('./_apply');
|
||||
|
||||
/* Built-in method references for those with the same name as other `lodash` methods. */
|
||||
var nativeMax = Math.max;
|
||||
|
||||
/**
|
||||
* A specialized version of `baseRest` which transforms the rest array.
|
||||
*
|
||||
* @private
|
||||
* @param {Function} func The function to apply a rest parameter to.
|
||||
* @param {number} [start=func.length-1] The start position of the rest parameter.
|
||||
* @param {Function} transform The rest array transform.
|
||||
* @returns {Function} Returns the new function.
|
||||
*/
|
||||
function overRest(func, start, transform) {
|
||||
start = nativeMax(start === undefined ? (func.length - 1) : start, 0);
|
||||
return function() {
|
||||
var args = arguments,
|
||||
index = -1,
|
||||
length = nativeMax(args.length - start, 0),
|
||||
array = Array(length);
|
||||
|
||||
while (++index < length) {
|
||||
array[index] = args[start + index];
|
||||
}
|
||||
index = -1;
|
||||
var otherArgs = Array(start + 1);
|
||||
while (++index < start) {
|
||||
otherArgs[index] = args[index];
|
||||
}
|
||||
otherArgs[start] = transform(array);
|
||||
return apply(func, this, otherArgs);
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = overRest;
|
||||
28
node_modules/lodash/_shuffleSelf.js
generated
vendored
Normal file
28
node_modules/lodash/_shuffleSelf.js
generated
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
var baseRandom = require('./_baseRandom');
|
||||
|
||||
/**
|
||||
* A specialized version of `_.shuffle` which mutates and sets the size of `array`.
|
||||
*
|
||||
* @private
|
||||
* @param {Array} array The array to shuffle.
|
||||
* @param {number} [size=array.length] The size of `array`.
|
||||
* @returns {Array} Returns `array`.
|
||||
*/
|
||||
function shuffleSelf(array, size) {
|
||||
var index = -1,
|
||||
length = array.length,
|
||||
lastIndex = length - 1;
|
||||
|
||||
size = size === undefined ? length : size;
|
||||
while (++index < size) {
|
||||
var rand = baseRandom(index, lastIndex),
|
||||
value = array[rand];
|
||||
|
||||
array[rand] = array[index];
|
||||
array[index] = value;
|
||||
}
|
||||
array.length = size;
|
||||
return array;
|
||||
}
|
||||
|
||||
module.exports = shuffleSelf;
|
||||
18
node_modules/lodash/_stringToArray.js
generated
vendored
Normal file
18
node_modules/lodash/_stringToArray.js
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
var asciiToArray = require('./_asciiToArray'),
|
||||
hasUnicode = require('./_hasUnicode'),
|
||||
unicodeToArray = require('./_unicodeToArray');
|
||||
|
||||
/**
|
||||
* Converts `string` to an array.
|
||||
*
|
||||
* @private
|
||||
* @param {string} string The string to convert.
|
||||
* @returns {Array} Returns the converted array.
|
||||
*/
|
||||
function stringToArray(string) {
|
||||
return hasUnicode(string)
|
||||
? unicodeToArray(string)
|
||||
: asciiToArray(string);
|
||||
}
|
||||
|
||||
module.exports = stringToArray;
|
||||
60
node_modules/lodash/cond.js
generated
vendored
Normal file
60
node_modules/lodash/cond.js
generated
vendored
Normal file
@@ -0,0 +1,60 @@
|
||||
var apply = require('./_apply'),
|
||||
arrayMap = require('./_arrayMap'),
|
||||
baseIteratee = require('./_baseIteratee'),
|
||||
baseRest = require('./_baseRest');
|
||||
|
||||
/** Error message constants. */
|
||||
var FUNC_ERROR_TEXT = 'Expected a function';
|
||||
|
||||
/**
|
||||
* Creates a function that iterates over `pairs` and invokes the corresponding
|
||||
* function of the first predicate to return truthy. The predicate-function
|
||||
* pairs are invoked with the `this` binding and arguments of the created
|
||||
* function.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @since 4.0.0
|
||||
* @category Util
|
||||
* @param {Array} pairs The predicate-function pairs.
|
||||
* @returns {Function} Returns the new composite function.
|
||||
* @example
|
||||
*
|
||||
* var func = _.cond([
|
||||
* [_.matches({ 'a': 1 }), _.constant('matches A')],
|
||||
* [_.conforms({ 'b': _.isNumber }), _.constant('matches B')],
|
||||
* [_.stubTrue, _.constant('no match')]
|
||||
* ]);
|
||||
*
|
||||
* func({ 'a': 1, 'b': 2 });
|
||||
* // => 'matches A'
|
||||
*
|
||||
* func({ 'a': 0, 'b': 1 });
|
||||
* // => 'matches B'
|
||||
*
|
||||
* func({ 'a': '1', 'b': '2' });
|
||||
* // => 'no match'
|
||||
*/
|
||||
function cond(pairs) {
|
||||
var length = pairs == null ? 0 : pairs.length,
|
||||
toIteratee = baseIteratee;
|
||||
|
||||
pairs = !length ? [] : arrayMap(pairs, function(pair) {
|
||||
if (typeof pair[1] != 'function') {
|
||||
throw new TypeError(FUNC_ERROR_TEXT);
|
||||
}
|
||||
return [toIteratee(pair[0]), pair[1]];
|
||||
});
|
||||
|
||||
return baseRest(function(args) {
|
||||
var index = -1;
|
||||
while (++index < length) {
|
||||
var pair = pairs[index];
|
||||
if (apply(pair[0], this, args)) {
|
||||
return apply(pair[1], this, args);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
module.exports = cond;
|
||||
33
node_modules/lodash/flattenDepth.js
generated
vendored
Normal file
33
node_modules/lodash/flattenDepth.js
generated
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
var baseFlatten = require('./_baseFlatten'),
|
||||
toInteger = require('./toInteger');
|
||||
|
||||
/**
|
||||
* Recursively flatten `array` up to `depth` times.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @since 4.4.0
|
||||
* @category Array
|
||||
* @param {Array} array The array to flatten.
|
||||
* @param {number} [depth=1] The maximum recursion depth.
|
||||
* @returns {Array} Returns the new flattened array.
|
||||
* @example
|
||||
*
|
||||
* var array = [1, [2, [3, [4]], 5]];
|
||||
*
|
||||
* _.flattenDepth(array, 1);
|
||||
* // => [1, 2, [3, [4]], 5]
|
||||
*
|
||||
* _.flattenDepth(array, 2);
|
||||
* // => [1, 2, 3, [4], 5]
|
||||
*/
|
||||
function flattenDepth(array, depth) {
|
||||
var length = array == null ? 0 : array.length;
|
||||
if (!length) {
|
||||
return [];
|
||||
}
|
||||
depth = depth === undefined ? 1 : toInteger(depth);
|
||||
return baseFlatten(array, depth);
|
||||
}
|
||||
|
||||
module.exports = flattenDepth;
|
||||
16
node_modules/lodash/fp/_util.js
generated
vendored
Normal file
16
node_modules/lodash/fp/_util.js
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
module.exports = {
|
||||
'ary': require('../ary'),
|
||||
'assign': require('../_baseAssign'),
|
||||
'clone': require('../clone'),
|
||||
'curry': require('../curry'),
|
||||
'forEach': require('../_arrayEach'),
|
||||
'isArray': require('../isArray'),
|
||||
'isError': require('../isError'),
|
||||
'isFunction': require('../isFunction'),
|
||||
'isWeakMap': require('../isWeakMap'),
|
||||
'iteratee': require('../iteratee'),
|
||||
'keys': require('../_baseKeys'),
|
||||
'rearg': require('../rearg'),
|
||||
'toInteger': require('../toInteger'),
|
||||
'toPath': require('../toPath')
|
||||
};
|
||||
5
node_modules/lodash/fp/assignInAll.js
generated
vendored
Normal file
5
node_modules/lodash/fp/assignInAll.js
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
var convert = require('./convert'),
|
||||
func = convert('assignInAll', require('../assignIn'));
|
||||
|
||||
func.placeholder = require('./placeholder');
|
||||
module.exports = func;
|
||||
5
node_modules/lodash/fp/bindAll.js
generated
vendored
Normal file
5
node_modules/lodash/fp/bindAll.js
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
var convert = require('./convert'),
|
||||
func = convert('bindAll', require('../bindAll'));
|
||||
|
||||
func.placeholder = require('./placeholder');
|
||||
module.exports = func;
|
||||
5
node_modules/lodash/fp/countBy.js
generated
vendored
Normal file
5
node_modules/lodash/fp/countBy.js
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
var convert = require('./convert'),
|
||||
func = convert('countBy', require('../countBy'));
|
||||
|
||||
func.placeholder = require('./placeholder');
|
||||
module.exports = func;
|
||||
5
node_modules/lodash/fp/curry.js
generated
vendored
Normal file
5
node_modules/lodash/fp/curry.js
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
var convert = require('./convert'),
|
||||
func = convert('curry', require('../curry'));
|
||||
|
||||
func.placeholder = require('./placeholder');
|
||||
module.exports = func;
|
||||
5
node_modules/lodash/fp/debounce.js
generated
vendored
Normal file
5
node_modules/lodash/fp/debounce.js
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
var convert = require('./convert'),
|
||||
func = convert('debounce', require('../debounce'));
|
||||
|
||||
func.placeholder = require('./placeholder');
|
||||
module.exports = func;
|
||||
5
node_modules/lodash/fp/endsWith.js
generated
vendored
Normal file
5
node_modules/lodash/fp/endsWith.js
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
var convert = require('./convert'),
|
||||
func = convert('endsWith', require('../endsWith'));
|
||||
|
||||
func.placeholder = require('./placeholder');
|
||||
module.exports = func;
|
||||
5
node_modules/lodash/fp/findIndex.js
generated
vendored
Normal file
5
node_modules/lodash/fp/findIndex.js
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
var convert = require('./convert'),
|
||||
func = convert('findIndex', require('../findIndex'));
|
||||
|
||||
func.placeholder = require('./placeholder');
|
||||
module.exports = func;
|
||||
5
node_modules/lodash/fp/findIndexFrom.js
generated
vendored
Normal file
5
node_modules/lodash/fp/findIndexFrom.js
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
var convert = require('./convert'),
|
||||
func = convert('findIndexFrom', require('../findIndex'));
|
||||
|
||||
func.placeholder = require('./placeholder');
|
||||
module.exports = func;
|
||||
5
node_modules/lodash/fp/findLastIndex.js
generated
vendored
Normal file
5
node_modules/lodash/fp/findLastIndex.js
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
var convert = require('./convert'),
|
||||
func = convert('findLastIndex', require('../findLastIndex'));
|
||||
|
||||
func.placeholder = require('./placeholder');
|
||||
module.exports = func;
|
||||
5
node_modules/lodash/fp/getOr.js
generated
vendored
Normal file
5
node_modules/lodash/fp/getOr.js
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
var convert = require('./convert'),
|
||||
func = convert('getOr', require('../get'));
|
||||
|
||||
func.placeholder = require('./placeholder');
|
||||
module.exports = func;
|
||||
1
node_modules/lodash/fp/identical.js
generated
vendored
Normal file
1
node_modules/lodash/fp/identical.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
module.exports = require('./eq');
|
||||
5
node_modules/lodash/fp/isArray.js
generated
vendored
Normal file
5
node_modules/lodash/fp/isArray.js
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
var convert = require('./convert'),
|
||||
func = convert('isArray', require('../isArray'), require('./_falseOptions'));
|
||||
|
||||
func.placeholder = require('./placeholder');
|
||||
module.exports = func;
|
||||
5
node_modules/lodash/fp/isLength.js
generated
vendored
Normal file
5
node_modules/lodash/fp/isLength.js
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
var convert = require('./convert'),
|
||||
func = convert('isLength', require('../isLength'), require('./_falseOptions'));
|
||||
|
||||
func.placeholder = require('./placeholder');
|
||||
module.exports = func;
|
||||
5
node_modules/lodash/fp/lt.js
generated
vendored
Normal file
5
node_modules/lodash/fp/lt.js
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
var convert = require('./convert'),
|
||||
func = convert('lt', require('../lt'));
|
||||
|
||||
func.placeholder = require('./placeholder');
|
||||
module.exports = func;
|
||||
5
node_modules/lodash/fp/lte.js
generated
vendored
Normal file
5
node_modules/lodash/fp/lte.js
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
var convert = require('./convert'),
|
||||
func = convert('lte', require('../lte'));
|
||||
|
||||
func.placeholder = require('./placeholder');
|
||||
module.exports = func;
|
||||
5
node_modules/lodash/fp/max.js
generated
vendored
Normal file
5
node_modules/lodash/fp/max.js
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
var convert = require('./convert'),
|
||||
func = convert('max', require('../max'), require('./_falseOptions'));
|
||||
|
||||
func.placeholder = require('./placeholder');
|
||||
module.exports = func;
|
||||
5
node_modules/lodash/fp/mergeAll.js
generated
vendored
Normal file
5
node_modules/lodash/fp/mergeAll.js
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
var convert = require('./convert'),
|
||||
func = convert('mergeAll', require('../merge'));
|
||||
|
||||
func.placeholder = require('./placeholder');
|
||||
module.exports = func;
|
||||
5
node_modules/lodash/fp/nthArg.js
generated
vendored
Normal file
5
node_modules/lodash/fp/nthArg.js
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
var convert = require('./convert'),
|
||||
func = convert('nthArg', require('../nthArg'));
|
||||
|
||||
func.placeholder = require('./placeholder');
|
||||
module.exports = func;
|
||||
1
node_modules/lodash/fp/property.js
generated
vendored
Normal file
1
node_modules/lodash/fp/property.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
module.exports = require('./get');
|
||||
5
node_modules/lodash/fp/reduce.js
generated
vendored
Normal file
5
node_modules/lodash/fp/reduce.js
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
var convert = require('./convert'),
|
||||
func = convert('reduce', require('../reduce'));
|
||||
|
||||
func.placeholder = require('./placeholder');
|
||||
module.exports = func;
|
||||
5
node_modules/lodash/fp/set.js
generated
vendored
Normal file
5
node_modules/lodash/fp/set.js
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
var convert = require('./convert'),
|
||||
func = convert('set', require('../set'));
|
||||
|
||||
func.placeholder = require('./placeholder');
|
||||
module.exports = func;
|
||||
5
node_modules/lodash/fp/snakeCase.js
generated
vendored
Normal file
5
node_modules/lodash/fp/snakeCase.js
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
var convert = require('./convert'),
|
||||
func = convert('snakeCase', require('../snakeCase'), require('./_falseOptions'));
|
||||
|
||||
func.placeholder = require('./placeholder');
|
||||
module.exports = func;
|
||||
5
node_modules/lodash/fp/trim.js
generated
vendored
Normal file
5
node_modules/lodash/fp/trim.js
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
var convert = require('./convert'),
|
||||
func = convert('trim', require('../trim'));
|
||||
|
||||
func.placeholder = require('./placeholder');
|
||||
module.exports = func;
|
||||
1
node_modules/lodash/fp/where.js
generated
vendored
Normal file
1
node_modules/lodash/fp/where.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
module.exports = require('./conformsTo');
|
||||
5
node_modules/lodash/fp/xorBy.js
generated
vendored
Normal file
5
node_modules/lodash/fp/xorBy.js
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
var convert = require('./convert'),
|
||||
func = convert('xorBy', require('../xorBy'));
|
||||
|
||||
func.placeholder = require('./placeholder');
|
||||
module.exports = func;
|
||||
1
node_modules/lodash/fp/zipObj.js
generated
vendored
Normal file
1
node_modules/lodash/fp/zipObj.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
module.exports = require('./zipObject');
|
||||
31
node_modules/lodash/functions.js
generated
vendored
Normal file
31
node_modules/lodash/functions.js
generated
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
var baseFunctions = require('./_baseFunctions'),
|
||||
keys = require('./keys');
|
||||
|
||||
/**
|
||||
* Creates an array of function property names from own enumerable properties
|
||||
* of `object`.
|
||||
*
|
||||
* @static
|
||||
* @since 0.1.0
|
||||
* @memberOf _
|
||||
* @category Object
|
||||
* @param {Object} object The object to inspect.
|
||||
* @returns {Array} Returns the function names.
|
||||
* @see _.functionsIn
|
||||
* @example
|
||||
*
|
||||
* function Foo() {
|
||||
* this.a = _.constant('a');
|
||||
* this.b = _.constant('b');
|
||||
* }
|
||||
*
|
||||
* Foo.prototype.c = _.constant('c');
|
||||
*
|
||||
* _.functions(new Foo);
|
||||
* // => ['a', 'b']
|
||||
*/
|
||||
function functions(object) {
|
||||
return object == null ? [] : baseFunctions(object, keys(object));
|
||||
}
|
||||
|
||||
module.exports = functions;
|
||||
21
node_modules/lodash/identity.js
generated
vendored
Normal file
21
node_modules/lodash/identity.js
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
/**
|
||||
* This method returns the first argument it receives.
|
||||
*
|
||||
* @static
|
||||
* @since 0.1.0
|
||||
* @memberOf _
|
||||
* @category Util
|
||||
* @param {*} value Any value.
|
||||
* @returns {*} Returns `value`.
|
||||
* @example
|
||||
*
|
||||
* var object = { 'a': 1 };
|
||||
*
|
||||
* console.log(_.identity(object) === object);
|
||||
* // => true
|
||||
*/
|
||||
function identity(value) {
|
||||
return value;
|
||||
}
|
||||
|
||||
module.exports = identity;
|
||||
53
node_modules/lodash/includes.js
generated
vendored
Normal file
53
node_modules/lodash/includes.js
generated
vendored
Normal file
@@ -0,0 +1,53 @@
|
||||
var baseIndexOf = require('./_baseIndexOf'),
|
||||
isArrayLike = require('./isArrayLike'),
|
||||
isString = require('./isString'),
|
||||
toInteger = require('./toInteger'),
|
||||
values = require('./values');
|
||||
|
||||
/* Built-in method references for those with the same name as other `lodash` methods. */
|
||||
var nativeMax = Math.max;
|
||||
|
||||
/**
|
||||
* Checks if `value` is in `collection`. If `collection` is a string, it's
|
||||
* checked for a substring of `value`, otherwise
|
||||
* [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
||||
* is used for equality comparisons. If `fromIndex` is negative, it's used as
|
||||
* the offset from the end of `collection`.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @since 0.1.0
|
||||
* @category Collection
|
||||
* @param {Array|Object|string} collection The collection to inspect.
|
||||
* @param {*} value The value to search for.
|
||||
* @param {number} [fromIndex=0] The index to search from.
|
||||
* @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.
|
||||
* @returns {boolean} Returns `true` if `value` is found, else `false`.
|
||||
* @example
|
||||
*
|
||||
* _.includes([1, 2, 3], 1);
|
||||
* // => true
|
||||
*
|
||||
* _.includes([1, 2, 3], 1, 2);
|
||||
* // => false
|
||||
*
|
||||
* _.includes({ 'a': 1, 'b': 2 }, 1);
|
||||
* // => true
|
||||
*
|
||||
* _.includes('abcd', 'bc');
|
||||
* // => true
|
||||
*/
|
||||
function includes(collection, value, fromIndex, guard) {
|
||||
collection = isArrayLike(collection) ? collection : values(collection);
|
||||
fromIndex = (fromIndex && !guard) ? toInteger(fromIndex) : 0;
|
||||
|
||||
var length = collection.length;
|
||||
if (fromIndex < 0) {
|
||||
fromIndex = nativeMax(length + fromIndex, 0);
|
||||
}
|
||||
return isString(collection)
|
||||
? (fromIndex <= length && collection.indexOf(value, fromIndex) > -1)
|
||||
: (!!length && baseIndexOf(collection, value, fromIndex) > -1);
|
||||
}
|
||||
|
||||
module.exports = includes;
|
||||
35
node_modules/lodash/isEqual.js
generated
vendored
Normal file
35
node_modules/lodash/isEqual.js
generated
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
var baseIsEqual = require('./_baseIsEqual');
|
||||
|
||||
/**
|
||||
* Performs a deep comparison between two values to determine if they are
|
||||
* equivalent.
|
||||
*
|
||||
* **Note:** This method supports comparing arrays, array buffers, booleans,
|
||||
* date objects, error objects, maps, numbers, `Object` objects, regexes,
|
||||
* sets, strings, symbols, and typed arrays. `Object` objects are compared
|
||||
* by their own, not inherited, enumerable properties. Functions and DOM
|
||||
* nodes are compared by strict equality, i.e. `===`.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @since 0.1.0
|
||||
* @category Lang
|
||||
* @param {*} value The value to compare.
|
||||
* @param {*} other The other value to compare.
|
||||
* @returns {boolean} Returns `true` if the values are equivalent, else `false`.
|
||||
* @example
|
||||
*
|
||||
* var object = { 'a': 1 };
|
||||
* var other = { 'a': 1 };
|
||||
*
|
||||
* _.isEqual(object, other);
|
||||
* // => true
|
||||
*
|
||||
* object === other;
|
||||
* // => false
|
||||
*/
|
||||
function isEqual(value, other) {
|
||||
return baseIsEqual(value, other);
|
||||
}
|
||||
|
||||
module.exports = isEqual;
|
||||
36
node_modules/lodash/isMatch.js
generated
vendored
Normal file
36
node_modules/lodash/isMatch.js
generated
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
var baseIsMatch = require('./_baseIsMatch'),
|
||||
getMatchData = require('./_getMatchData');
|
||||
|
||||
/**
|
||||
* Performs a partial deep comparison between `object` and `source` to
|
||||
* determine if `object` contains equivalent property values.
|
||||
*
|
||||
* **Note:** This method is equivalent to `_.matches` when `source` is
|
||||
* partially applied.
|
||||
*
|
||||
* Partial comparisons will match empty array and empty object `source`
|
||||
* values against any array or object value, respectively. See `_.isEqual`
|
||||
* for a list of supported value comparisons.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @since 3.0.0
|
||||
* @category Lang
|
||||
* @param {Object} object The object to inspect.
|
||||
* @param {Object} source The object of property values to match.
|
||||
* @returns {boolean} Returns `true` if `object` is a match, else `false`.
|
||||
* @example
|
||||
*
|
||||
* var object = { 'a': 1, 'b': 2 };
|
||||
*
|
||||
* _.isMatch(object, { 'b': 2 });
|
||||
* // => true
|
||||
*
|
||||
* _.isMatch(object, { 'b': 1 });
|
||||
* // => false
|
||||
*/
|
||||
function isMatch(object, source) {
|
||||
return object === source || baseIsMatch(object, source, getMatchData(source));
|
||||
}
|
||||
|
||||
module.exports = isMatch;
|
||||
25
node_modules/lodash/isNil.js
generated
vendored
Normal file
25
node_modules/lodash/isNil.js
generated
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
/**
|
||||
* Checks if `value` is `null` or `undefined`.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @since 4.0.0
|
||||
* @category Lang
|
||||
* @param {*} value The value to check.
|
||||
* @returns {boolean} Returns `true` if `value` is nullish, else `false`.
|
||||
* @example
|
||||
*
|
||||
* _.isNil(null);
|
||||
* // => true
|
||||
*
|
||||
* _.isNil(void 0);
|
||||
* // => true
|
||||
*
|
||||
* _.isNil(NaN);
|
||||
* // => false
|
||||
*/
|
||||
function isNil(value) {
|
||||
return value == null;
|
||||
}
|
||||
|
||||
module.exports = isNil;
|
||||
29
node_modules/lodash/isSymbol.js
generated
vendored
Normal file
29
node_modules/lodash/isSymbol.js
generated
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
var baseGetTag = require('./_baseGetTag'),
|
||||
isObjectLike = require('./isObjectLike');
|
||||
|
||||
/** `Object#toString` result references. */
|
||||
var symbolTag = '[object Symbol]';
|
||||
|
||||
/**
|
||||
* Checks if `value` is classified as a `Symbol` primitive or object.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @since 4.0.0
|
||||
* @category Lang
|
||||
* @param {*} value The value to check.
|
||||
* @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
|
||||
* @example
|
||||
*
|
||||
* _.isSymbol(Symbol.iterator);
|
||||
* // => true
|
||||
*
|
||||
* _.isSymbol('abc');
|
||||
* // => false
|
||||
*/
|
||||
function isSymbol(value) {
|
||||
return typeof value == 'symbol' ||
|
||||
(isObjectLike(value) && baseGetTag(value) == symbolTag);
|
||||
}
|
||||
|
||||
module.exports = isSymbol;
|
||||
26
node_modules/lodash/join.js
generated
vendored
Normal file
26
node_modules/lodash/join.js
generated
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
/** Used for built-in method references. */
|
||||
var arrayProto = Array.prototype;
|
||||
|
||||
/* Built-in method references for those with the same name as other `lodash` methods. */
|
||||
var nativeJoin = arrayProto.join;
|
||||
|
||||
/**
|
||||
* Converts all elements in `array` into a string separated by `separator`.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @since 4.0.0
|
||||
* @category Array
|
||||
* @param {Array} array The array to convert.
|
||||
* @param {string} [separator=','] The element separator.
|
||||
* @returns {string} Returns the joined string.
|
||||
* @example
|
||||
*
|
||||
* _.join(['a', 'b', 'c'], '~');
|
||||
* // => 'a~b~c'
|
||||
*/
|
||||
function join(array, separator) {
|
||||
return array == null ? '' : nativeJoin.call(array, separator);
|
||||
}
|
||||
|
||||
module.exports = join;
|
||||
46
node_modules/lodash/lastIndexOf.js
generated
vendored
Normal file
46
node_modules/lodash/lastIndexOf.js
generated
vendored
Normal file
@@ -0,0 +1,46 @@
|
||||
var baseFindIndex = require('./_baseFindIndex'),
|
||||
baseIsNaN = require('./_baseIsNaN'),
|
||||
strictLastIndexOf = require('./_strictLastIndexOf'),
|
||||
toInteger = require('./toInteger');
|
||||
|
||||
/* Built-in method references for those with the same name as other `lodash` methods. */
|
||||
var nativeMax = Math.max,
|
||||
nativeMin = Math.min;
|
||||
|
||||
/**
|
||||
* This method is like `_.indexOf` except that it iterates over elements of
|
||||
* `array` from right to left.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @since 0.1.0
|
||||
* @category Array
|
||||
* @param {Array} array The array to inspect.
|
||||
* @param {*} value The value to search for.
|
||||
* @param {number} [fromIndex=array.length-1] The index to search from.
|
||||
* @returns {number} Returns the index of the matched value, else `-1`.
|
||||
* @example
|
||||
*
|
||||
* _.lastIndexOf([1, 2, 1, 2], 2);
|
||||
* // => 3
|
||||
*
|
||||
* // Search from the `fromIndex`.
|
||||
* _.lastIndexOf([1, 2, 1, 2], 2, 2);
|
||||
* // => 1
|
||||
*/
|
||||
function lastIndexOf(array, value, fromIndex) {
|
||||
var length = array == null ? 0 : array.length;
|
||||
if (!length) {
|
||||
return -1;
|
||||
}
|
||||
var index = length;
|
||||
if (fromIndex !== undefined) {
|
||||
index = toInteger(fromIndex);
|
||||
index = index < 0 ? nativeMax(length + index, 0) : nativeMin(index, length - 1);
|
||||
}
|
||||
return value === value
|
||||
? strictLastIndexOf(array, value, index)
|
||||
: baseFindIndex(array, baseIsNaN, index, true);
|
||||
}
|
||||
|
||||
module.exports = lastIndexOf;
|
||||
30
node_modules/lodash/lte.js
generated
vendored
Normal file
30
node_modules/lodash/lte.js
generated
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
var createRelationalOperation = require('./_createRelationalOperation');
|
||||
|
||||
/**
|
||||
* Checks if `value` is less than or equal to `other`.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @since 3.9.0
|
||||
* @category Lang
|
||||
* @param {*} value The value to compare.
|
||||
* @param {*} other The other value to compare.
|
||||
* @returns {boolean} Returns `true` if `value` is less than or equal to
|
||||
* `other`, else `false`.
|
||||
* @see _.gte
|
||||
* @example
|
||||
*
|
||||
* _.lte(1, 3);
|
||||
* // => true
|
||||
*
|
||||
* _.lte(3, 3);
|
||||
* // => true
|
||||
*
|
||||
* _.lte(3, 1);
|
||||
* // => false
|
||||
*/
|
||||
var lte = createRelationalOperation(function(value, other) {
|
||||
return value <= other;
|
||||
});
|
||||
|
||||
module.exports = lte;
|
||||
36
node_modules/lodash/mapKeys.js
generated
vendored
Normal file
36
node_modules/lodash/mapKeys.js
generated
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
var baseAssignValue = require('./_baseAssignValue'),
|
||||
baseForOwn = require('./_baseForOwn'),
|
||||
baseIteratee = require('./_baseIteratee');
|
||||
|
||||
/**
|
||||
* The opposite of `_.mapValues`; this method creates an object with the
|
||||
* same values as `object` and keys generated by running each own enumerable
|
||||
* string keyed property of `object` thru `iteratee`. The iteratee is invoked
|
||||
* with three arguments: (value, key, object).
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @since 3.8.0
|
||||
* @category Object
|
||||
* @param {Object} object The object to iterate over.
|
||||
* @param {Function} [iteratee=_.identity] The function invoked per iteration.
|
||||
* @returns {Object} Returns the new mapped object.
|
||||
* @see _.mapValues
|
||||
* @example
|
||||
*
|
||||
* _.mapKeys({ 'a': 1, 'b': 2 }, function(value, key) {
|
||||
* return key + value;
|
||||
* });
|
||||
* // => { 'a1': 1, 'b2': 2 }
|
||||
*/
|
||||
function mapKeys(object, iteratee) {
|
||||
var result = {};
|
||||
iteratee = baseIteratee(iteratee, 3);
|
||||
|
||||
baseForOwn(object, function(value, key, object) {
|
||||
baseAssignValue(result, iteratee(value, key, object), value);
|
||||
});
|
||||
return result;
|
||||
}
|
||||
|
||||
module.exports = mapKeys;
|
||||
39
node_modules/lodash/mergeWith.js
generated
vendored
Normal file
39
node_modules/lodash/mergeWith.js
generated
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
var baseMerge = require('./_baseMerge'),
|
||||
createAssigner = require('./_createAssigner');
|
||||
|
||||
/**
|
||||
* This method is like `_.merge` except that it accepts `customizer` which
|
||||
* is invoked to produce the merged values of the destination and source
|
||||
* properties. If `customizer` returns `undefined`, merging is handled by the
|
||||
* method instead. The `customizer` is invoked with six arguments:
|
||||
* (objValue, srcValue, key, object, source, stack).
|
||||
*
|
||||
* **Note:** This method mutates `object`.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @since 4.0.0
|
||||
* @category Object
|
||||
* @param {Object} object The destination object.
|
||||
* @param {...Object} sources The source objects.
|
||||
* @param {Function} customizer The function to customize assigned values.
|
||||
* @returns {Object} Returns `object`.
|
||||
* @example
|
||||
*
|
||||
* function customizer(objValue, srcValue) {
|
||||
* if (_.isArray(objValue)) {
|
||||
* return objValue.concat(srcValue);
|
||||
* }
|
||||
* }
|
||||
*
|
||||
* var object = { 'a': [1], 'b': [2] };
|
||||
* var other = { 'a': [3], 'b': [4] };
|
||||
*
|
||||
* _.mergeWith(object, other, customizer);
|
||||
* // => { 'a': [1, 3], 'b': [2, 4] }
|
||||
*/
|
||||
var mergeWith = createAssigner(function(object, source, srcIndex, customizer) {
|
||||
baseMerge(object, source, srcIndex, customizer);
|
||||
});
|
||||
|
||||
module.exports = mergeWith;
|
||||
35
node_modules/lodash/next.js
generated
vendored
Normal file
35
node_modules/lodash/next.js
generated
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
var toArray = require('./toArray');
|
||||
|
||||
/**
|
||||
* Gets the next value on a wrapped object following the
|
||||
* [iterator protocol](https://mdn.io/iteration_protocols#iterator).
|
||||
*
|
||||
* @name next
|
||||
* @memberOf _
|
||||
* @since 4.0.0
|
||||
* @category Seq
|
||||
* @returns {Object} Returns the next iterator value.
|
||||
* @example
|
||||
*
|
||||
* var wrapped = _([1, 2]);
|
||||
*
|
||||
* wrapped.next();
|
||||
* // => { 'done': false, 'value': 1 }
|
||||
*
|
||||
* wrapped.next();
|
||||
* // => { 'done': false, 'value': 2 }
|
||||
*
|
||||
* wrapped.next();
|
||||
* // => { 'done': true, 'value': undefined }
|
||||
*/
|
||||
function wrapperNext() {
|
||||
if (this.__values__ === undefined) {
|
||||
this.__values__ = toArray(this.value());
|
||||
}
|
||||
var done = this.__index__ >= this.__values__.length,
|
||||
value = done ? undefined : this.__values__[this.__index__++];
|
||||
|
||||
return { 'done': done, 'value': value };
|
||||
}
|
||||
|
||||
module.exports = wrapperNext;
|
||||
25
node_modules/lodash/once.js
generated
vendored
Normal file
25
node_modules/lodash/once.js
generated
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
var before = require('./before');
|
||||
|
||||
/**
|
||||
* Creates a function that is restricted to invoking `func` once. Repeat calls
|
||||
* to the function return the value of the first invocation. The `func` is
|
||||
* invoked with the `this` binding and arguments of the created function.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @since 0.1.0
|
||||
* @category Function
|
||||
* @param {Function} func The function to restrict.
|
||||
* @returns {Function} Returns the new restricted function.
|
||||
* @example
|
||||
*
|
||||
* var initialize = _.once(createApplication);
|
||||
* initialize();
|
||||
* initialize();
|
||||
* // => `createApplication` is invoked once
|
||||
*/
|
||||
function once(func) {
|
||||
return before(2, func);
|
||||
}
|
||||
|
||||
module.exports = once;
|
||||
37
node_modules/lodash/repeat.js
generated
vendored
Normal file
37
node_modules/lodash/repeat.js
generated
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
var baseRepeat = require('./_baseRepeat'),
|
||||
isIterateeCall = require('./_isIterateeCall'),
|
||||
toInteger = require('./toInteger'),
|
||||
toString = require('./toString');
|
||||
|
||||
/**
|
||||
* Repeats the given string `n` times.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @since 3.0.0
|
||||
* @category String
|
||||
* @param {string} [string=''] The string to repeat.
|
||||
* @param {number} [n=1] The number of times to repeat the string.
|
||||
* @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
|
||||
* @returns {string} Returns the repeated string.
|
||||
* @example
|
||||
*
|
||||
* _.repeat('*', 3);
|
||||
* // => '***'
|
||||
*
|
||||
* _.repeat('abc', 2);
|
||||
* // => 'abcabc'
|
||||
*
|
||||
* _.repeat('abc', 0);
|
||||
* // => ''
|
||||
*/
|
||||
function repeat(string, n, guard) {
|
||||
if ((guard ? isIterateeCall(string, n, guard) : n === undefined)) {
|
||||
n = 1;
|
||||
} else {
|
||||
n = toInteger(n);
|
||||
}
|
||||
return baseRepeat(toString(string), n);
|
||||
}
|
||||
|
||||
module.exports = repeat;
|
||||
31
node_modules/lodash/sortedLastIndexOf.js
generated
vendored
Normal file
31
node_modules/lodash/sortedLastIndexOf.js
generated
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
var baseSortedIndex = require('./_baseSortedIndex'),
|
||||
eq = require('./eq');
|
||||
|
||||
/**
|
||||
* This method is like `_.lastIndexOf` except that it performs a binary
|
||||
* search on a sorted `array`.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @since 4.0.0
|
||||
* @category Array
|
||||
* @param {Array} array The array to inspect.
|
||||
* @param {*} value The value to search for.
|
||||
* @returns {number} Returns the index of the matched value, else `-1`.
|
||||
* @example
|
||||
*
|
||||
* _.sortedLastIndexOf([4, 5, 5, 5, 6], 5);
|
||||
* // => 3
|
||||
*/
|
||||
function sortedLastIndexOf(array, value) {
|
||||
var length = array == null ? 0 : array.length;
|
||||
if (length) {
|
||||
var index = baseSortedIndex(array, value, true) - 1;
|
||||
if (eq(array[index], value)) {
|
||||
return index;
|
||||
}
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
module.exports = sortedLastIndexOf;
|
||||
24
node_modules/lodash/sortedUniq.js
generated
vendored
Normal file
24
node_modules/lodash/sortedUniq.js
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
var baseSortedUniq = require('./_baseSortedUniq');
|
||||
|
||||
/**
|
||||
* This method is like `_.uniq` except that it's designed and optimized
|
||||
* for sorted arrays.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @since 4.0.0
|
||||
* @category Array
|
||||
* @param {Array} array The array to inspect.
|
||||
* @returns {Array} Returns the new duplicate free array.
|
||||
* @example
|
||||
*
|
||||
* _.sortedUniq([1, 1, 2]);
|
||||
* // => [1, 2]
|
||||
*/
|
||||
function sortedUniq(array) {
|
||||
return (array && array.length)
|
||||
? baseSortedUniq(array)
|
||||
: [];
|
||||
}
|
||||
|
||||
module.exports = sortedUniq;
|
||||
23
node_modules/lodash/stubObject.js
generated
vendored
Normal file
23
node_modules/lodash/stubObject.js
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
/**
|
||||
* This method returns a new empty object.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @since 4.13.0
|
||||
* @category Util
|
||||
* @returns {Object} Returns the new empty object.
|
||||
* @example
|
||||
*
|
||||
* var objects = _.times(2, _.stubObject);
|
||||
*
|
||||
* console.log(objects);
|
||||
* // => [{}, {}]
|
||||
*
|
||||
* console.log(objects[0] === objects[1]);
|
||||
* // => false
|
||||
*/
|
||||
function stubObject() {
|
||||
return {};
|
||||
}
|
||||
|
||||
module.exports = stubObject;
|
||||
51
node_modules/lodash/times.js
generated
vendored
Normal file
51
node_modules/lodash/times.js
generated
vendored
Normal file
@@ -0,0 +1,51 @@
|
||||
var baseTimes = require('./_baseTimes'),
|
||||
castFunction = require('./_castFunction'),
|
||||
toInteger = require('./toInteger');
|
||||
|
||||
/** Used as references for various `Number` constants. */
|
||||
var MAX_SAFE_INTEGER = 9007199254740991;
|
||||
|
||||
/** Used as references for the maximum length and index of an array. */
|
||||
var MAX_ARRAY_LENGTH = 4294967295;
|
||||
|
||||
/* Built-in method references for those with the same name as other `lodash` methods. */
|
||||
var nativeMin = Math.min;
|
||||
|
||||
/**
|
||||
* Invokes the iteratee `n` times, returning an array of the results of
|
||||
* each invocation. The iteratee is invoked with one argument; (index).
|
||||
*
|
||||
* @static
|
||||
* @since 0.1.0
|
||||
* @memberOf _
|
||||
* @category Util
|
||||
* @param {number} n The number of times to invoke `iteratee`.
|
||||
* @param {Function} [iteratee=_.identity] The function invoked per iteration.
|
||||
* @returns {Array} Returns the array of results.
|
||||
* @example
|
||||
*
|
||||
* _.times(3, String);
|
||||
* // => ['0', '1', '2']
|
||||
*
|
||||
* _.times(4, _.constant(0));
|
||||
* // => [0, 0, 0, 0]
|
||||
*/
|
||||
function times(n, iteratee) {
|
||||
n = toInteger(n);
|
||||
if (n < 1 || n > MAX_SAFE_INTEGER) {
|
||||
return [];
|
||||
}
|
||||
var index = MAX_ARRAY_LENGTH,
|
||||
length = nativeMin(n, MAX_ARRAY_LENGTH);
|
||||
|
||||
iteratee = castFunction(iteratee);
|
||||
n -= MAX_ARRAY_LENGTH;
|
||||
|
||||
var result = baseTimes(length, iteratee);
|
||||
while (++index < n) {
|
||||
iteratee(index);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
module.exports = times;
|
||||
30
node_modules/lodash/toPairs.js
generated
vendored
Normal file
30
node_modules/lodash/toPairs.js
generated
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
var createToPairs = require('./_createToPairs'),
|
||||
keys = require('./keys');
|
||||
|
||||
/**
|
||||
* Creates an array of own enumerable string keyed-value pairs for `object`
|
||||
* which can be consumed by `_.fromPairs`. If `object` is a map or set, its
|
||||
* entries are returned.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @since 4.0.0
|
||||
* @alias entries
|
||||
* @category Object
|
||||
* @param {Object} object The object to query.
|
||||
* @returns {Array} Returns the key-value pairs.
|
||||
* @example
|
||||
*
|
||||
* function Foo() {
|
||||
* this.a = 1;
|
||||
* this.b = 2;
|
||||
* }
|
||||
*
|
||||
* Foo.prototype.c = 3;
|
||||
*
|
||||
* _.toPairs(new Foo);
|
||||
* // => [['a', 1], ['b', 2]] (iteration order is not guaranteed)
|
||||
*/
|
||||
var toPairs = createToPairs(keys);
|
||||
|
||||
module.exports = toPairs;
|
||||
65
node_modules/lodash/transform.js
generated
vendored
Normal file
65
node_modules/lodash/transform.js
generated
vendored
Normal file
@@ -0,0 +1,65 @@
|
||||
var arrayEach = require('./_arrayEach'),
|
||||
baseCreate = require('./_baseCreate'),
|
||||
baseForOwn = require('./_baseForOwn'),
|
||||
baseIteratee = require('./_baseIteratee'),
|
||||
getPrototype = require('./_getPrototype'),
|
||||
isArray = require('./isArray'),
|
||||
isBuffer = require('./isBuffer'),
|
||||
isFunction = require('./isFunction'),
|
||||
isObject = require('./isObject'),
|
||||
isTypedArray = require('./isTypedArray');
|
||||
|
||||
/**
|
||||
* An alternative to `_.reduce`; this method transforms `object` to a new
|
||||
* `accumulator` object which is the result of running each of its own
|
||||
* enumerable string keyed properties thru `iteratee`, with each invocation
|
||||
* potentially mutating the `accumulator` object. If `accumulator` is not
|
||||
* provided, a new object with the same `[[Prototype]]` will be used. The
|
||||
* iteratee is invoked with four arguments: (accumulator, value, key, object).
|
||||
* Iteratee functions may exit iteration early by explicitly returning `false`.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @since 1.3.0
|
||||
* @category Object
|
||||
* @param {Object} object The object to iterate over.
|
||||
* @param {Function} [iteratee=_.identity] The function invoked per iteration.
|
||||
* @param {*} [accumulator] The custom accumulator value.
|
||||
* @returns {*} Returns the accumulated value.
|
||||
* @example
|
||||
*
|
||||
* _.transform([2, 3, 4], function(result, n) {
|
||||
* result.push(n *= n);
|
||||
* return n % 2 == 0;
|
||||
* }, []);
|
||||
* // => [4, 9]
|
||||
*
|
||||
* _.transform({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {
|
||||
* (result[value] || (result[value] = [])).push(key);
|
||||
* }, {});
|
||||
* // => { '1': ['a', 'c'], '2': ['b'] }
|
||||
*/
|
||||
function transform(object, iteratee, accumulator) {
|
||||
var isArr = isArray(object),
|
||||
isArrLike = isArr || isBuffer(object) || isTypedArray(object);
|
||||
|
||||
iteratee = baseIteratee(iteratee, 4);
|
||||
if (accumulator == null) {
|
||||
var Ctor = object && object.constructor;
|
||||
if (isArrLike) {
|
||||
accumulator = isArr ? new Ctor : [];
|
||||
}
|
||||
else if (isObject(object)) {
|
||||
accumulator = isFunction(Ctor) ? baseCreate(getPrototype(object)) : {};
|
||||
}
|
||||
else {
|
||||
accumulator = {};
|
||||
}
|
||||
}
|
||||
(isArrLike ? arrayEach : baseForOwn)(object, function(value, index, object) {
|
||||
return iteratee(accumulator, value, index, object);
|
||||
});
|
||||
return accumulator;
|
||||
}
|
||||
|
||||
module.exports = transform;
|
||||
41
node_modules/lodash/trimEnd.js
generated
vendored
Normal file
41
node_modules/lodash/trimEnd.js
generated
vendored
Normal file
@@ -0,0 +1,41 @@
|
||||
var baseToString = require('./_baseToString'),
|
||||
castSlice = require('./_castSlice'),
|
||||
charsEndIndex = require('./_charsEndIndex'),
|
||||
stringToArray = require('./_stringToArray'),
|
||||
toString = require('./toString'),
|
||||
trimmedEndIndex = require('./_trimmedEndIndex');
|
||||
|
||||
/**
|
||||
* Removes trailing whitespace or specified characters from `string`.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @since 4.0.0
|
||||
* @category String
|
||||
* @param {string} [string=''] The string to trim.
|
||||
* @param {string} [chars=whitespace] The characters to trim.
|
||||
* @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
|
||||
* @returns {string} Returns the trimmed string.
|
||||
* @example
|
||||
*
|
||||
* _.trimEnd(' abc ');
|
||||
* // => ' abc'
|
||||
*
|
||||
* _.trimEnd('-_-abc-_-', '_-');
|
||||
* // => '-_-abc'
|
||||
*/
|
||||
function trimEnd(string, chars, guard) {
|
||||
string = toString(string);
|
||||
if (string && (guard || chars === undefined)) {
|
||||
return string.slice(0, trimmedEndIndex(string) + 1);
|
||||
}
|
||||
if (!string || !(chars = baseToString(chars))) {
|
||||
return string;
|
||||
}
|
||||
var strSymbols = stringToArray(string),
|
||||
end = charsEndIndex(strSymbols, stringToArray(chars)) + 1;
|
||||
|
||||
return castSlice(strSymbols, 0, end).join('');
|
||||
}
|
||||
|
||||
module.exports = trimEnd;
|
||||
34
node_modules/lodash/unset.js
generated
vendored
Normal file
34
node_modules/lodash/unset.js
generated
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
var baseUnset = require('./_baseUnset');
|
||||
|
||||
/**
|
||||
* Removes the property at `path` of `object`.
|
||||
*
|
||||
* **Note:** This method mutates `object`.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @since 4.0.0
|
||||
* @category Object
|
||||
* @param {Object} object The object to modify.
|
||||
* @param {Array|string} path The path of the property to unset.
|
||||
* @returns {boolean} Returns `true` if the property is deleted, else `false`.
|
||||
* @example
|
||||
*
|
||||
* var object = { 'a': [{ 'b': { 'c': 7 } }] };
|
||||
* _.unset(object, 'a[0].b.c');
|
||||
* // => true
|
||||
*
|
||||
* console.log(object);
|
||||
* // => { 'a': [{ 'b': {} }] };
|
||||
*
|
||||
* _.unset(object, ['a', '0', 'b', 'c']);
|
||||
* // => true
|
||||
*
|
||||
* console.log(object);
|
||||
* // => { 'a': [{ 'b': {} }] };
|
||||
*/
|
||||
function unset(object, path) {
|
||||
return object == null ? true : baseUnset(object, path);
|
||||
}
|
||||
|
||||
module.exports = unset;
|
||||
21
node_modules/lodash/wrapperValue.js
generated
vendored
Normal file
21
node_modules/lodash/wrapperValue.js
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
var baseWrapperValue = require('./_baseWrapperValue');
|
||||
|
||||
/**
|
||||
* Executes the chain sequence to resolve the unwrapped value.
|
||||
*
|
||||
* @name value
|
||||
* @memberOf _
|
||||
* @since 0.1.0
|
||||
* @alias toJSON, valueOf
|
||||
* @category Seq
|
||||
* @returns {*} Returns the resolved unwrapped value.
|
||||
* @example
|
||||
*
|
||||
* _([1, 2, 3]).value();
|
||||
* // => [1, 2, 3]
|
||||
*/
|
||||
function wrapperValue() {
|
||||
return baseWrapperValue(this.__wrapped__, this.__actions__);
|
||||
}
|
||||
|
||||
module.exports = wrapperValue;
|
||||
Reference in New Issue
Block a user