mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 10:07:48 +00:00
Bump to v4.0.6.
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
# lodash v4.0.5
|
# lodash v4.0.6
|
||||||
|
|
||||||
The [lodash](https://lodash.com/) library exported as [npm packages](https://www.npmjs.com/browse/keyword/lodash-modularized) per method.
|
The [lodash](https://lodash.com/) library exported as [npm packages](https://www.npmjs.com/browse/keyword/lodash-modularized) per method.
|
||||||
|
|
||||||
|
|||||||
@@ -1,47 +0,0 @@
|
|||||||
Copyright jQuery Foundation and other contributors <https://jquery.org/>
|
|
||||||
|
|
||||||
Based on Underscore.js, copyright Jeremy Ashkenas,
|
|
||||||
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
|
|
||||||
|
|
||||||
This software consists of voluntary contributions made by many
|
|
||||||
individuals. For exact contribution history, see the revision history
|
|
||||||
available at https://github.com/lodash/lodash
|
|
||||||
|
|
||||||
The following license applies to all parts of this software except as
|
|
||||||
documented below:
|
|
||||||
|
|
||||||
====
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining
|
|
||||||
a copy of this software and associated documentation files (the
|
|
||||||
"Software"), to deal in the Software without restriction, including
|
|
||||||
without limitation the rights to use, copy, modify, merge, publish,
|
|
||||||
distribute, sublicense, and/or sell copies of the Software, and to
|
|
||||||
permit persons to whom the Software is furnished to do so, subject to
|
|
||||||
the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be
|
|
||||||
included in all copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
||||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
||||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
||||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
||||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
||||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
||||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
||||||
|
|
||||||
====
|
|
||||||
|
|
||||||
Copyright and related rights for sample code are waived via CC0. Sample
|
|
||||||
code is defined as all source code displayed within the prose of the
|
|
||||||
documentation.
|
|
||||||
|
|
||||||
CC0: http://creativecommons.org/publicdomain/zero/1.0/
|
|
||||||
|
|
||||||
====
|
|
||||||
|
|
||||||
Files located in the node_modules and vendor directories are externally
|
|
||||||
maintained libraries used by this software which have their own
|
|
||||||
licenses; we recommend you read them, as their terms may differ from the
|
|
||||||
terms above.
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
# lodash._createwrapper v4.0.5
|
|
||||||
|
|
||||||
The internal [lodash](https://lodash.com/) function `createWrapper` exported as a [Node.js](https://nodejs.org/) module.
|
|
||||||
|
|
||||||
## Installation
|
|
||||||
|
|
||||||
Using npm:
|
|
||||||
```bash
|
|
||||||
$ {sudo -H} npm i -g npm
|
|
||||||
$ npm i --save lodash._createwrapper
|
|
||||||
```
|
|
||||||
|
|
||||||
In Node.js:
|
|
||||||
```js
|
|
||||||
var createWrapper = require('lodash._createwrapper');
|
|
||||||
```
|
|
||||||
|
|
||||||
See the [package source](https://github.com/lodash/lodash/blob/4.0.5-npm-packages/lodash._createwrapper) for more details.
|
|
||||||
@@ -1,875 +0,0 @@
|
|||||||
/**
|
|
||||||
* lodash (Custom Build) <https://lodash.com/>
|
|
||||||
* Build: `lodash modularize exports="npm" -o ./`
|
|
||||||
* Copyright jQuery Foundation and other contributors <https://jquery.org/>
|
|
||||||
* Released under MIT license <https://lodash.com/license>
|
|
||||||
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
||||||
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
||||||
*/
|
|
||||||
|
|
||||||
/** Used as the `TypeError` message for "Functions" methods. */
|
|
||||||
var FUNC_ERROR_TEXT = 'Expected a function';
|
|
||||||
|
|
||||||
/** Used as the internal argument placeholder. */
|
|
||||||
var PLACEHOLDER = '__lodash_placeholder__';
|
|
||||||
|
|
||||||
/** Used to compose bitmasks for wrapper metadata. */
|
|
||||||
var BIND_FLAG = 1,
|
|
||||||
BIND_KEY_FLAG = 2,
|
|
||||||
CURRY_BOUND_FLAG = 4,
|
|
||||||
CURRY_FLAG = 8,
|
|
||||||
CURRY_RIGHT_FLAG = 16,
|
|
||||||
PARTIAL_FLAG = 32,
|
|
||||||
PARTIAL_RIGHT_FLAG = 64,
|
|
||||||
ARY_FLAG = 128,
|
|
||||||
FLIP_FLAG = 512;
|
|
||||||
|
|
||||||
/** Used as references for various `Number` constants. */
|
|
||||||
var INFINITY = 1 / 0,
|
|
||||||
MAX_SAFE_INTEGER = 9007199254740991,
|
|
||||||
MAX_INTEGER = 1.7976931348623157e+308,
|
|
||||||
NAN = 0 / 0;
|
|
||||||
|
|
||||||
/** `Object#toString` result references. */
|
|
||||||
var funcTag = '[object Function]',
|
|
||||||
genTag = '[object GeneratorFunction]',
|
|
||||||
symbolTag = '[object Symbol]';
|
|
||||||
|
|
||||||
/** Used to match leading and trailing whitespace. */
|
|
||||||
var reTrim = /^\s+|\s+$/g;
|
|
||||||
|
|
||||||
/** Used to detect bad signed hexadecimal string values. */
|
|
||||||
var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
|
|
||||||
|
|
||||||
/** Used to detect binary string values. */
|
|
||||||
var reIsBinary = /^0b[01]+$/i;
|
|
||||||
|
|
||||||
/** Used to detect octal string values. */
|
|
||||||
var reIsOctal = /^0o[0-7]+$/i;
|
|
||||||
|
|
||||||
/** Used to detect unsigned integer values. */
|
|
||||||
var reIsUint = /^(?:0|[1-9]\d*)$/;
|
|
||||||
|
|
||||||
/** Used to determine if values are of the language type `Object`. */
|
|
||||||
var objectTypes = {
|
|
||||||
'function': true,
|
|
||||||
'object': true
|
|
||||||
};
|
|
||||||
|
|
||||||
/** Built-in method references without a dependency on `root`. */
|
|
||||||
var freeParseInt = parseInt;
|
|
||||||
|
|
||||||
/** Detect free variable `exports`. */
|
|
||||||
var freeExports = (objectTypes[typeof exports] && exports && !exports.nodeType)
|
|
||||||
? exports
|
|
||||||
: undefined;
|
|
||||||
|
|
||||||
/** Detect free variable `module`. */
|
|
||||||
var freeModule = (objectTypes[typeof module] && module && !module.nodeType)
|
|
||||||
? module
|
|
||||||
: undefined;
|
|
||||||
|
|
||||||
/** Detect free variable `global` from Node.js. */
|
|
||||||
var freeGlobal = checkGlobal(freeExports && freeModule && typeof global == 'object' && global);
|
|
||||||
|
|
||||||
/** Detect free variable `self`. */
|
|
||||||
var freeSelf = checkGlobal(objectTypes[typeof self] && self);
|
|
||||||
|
|
||||||
/** Detect free variable `window`. */
|
|
||||||
var freeWindow = checkGlobal(objectTypes[typeof window] && window);
|
|
||||||
|
|
||||||
/** Detect `this` as the global object. */
|
|
||||||
var thisGlobal = checkGlobal(objectTypes[typeof this] && this);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Used as a reference to the global object.
|
|
||||||
*
|
|
||||||
* The `this` value is used if it's the global object to avoid Greasemonkey's
|
|
||||||
* restricted `window` object, otherwise the `window` object is used.
|
|
||||||
*/
|
|
||||||
var root = freeGlobal ||
|
|
||||||
((freeWindow !== (thisGlobal && thisGlobal.window)) && freeWindow) ||
|
|
||||||
freeSelf || thisGlobal || Function('return this')();
|
|
||||||
|
|
||||||
/**
|
|
||||||
* A faster alternative to `Function#apply`, this function invokes `func`
|
|
||||||
* with the `this` binding of `thisArg` and the arguments of `args`.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @param {Function} func The function to invoke.
|
|
||||||
* @param {*} thisArg The `this` binding of `func`.
|
|
||||||
* @param {Array} args The arguments to invoke `func` with.
|
|
||||||
* @returns {*} Returns the result of `func`.
|
|
||||||
*/
|
|
||||||
function apply(func, thisArg, args) {
|
|
||||||
var length = args.length;
|
|
||||||
switch (length) {
|
|
||||||
case 0: return func.call(thisArg);
|
|
||||||
case 1: return func.call(thisArg, args[0]);
|
|
||||||
case 2: return func.call(thisArg, args[0], args[1]);
|
|
||||||
case 3: return func.call(thisArg, args[0], args[1], args[2]);
|
|
||||||
}
|
|
||||||
return func.apply(thisArg, args);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Checks if `value` is a global object.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @param {*} value The value to check.
|
|
||||||
* @returns {null|Object} Returns `value` if it's a global object, else `null`.
|
|
||||||
*/
|
|
||||||
function checkGlobal(value) {
|
|
||||||
return (value && value.Object === Object) ? value : null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets the number of `placeholder` occurrences in `array`.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @param {Array} array The array to inspect.
|
|
||||||
* @param {*} placeholder The placeholder to search for.
|
|
||||||
* @returns {number} Returns the placeholder count.
|
|
||||||
*/
|
|
||||||
function countHolders(array, placeholder) {
|
|
||||||
var length = array.length,
|
|
||||||
result = 0;
|
|
||||||
|
|
||||||
while (length--) {
|
|
||||||
if (array[length] === placeholder) {
|
|
||||||
result++;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Replaces all `placeholder` elements in `array` with an internal placeholder
|
|
||||||
* and returns an array of their indexes.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @param {Array} array The array to modify.
|
|
||||||
* @param {*} placeholder The placeholder to replace.
|
|
||||||
* @returns {Array} Returns the new array of placeholder indexes.
|
|
||||||
*/
|
|
||||||
function replaceHolders(array, placeholder) {
|
|
||||||
var index = -1,
|
|
||||||
length = array.length,
|
|
||||||
resIndex = 0,
|
|
||||||
result = [];
|
|
||||||
|
|
||||||
while (++index < length) {
|
|
||||||
var value = array[index];
|
|
||||||
if (value === placeholder || value === PLACEHOLDER) {
|
|
||||||
array[index] = PLACEHOLDER;
|
|
||||||
result[resIndex++] = index;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Used for built-in method references. */
|
|
||||||
var objectProto = Object.prototype;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Used to resolve the
|
|
||||||
* [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
|
|
||||||
* of values.
|
|
||||||
*/
|
|
||||||
var objectToString = objectProto.toString;
|
|
||||||
|
|
||||||
/** Built-in value references. */
|
|
||||||
var objectCreate = Object.create;
|
|
||||||
|
|
||||||
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
||||||
var nativeMax = Math.max,
|
|
||||||
nativeMin = Math.min;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The base implementation of `_.create` without support for assigning
|
|
||||||
* properties to the created object.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @param {Object} prototype The object to inherit from.
|
|
||||||
* @returns {Object} Returns the new object.
|
|
||||||
*/
|
|
||||||
function baseCreate(proto) {
|
|
||||||
return isObject(proto) ? objectCreate(proto) : {};
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Creates an array that is the composition of partially applied arguments,
|
|
||||||
* placeholders, and provided arguments into a single array of arguments.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @param {Array} args The provided arguments.
|
|
||||||
* @param {Array} partials The arguments to prepend to those provided.
|
|
||||||
* @param {Array} holders The `partials` placeholder indexes.
|
|
||||||
* @params {boolean} [isCurried] Specify composing for a curried function.
|
|
||||||
* @returns {Array} Returns the new array of composed arguments.
|
|
||||||
*/
|
|
||||||
function composeArgs(args, partials, holders, isCurried) {
|
|
||||||
var argsIndex = -1,
|
|
||||||
argsLength = args.length,
|
|
||||||
holdersLength = holders.length,
|
|
||||||
leftIndex = -1,
|
|
||||||
leftLength = partials.length,
|
|
||||||
rangeLength = nativeMax(argsLength - holdersLength, 0),
|
|
||||||
result = Array(leftLength + rangeLength),
|
|
||||||
isUncurried = !isCurried;
|
|
||||||
|
|
||||||
while (++leftIndex < leftLength) {
|
|
||||||
result[leftIndex] = partials[leftIndex];
|
|
||||||
}
|
|
||||||
while (++argsIndex < holdersLength) {
|
|
||||||
if (isUncurried || argsIndex < argsLength) {
|
|
||||||
result[holders[argsIndex]] = args[argsIndex];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
while (rangeLength--) {
|
|
||||||
result[leftIndex++] = args[argsIndex++];
|
|
||||||
}
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This function is like `composeArgs` except that the arguments composition
|
|
||||||
* is tailored for `_.partialRight`.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @param {Array} args The provided arguments.
|
|
||||||
* @param {Array} partials The arguments to append to those provided.
|
|
||||||
* @param {Array} holders The `partials` placeholder indexes.
|
|
||||||
* @params {boolean} [isCurried] Specify composing for a curried function.
|
|
||||||
* @returns {Array} Returns the new array of composed arguments.
|
|
||||||
*/
|
|
||||||
function composeArgsRight(args, partials, holders, isCurried) {
|
|
||||||
var argsIndex = -1,
|
|
||||||
argsLength = args.length,
|
|
||||||
holdersIndex = -1,
|
|
||||||
holdersLength = holders.length,
|
|
||||||
rightIndex = -1,
|
|
||||||
rightLength = partials.length,
|
|
||||||
rangeLength = nativeMax(argsLength - holdersLength, 0),
|
|
||||||
result = Array(rangeLength + rightLength),
|
|
||||||
isUncurried = !isCurried;
|
|
||||||
|
|
||||||
while (++argsIndex < rangeLength) {
|
|
||||||
result[argsIndex] = args[argsIndex];
|
|
||||||
}
|
|
||||||
var offset = argsIndex;
|
|
||||||
while (++rightIndex < rightLength) {
|
|
||||||
result[offset + rightIndex] = partials[rightIndex];
|
|
||||||
}
|
|
||||||
while (++holdersIndex < holdersLength) {
|
|
||||||
if (isUncurried || argsIndex < argsLength) {
|
|
||||||
result[offset + holders[holdersIndex]] = args[argsIndex++];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Copies the values of `source` to `array`.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @param {Array} source The array to copy values from.
|
|
||||||
* @param {Array} [array=[]] The array to copy values to.
|
|
||||||
* @returns {Array} Returns `array`.
|
|
||||||
*/
|
|
||||||
function copyArray(source, array) {
|
|
||||||
var index = -1,
|
|
||||||
length = source.length;
|
|
||||||
|
|
||||||
array || (array = Array(length));
|
|
||||||
while (++index < length) {
|
|
||||||
array[index] = source[index];
|
|
||||||
}
|
|
||||||
return array;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Creates a function that wraps `func` to invoke it with the optional `this`
|
|
||||||
* binding of `thisArg`.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @param {Function} func The function to wrap.
|
|
||||||
* @param {number} bitmask The bitmask of wrapper flags. See `createWrapper`
|
|
||||||
* for more details.
|
|
||||||
* @param {*} [thisArg] The `this` binding of `func`.
|
|
||||||
* @returns {Function} Returns the new wrapped function.
|
|
||||||
*/
|
|
||||||
function createBaseWrapper(func, bitmask, thisArg) {
|
|
||||||
var isBind = bitmask & BIND_FLAG,
|
|
||||||
Ctor = createCtorWrapper(func);
|
|
||||||
|
|
||||||
function wrapper() {
|
|
||||||
var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;
|
|
||||||
return fn.apply(isBind ? thisArg : this, arguments);
|
|
||||||
}
|
|
||||||
return wrapper;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Creates a function that produces an instance of `Ctor` regardless of
|
|
||||||
* whether it was invoked as part of a `new` expression or by `call` or `apply`.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @param {Function} Ctor The constructor to wrap.
|
|
||||||
* @returns {Function} Returns the new wrapped function.
|
|
||||||
*/
|
|
||||||
function createCtorWrapper(Ctor) {
|
|
||||||
return function() {
|
|
||||||
// Use a `switch` statement to work with class constructors. See
|
|
||||||
// http://ecma-international.org/ecma-262/6.0/#sec-ecmascript-function-objects-call-thisargument-argumentslist
|
|
||||||
// for more details.
|
|
||||||
var args = arguments;
|
|
||||||
switch (args.length) {
|
|
||||||
case 0: return new Ctor;
|
|
||||||
case 1: return new Ctor(args[0]);
|
|
||||||
case 2: return new Ctor(args[0], args[1]);
|
|
||||||
case 3: return new Ctor(args[0], args[1], args[2]);
|
|
||||||
case 4: return new Ctor(args[0], args[1], args[2], args[3]);
|
|
||||||
case 5: return new Ctor(args[0], args[1], args[2], args[3], args[4]);
|
|
||||||
case 6: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5]);
|
|
||||||
case 7: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5], args[6]);
|
|
||||||
}
|
|
||||||
var thisBinding = baseCreate(Ctor.prototype),
|
|
||||||
result = Ctor.apply(thisBinding, args);
|
|
||||||
|
|
||||||
// Mimic the constructor's `return` behavior.
|
|
||||||
// See https://es5.github.io/#x13.2.2 for more details.
|
|
||||||
return isObject(result) ? result : thisBinding;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Creates a function that wraps `func` to enable currying.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @param {Function} func The function to wrap.
|
|
||||||
* @param {number} bitmask The bitmask of wrapper flags. See `createWrapper`
|
|
||||||
* for more details.
|
|
||||||
* @param {number} arity The arity of `func`.
|
|
||||||
* @returns {Function} Returns the new wrapped function.
|
|
||||||
*/
|
|
||||||
function createCurryWrapper(func, bitmask, arity) {
|
|
||||||
var Ctor = createCtorWrapper(func);
|
|
||||||
|
|
||||||
function wrapper() {
|
|
||||||
var length = arguments.length,
|
|
||||||
args = Array(length),
|
|
||||||
index = length,
|
|
||||||
placeholder = getHolder(wrapper);
|
|
||||||
|
|
||||||
while (index--) {
|
|
||||||
args[index] = arguments[index];
|
|
||||||
}
|
|
||||||
var holders = (length < 3 && args[0] !== placeholder && args[length - 1] !== placeholder)
|
|
||||||
? []
|
|
||||||
: replaceHolders(args, placeholder);
|
|
||||||
|
|
||||||
length -= holders.length;
|
|
||||||
if (length < arity) {
|
|
||||||
return createRecurryWrapper(
|
|
||||||
func, bitmask, createHybridWrapper, wrapper.placeholder, undefined,
|
|
||||||
args, holders, undefined, undefined, arity - length);
|
|
||||||
}
|
|
||||||
var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;
|
|
||||||
return apply(fn, this, args);
|
|
||||||
}
|
|
||||||
return wrapper;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Creates a function that wraps `func` to invoke it with optional `this`
|
|
||||||
* binding of `thisArg`, partial application, and currying.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @param {Function|string} func The function or method name to wrap.
|
|
||||||
* @param {number} bitmask The bitmask of wrapper flags. See `createWrapper`
|
|
||||||
* for more details.
|
|
||||||
* @param {*} [thisArg] The `this` binding of `func`.
|
|
||||||
* @param {Array} [partials] The arguments to prepend to those provided to
|
|
||||||
* the new function.
|
|
||||||
* @param {Array} [holders] The `partials` placeholder indexes.
|
|
||||||
* @param {Array} [partialsRight] The arguments to append to those provided
|
|
||||||
* to the new function.
|
|
||||||
* @param {Array} [holdersRight] The `partialsRight` placeholder indexes.
|
|
||||||
* @param {Array} [argPos] The argument positions of the new function.
|
|
||||||
* @param {number} [ary] The arity cap of `func`.
|
|
||||||
* @param {number} [arity] The arity of `func`.
|
|
||||||
* @returns {Function} Returns the new wrapped function.
|
|
||||||
*/
|
|
||||||
function createHybridWrapper(func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, ary, arity) {
|
|
||||||
var isAry = bitmask & ARY_FLAG,
|
|
||||||
isBind = bitmask & BIND_FLAG,
|
|
||||||
isBindKey = bitmask & BIND_KEY_FLAG,
|
|
||||||
isCurried = bitmask & (CURRY_FLAG | CURRY_RIGHT_FLAG),
|
|
||||||
isFlip = bitmask & FLIP_FLAG,
|
|
||||||
Ctor = isBindKey ? undefined : createCtorWrapper(func);
|
|
||||||
|
|
||||||
function wrapper() {
|
|
||||||
var length = arguments.length,
|
|
||||||
args = Array(length),
|
|
||||||
index = length;
|
|
||||||
|
|
||||||
while (index--) {
|
|
||||||
args[index] = arguments[index];
|
|
||||||
}
|
|
||||||
if (isCurried) {
|
|
||||||
var placeholder = getHolder(wrapper),
|
|
||||||
holdersCount = countHolders(args, placeholder);
|
|
||||||
}
|
|
||||||
if (partials) {
|
|
||||||
args = composeArgs(args, partials, holders, isCurried);
|
|
||||||
}
|
|
||||||
if (partialsRight) {
|
|
||||||
args = composeArgsRight(args, partialsRight, holdersRight, isCurried);
|
|
||||||
}
|
|
||||||
length -= holdersCount;
|
|
||||||
if (isCurried && length < arity) {
|
|
||||||
var newHolders = replaceHolders(args, placeholder);
|
|
||||||
return createRecurryWrapper(
|
|
||||||
func, bitmask, createHybridWrapper, wrapper.placeholder, thisArg,
|
|
||||||
args, newHolders, argPos, ary, arity - length
|
|
||||||
);
|
|
||||||
}
|
|
||||||
var thisBinding = isBind ? thisArg : this,
|
|
||||||
fn = isBindKey ? thisBinding[func] : func;
|
|
||||||
|
|
||||||
length = args.length;
|
|
||||||
if (argPos) {
|
|
||||||
args = reorder(args, argPos);
|
|
||||||
} else if (isFlip && length > 1) {
|
|
||||||
args.reverse();
|
|
||||||
}
|
|
||||||
if (isAry && ary < length) {
|
|
||||||
args.length = ary;
|
|
||||||
}
|
|
||||||
if (this && this !== root && this instanceof wrapper) {
|
|
||||||
fn = Ctor || createCtorWrapper(fn);
|
|
||||||
}
|
|
||||||
return fn.apply(thisBinding, args);
|
|
||||||
}
|
|
||||||
return wrapper;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Creates a function that wraps `func` to invoke it with the `this` binding
|
|
||||||
* of `thisArg` and `partials` prepended to the arguments it receives.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @param {Function} func The function to wrap.
|
|
||||||
* @param {number} bitmask The bitmask of wrapper flags. See `createWrapper`
|
|
||||||
* for more details.
|
|
||||||
* @param {*} thisArg The `this` binding of `func`.
|
|
||||||
* @param {Array} partials The arguments to prepend to those provided to
|
|
||||||
* the new function.
|
|
||||||
* @returns {Function} Returns the new wrapped function.
|
|
||||||
*/
|
|
||||||
function createPartialWrapper(func, bitmask, thisArg, partials) {
|
|
||||||
var isBind = bitmask & BIND_FLAG,
|
|
||||||
Ctor = createCtorWrapper(func);
|
|
||||||
|
|
||||||
function wrapper() {
|
|
||||||
var argsIndex = -1,
|
|
||||||
argsLength = arguments.length,
|
|
||||||
leftIndex = -1,
|
|
||||||
leftLength = partials.length,
|
|
||||||
args = Array(leftLength + argsLength),
|
|
||||||
fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;
|
|
||||||
|
|
||||||
while (++leftIndex < leftLength) {
|
|
||||||
args[leftIndex] = partials[leftIndex];
|
|
||||||
}
|
|
||||||
while (argsLength--) {
|
|
||||||
args[leftIndex++] = arguments[++argsIndex];
|
|
||||||
}
|
|
||||||
return apply(fn, isBind ? thisArg : this, args);
|
|
||||||
}
|
|
||||||
return wrapper;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Creates a function that wraps `func` to continue currying.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @param {Function} func The function to wrap.
|
|
||||||
* @param {number} bitmask The bitmask of wrapper flags. See `createWrapper`
|
|
||||||
* for more details.
|
|
||||||
* @param {Function} wrapFunc The function to create the `func` wrapper.
|
|
||||||
* @param {*} placeholder The placeholder value.
|
|
||||||
* @param {*} [thisArg] The `this` binding of `func`.
|
|
||||||
* @param {Array} [partials] The arguments to prepend to those provided to
|
|
||||||
* the new function.
|
|
||||||
* @param {Array} [holders] The `partials` placeholder indexes.
|
|
||||||
* @param {Array} [argPos] The argument positions of the new function.
|
|
||||||
* @param {number} [ary] The arity cap of `func`.
|
|
||||||
* @param {number} [arity] The arity of `func`.
|
|
||||||
* @returns {Function} Returns the new wrapped function.
|
|
||||||
*/
|
|
||||||
function createRecurryWrapper(func, bitmask, wrapFunc, placeholder, thisArg, partials, holders, argPos, ary, arity) {
|
|
||||||
var isCurry = bitmask & CURRY_FLAG,
|
|
||||||
newHolders = isCurry ? holders : undefined,
|
|
||||||
newHoldersRight = isCurry ? undefined : holders,
|
|
||||||
newPartials = isCurry ? partials : undefined,
|
|
||||||
newPartialsRight = isCurry ? undefined : partials;
|
|
||||||
|
|
||||||
bitmask |= (isCurry ? PARTIAL_FLAG : PARTIAL_RIGHT_FLAG);
|
|
||||||
bitmask &= ~(isCurry ? PARTIAL_RIGHT_FLAG : PARTIAL_FLAG);
|
|
||||||
|
|
||||||
if (!(bitmask & CURRY_BOUND_FLAG)) {
|
|
||||||
bitmask &= ~(BIND_FLAG | BIND_KEY_FLAG);
|
|
||||||
}
|
|
||||||
|
|
||||||
var result = wrapFunc(func, bitmask, thisArg, newPartials, newHolders, newPartialsRight, newHoldersRight, argPos, ary, arity);
|
|
||||||
result.placeholder = placeholder;
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Creates a function that either curries or invokes `func` with optional
|
|
||||||
* `this` binding and partially applied arguments.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @param {Function|string} func The function or method name to wrap.
|
|
||||||
* @param {number} bitmask The bitmask of wrapper flags.
|
|
||||||
* The bitmask may be composed of the following flags:
|
|
||||||
* 1 - `_.bind`
|
|
||||||
* 2 - `_.bindKey`
|
|
||||||
* 4 - `_.curry` or `_.curryRight` of a bound function
|
|
||||||
* 8 - `_.curry`
|
|
||||||
* 16 - `_.curryRight`
|
|
||||||
* 32 - `_.partial`
|
|
||||||
* 64 - `_.partialRight`
|
|
||||||
* 128 - `_.rearg`
|
|
||||||
* 256 - `_.ary`
|
|
||||||
* 512 - `_.flip`
|
|
||||||
* @param {*} [thisArg] The `this` binding of `func`.
|
|
||||||
* @param {Array} [partials] The arguments to be partially applied.
|
|
||||||
* @param {Array} [holders] The `partials` placeholder indexes.
|
|
||||||
* @param {Array} [argPos] The argument positions of the new function.
|
|
||||||
* @param {number} [ary] The arity cap of `func`.
|
|
||||||
* @param {number} [arity] The arity of `func`.
|
|
||||||
* @returns {Function} Returns the new wrapped function.
|
|
||||||
*/
|
|
||||||
function createWrapper(func, bitmask, thisArg, partials, holders, argPos, ary, arity) {
|
|
||||||
var isBindKey = bitmask & BIND_KEY_FLAG;
|
|
||||||
if (!isBindKey && typeof func != 'function') {
|
|
||||||
throw new TypeError(FUNC_ERROR_TEXT);
|
|
||||||
}
|
|
||||||
var length = partials ? partials.length : 0;
|
|
||||||
if (!length) {
|
|
||||||
bitmask &= ~(PARTIAL_FLAG | PARTIAL_RIGHT_FLAG);
|
|
||||||
partials = holders = undefined;
|
|
||||||
}
|
|
||||||
ary = ary === undefined ? ary : nativeMax(toInteger(ary), 0);
|
|
||||||
arity = arity === undefined ? arity : toInteger(arity);
|
|
||||||
length -= holders ? holders.length : 0;
|
|
||||||
|
|
||||||
if (bitmask & PARTIAL_RIGHT_FLAG) {
|
|
||||||
var partialsRight = partials,
|
|
||||||
holdersRight = holders;
|
|
||||||
|
|
||||||
partials = holders = undefined;
|
|
||||||
}
|
|
||||||
|
|
||||||
var newData = [
|
|
||||||
func, bitmask, thisArg, partials, holders, partialsRight, holdersRight,
|
|
||||||
argPos, ary, arity
|
|
||||||
];
|
|
||||||
|
|
||||||
func = newData[0];
|
|
||||||
bitmask = newData[1];
|
|
||||||
thisArg = newData[2];
|
|
||||||
partials = newData[3];
|
|
||||||
holders = newData[4];
|
|
||||||
arity = newData[9] = newData[9] == null
|
|
||||||
? (isBindKey ? 0 : func.length)
|
|
||||||
: nativeMax(newData[9] - length, 0);
|
|
||||||
|
|
||||||
if (!arity && bitmask & (CURRY_FLAG | CURRY_RIGHT_FLAG)) {
|
|
||||||
bitmask &= ~(CURRY_FLAG | CURRY_RIGHT_FLAG);
|
|
||||||
}
|
|
||||||
if (!bitmask || bitmask == BIND_FLAG) {
|
|
||||||
var result = createBaseWrapper(func, bitmask, thisArg);
|
|
||||||
} else if (bitmask == CURRY_FLAG || bitmask == CURRY_RIGHT_FLAG) {
|
|
||||||
result = createCurryWrapper(func, bitmask, arity);
|
|
||||||
} else if ((bitmask == PARTIAL_FLAG || bitmask == (BIND_FLAG | PARTIAL_FLAG)) && !holders.length) {
|
|
||||||
result = createPartialWrapper(func, bitmask, thisArg, partials);
|
|
||||||
} else {
|
|
||||||
result = createHybridWrapper.apply(undefined, newData);
|
|
||||||
}
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets the argument placeholder value for `func`.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @param {Function} func The function to inspect.
|
|
||||||
* @returns {*} Returns the placeholder value.
|
|
||||||
*/
|
|
||||||
function getHolder(func) {
|
|
||||||
var object = func;
|
|
||||||
return object.placeholder;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Checks if `value` is a valid array-like index.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @param {*} value The value to check.
|
|
||||||
* @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
|
|
||||||
* @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
|
|
||||||
*/
|
|
||||||
function isIndex(value, length) {
|
|
||||||
length = length == null ? MAX_SAFE_INTEGER : length;
|
|
||||||
return !!length &&
|
|
||||||
(typeof value == 'number' || reIsUint.test(value)) &&
|
|
||||||
(value > -1 && value % 1 == 0 && value < length);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Reorder `array` according to the specified indexes where the element at
|
|
||||||
* the first index is assigned as the first element, the element at
|
|
||||||
* the second index is assigned as the second element, and so on.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @param {Array} array The array to reorder.
|
|
||||||
* @param {Array} indexes The arranged array indexes.
|
|
||||||
* @returns {Array} Returns `array`.
|
|
||||||
*/
|
|
||||||
function reorder(array, indexes) {
|
|
||||||
var arrLength = array.length,
|
|
||||||
length = nativeMin(indexes.length, arrLength),
|
|
||||||
oldArray = copyArray(array);
|
|
||||||
|
|
||||||
while (length--) {
|
|
||||||
var index = indexes[length];
|
|
||||||
array[length] = isIndex(index, arrLength) ? oldArray[index] : undefined;
|
|
||||||
}
|
|
||||||
return array;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Checks if `value` is classified as a `Function` object.
|
|
||||||
*
|
|
||||||
* @static
|
|
||||||
* @memberOf _
|
|
||||||
* @since 0.1.0
|
|
||||||
* @category Lang
|
|
||||||
* @param {*} value The value to check.
|
|
||||||
* @returns {boolean} Returns `true` if `value` is correctly classified,
|
|
||||||
* else `false`.
|
|
||||||
* @example
|
|
||||||
*
|
|
||||||
* _.isFunction(_);
|
|
||||||
* // => true
|
|
||||||
*
|
|
||||||
* _.isFunction(/abc/);
|
|
||||||
* // => false
|
|
||||||
*/
|
|
||||||
function isFunction(value) {
|
|
||||||
// The use of `Object#toString` avoids issues with the `typeof` operator
|
|
||||||
// in Safari 8 which returns 'object' for typed array and weak map constructors,
|
|
||||||
// and PhantomJS 1.9 which returns 'function' for `NodeList` instances.
|
|
||||||
var tag = isObject(value) ? objectToString.call(value) : '';
|
|
||||||
return tag == funcTag || tag == genTag;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Checks if `value` is the
|
|
||||||
* [language type](http://www.ecma-international.org/ecma-262/6.0/#sec-ecmascript-language-types)
|
|
||||||
* of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
|
||||||
*
|
|
||||||
* @static
|
|
||||||
* @memberOf _
|
|
||||||
* @since 0.1.0
|
|
||||||
* @category Lang
|
|
||||||
* @param {*} value The value to check.
|
|
||||||
* @returns {boolean} Returns `true` if `value` is an object, else `false`.
|
|
||||||
* @example
|
|
||||||
*
|
|
||||||
* _.isObject({});
|
|
||||||
* // => true
|
|
||||||
*
|
|
||||||
* _.isObject([1, 2, 3]);
|
|
||||||
* // => true
|
|
||||||
*
|
|
||||||
* _.isObject(_.noop);
|
|
||||||
* // => true
|
|
||||||
*
|
|
||||||
* _.isObject(null);
|
|
||||||
* // => false
|
|
||||||
*/
|
|
||||||
function isObject(value) {
|
|
||||||
var type = typeof value;
|
|
||||||
return !!value && (type == 'object' || type == 'function');
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
||||||
* and has a `typeof` result of "object".
|
|
||||||
*
|
|
||||||
* @static
|
|
||||||
* @memberOf _
|
|
||||||
* @since 4.0.0
|
|
||||||
* @category Lang
|
|
||||||
* @param {*} value The value to check.
|
|
||||||
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
|
|
||||||
* @example
|
|
||||||
*
|
|
||||||
* _.isObjectLike({});
|
|
||||||
* // => true
|
|
||||||
*
|
|
||||||
* _.isObjectLike([1, 2, 3]);
|
|
||||||
* // => true
|
|
||||||
*
|
|
||||||
* _.isObjectLike(_.noop);
|
|
||||||
* // => false
|
|
||||||
*
|
|
||||||
* _.isObjectLike(null);
|
|
||||||
* // => false
|
|
||||||
*/
|
|
||||||
function isObjectLike(value) {
|
|
||||||
return !!value && typeof value == 'object';
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 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 correctly classified,
|
|
||||||
* else `false`.
|
|
||||||
* @example
|
|
||||||
*
|
|
||||||
* _.isSymbol(Symbol.iterator);
|
|
||||||
* // => true
|
|
||||||
*
|
|
||||||
* _.isSymbol('abc');
|
|
||||||
* // => false
|
|
||||||
*/
|
|
||||||
function isSymbol(value) {
|
|
||||||
return typeof value == 'symbol' ||
|
|
||||||
(isObjectLike(value) && objectToString.call(value) == symbolTag);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Converts `value` to a finite number.
|
|
||||||
*
|
|
||||||
* @static
|
|
||||||
* @memberOf _
|
|
||||||
* @since 4.12.0
|
|
||||||
* @category Lang
|
|
||||||
* @param {*} value The value to convert.
|
|
||||||
* @returns {number} Returns the converted number.
|
|
||||||
* @example
|
|
||||||
*
|
|
||||||
* _.toFinite(3.2);
|
|
||||||
* // => 3.2
|
|
||||||
*
|
|
||||||
* _.toFinite(Number.MIN_VALUE);
|
|
||||||
* // => 5e-324
|
|
||||||
*
|
|
||||||
* _.toFinite(Infinity);
|
|
||||||
* // => 1.7976931348623157e+308
|
|
||||||
*
|
|
||||||
* _.toFinite('3.2');
|
|
||||||
* // => 3.2
|
|
||||||
*/
|
|
||||||
function toFinite(value) {
|
|
||||||
if (!value) {
|
|
||||||
return value === 0 ? value : 0;
|
|
||||||
}
|
|
||||||
value = toNumber(value);
|
|
||||||
if (value === INFINITY || value === -INFINITY) {
|
|
||||||
var sign = (value < 0 ? -1 : 1);
|
|
||||||
return sign * MAX_INTEGER;
|
|
||||||
}
|
|
||||||
return value === value ? value : 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Converts `value` to an integer.
|
|
||||||
*
|
|
||||||
* **Note:** This function is loosely based on
|
|
||||||
* [`ToInteger`](http://www.ecma-international.org/ecma-262/6.0/#sec-tointeger).
|
|
||||||
*
|
|
||||||
* @static
|
|
||||||
* @memberOf _
|
|
||||||
* @since 4.0.0
|
|
||||||
* @category Lang
|
|
||||||
* @param {*} value The value to convert.
|
|
||||||
* @returns {number} Returns the converted integer.
|
|
||||||
* @example
|
|
||||||
*
|
|
||||||
* _.toInteger(3.2);
|
|
||||||
* // => 3
|
|
||||||
*
|
|
||||||
* _.toInteger(Number.MIN_VALUE);
|
|
||||||
* // => 0
|
|
||||||
*
|
|
||||||
* _.toInteger(Infinity);
|
|
||||||
* // => 1.7976931348623157e+308
|
|
||||||
*
|
|
||||||
* _.toInteger('3.2');
|
|
||||||
* // => 3
|
|
||||||
*/
|
|
||||||
function toInteger(value) {
|
|
||||||
var result = toFinite(value),
|
|
||||||
remainder = result % 1;
|
|
||||||
|
|
||||||
return result === result ? (remainder ? result - remainder : result) : 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Converts `value` to a number.
|
|
||||||
*
|
|
||||||
* @static
|
|
||||||
* @memberOf _
|
|
||||||
* @since 4.0.0
|
|
||||||
* @category Lang
|
|
||||||
* @param {*} value The value to process.
|
|
||||||
* @returns {number} Returns the number.
|
|
||||||
* @example
|
|
||||||
*
|
|
||||||
* _.toNumber(3.2);
|
|
||||||
* // => 3.2
|
|
||||||
*
|
|
||||||
* _.toNumber(Number.MIN_VALUE);
|
|
||||||
* // => 5e-324
|
|
||||||
*
|
|
||||||
* _.toNumber(Infinity);
|
|
||||||
* // => Infinity
|
|
||||||
*
|
|
||||||
* _.toNumber('3.2');
|
|
||||||
* // => 3.2
|
|
||||||
*/
|
|
||||||
function toNumber(value) {
|
|
||||||
if (typeof value == 'number') {
|
|
||||||
return value;
|
|
||||||
}
|
|
||||||
if (isSymbol(value)) {
|
|
||||||
return NAN;
|
|
||||||
}
|
|
||||||
if (isObject(value)) {
|
|
||||||
var other = isFunction(value.valueOf) ? value.valueOf() : value;
|
|
||||||
value = isObject(other) ? (other + '') : other;
|
|
||||||
}
|
|
||||||
if (typeof value != 'string') {
|
|
||||||
return value === 0 ? value : +value;
|
|
||||||
}
|
|
||||||
value = value.replace(reTrim, '');
|
|
||||||
var isBinary = reIsBinary.test(value);
|
|
||||||
return (isBinary || reIsOctal.test(value))
|
|
||||||
? freeParseInt(value.slice(2), isBinary ? 2 : 8)
|
|
||||||
: (reIsBadHex.test(value) ? NAN : +value);
|
|
||||||
}
|
|
||||||
|
|
||||||
module.exports = createWrapper;
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "lodash._createwrapper",
|
|
||||||
"version": "4.0.5",
|
|
||||||
"description": "The internal lodash function `createWrapper` exported as a module.",
|
|
||||||
"homepage": "https://lodash.com/",
|
|
||||||
"icon": "https://lodash.com/icon.svg",
|
|
||||||
"license": "MIT",
|
|
||||||
"author": "John-David Dalton <john.david.dalton@gmail.com> (http://allyoucanleet.com/)",
|
|
||||||
"contributors": [
|
|
||||||
"John-David Dalton <john.david.dalton@gmail.com> (http://allyoucanleet.com/)",
|
|
||||||
"Blaine Bublitz <blaine.bublitz@gmail.com> (https://github.com/phated)",
|
|
||||||
"Mathias Bynens <mathias@qiwi.be> (https://mathiasbynens.be/)"
|
|
||||||
],
|
|
||||||
"repository": "lodash/lodash",
|
|
||||||
"scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" }
|
|
||||||
}
|
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
# lodash.assign v4.0.5
|
# lodash.assign v4.0.6
|
||||||
|
|
||||||
The [lodash](https://lodash.com/) method `_.assign` exported as a [Node.js](https://nodejs.org/) module.
|
The [lodash](https://lodash.com/) method `_.assign` exported as a [Node.js](https://nodejs.org/) module.
|
||||||
|
|
||||||
@@ -15,4 +15,4 @@ In Node.js:
|
|||||||
var assign = require('lodash.assign');
|
var assign = require('lodash.assign');
|
||||||
```
|
```
|
||||||
|
|
||||||
See the [documentation](https://lodash.com/docs#assign) or [package source](https://github.com/lodash/lodash/blob/4.0.5-npm-packages/lodash.assign) for more details.
|
See the [documentation](https://lodash.com/docs#assign) or [package source](https://github.com/lodash/lodash/blob/4.0.6-npm-packages/lodash.assign) for more details.
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* lodash 4.0.5 (Custom Build) <https://lodash.com/>
|
* lodash 4.0.6 (Custom Build) <https://lodash.com/>
|
||||||
* Build: `lodash modularize exports="npm" -o ./`
|
* Build: `lodash modularize exports="npm" -o ./`
|
||||||
* Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/>
|
* Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/>
|
||||||
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
||||||
@@ -45,8 +45,11 @@ var hasOwnProperty = objectProto.hasOwnProperty;
|
|||||||
*/
|
*/
|
||||||
var objectToString = objectProto.toString;
|
var objectToString = objectProto.toString;
|
||||||
|
|
||||||
|
/** Built-in value references. */
|
||||||
|
var propertyIsEnumerable = objectProto.propertyIsEnumerable;
|
||||||
|
|
||||||
/** Detect if properties shadowing those on `Object.prototype` are non-enumerable. */
|
/** Detect if properties shadowing those on `Object.prototype` are non-enumerable. */
|
||||||
var nonEnumShadows = !({ 'valueOf': 1 }).propertyIsEnumerable('valueOf');
|
var nonEnumShadows = !propertyIsEnumerable.call({ 'valueOf': 1 }, 'valueOf');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Assigns `value` to `key` of `object` if the existing value is not equivalent
|
* Assigns `value` to `key` of `object` if the existing value is not equivalent
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "lodash.assign",
|
"name": "lodash.assign",
|
||||||
"version": "4.0.5",
|
"version": "4.0.6",
|
||||||
"description": "The lodash method `_.assign` exported as a module.",
|
"description": "The lodash method `_.assign` exported as a module.",
|
||||||
"homepage": "https://lodash.com/",
|
"homepage": "https://lodash.com/",
|
||||||
"icon": "https://lodash.com/icon.svg",
|
"icon": "https://lodash.com/icon.svg",
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# lodash.assignin v4.0.5
|
# lodash.assignin v4.0.6
|
||||||
|
|
||||||
The [lodash](https://lodash.com/) method `_.assignIn` exported as a [Node.js](https://nodejs.org/) module.
|
The [lodash](https://lodash.com/) method `_.assignIn` exported as a [Node.js](https://nodejs.org/) module.
|
||||||
|
|
||||||
@@ -15,4 +15,4 @@ In Node.js:
|
|||||||
var assignIn = require('lodash.assignin');
|
var assignIn = require('lodash.assignin');
|
||||||
```
|
```
|
||||||
|
|
||||||
See the [documentation](https://lodash.com/docs#assignIn) or [package source](https://github.com/lodash/lodash/blob/4.0.5-npm-packages/lodash.assignin) for more details.
|
See the [documentation](https://lodash.com/docs#assignIn) or [package source](https://github.com/lodash/lodash/blob/4.0.6-npm-packages/lodash.assignin) for more details.
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* lodash 4.0.5 (Custom Build) <https://lodash.com/>
|
* lodash 4.0.6 (Custom Build) <https://lodash.com/>
|
||||||
* Build: `lodash modularize exports="npm" -o ./`
|
* Build: `lodash modularize exports="npm" -o ./`
|
||||||
* Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/>
|
* Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/>
|
||||||
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
||||||
@@ -45,8 +45,11 @@ var hasOwnProperty = objectProto.hasOwnProperty;
|
|||||||
*/
|
*/
|
||||||
var objectToString = objectProto.toString;
|
var objectToString = objectProto.toString;
|
||||||
|
|
||||||
|
/** Built-in value references. */
|
||||||
|
var propertyIsEnumerable = objectProto.propertyIsEnumerable;
|
||||||
|
|
||||||
/** Detect if properties shadowing those on `Object.prototype` are non-enumerable. */
|
/** Detect if properties shadowing those on `Object.prototype` are non-enumerable. */
|
||||||
var nonEnumShadows = !({ 'valueOf': 1 }).propertyIsEnumerable('valueOf');
|
var nonEnumShadows = !propertyIsEnumerable.call({ 'valueOf': 1 }, 'valueOf');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Assigns `value` to `key` of `object` if the existing value is not equivalent
|
* Assigns `value` to `key` of `object` if the existing value is not equivalent
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "lodash.assignin",
|
"name": "lodash.assignin",
|
||||||
"version": "4.0.5",
|
"version": "4.0.6",
|
||||||
"description": "The lodash method `_.assignIn` exported as a module.",
|
"description": "The lodash method `_.assignIn` exported as a module.",
|
||||||
"homepage": "https://lodash.com/",
|
"homepage": "https://lodash.com/",
|
||||||
"icon": "https://lodash.com/icon.svg",
|
"icon": "https://lodash.com/icon.svg",
|
||||||
|
|||||||
@@ -1,23 +1,47 @@
|
|||||||
The MIT License (MIT)
|
Copyright jQuery Foundation and other contributors <https://jquery.org/>
|
||||||
|
|
||||||
Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/>
|
Based on Underscore.js, copyright Jeremy Ashkenas,
|
||||||
Based on Underscore.js, copyright 2009-2016 Jeremy Ashkenas,
|
|
||||||
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
|
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
This software consists of voluntary contributions made by many
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
individuals. For exact contribution history, see the revision history
|
||||||
in the Software without restriction, including without limitation the rights
|
available at https://github.com/lodash/lodash
|
||||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
||||||
copies of the Software, and to permit persons to whom the Software is
|
|
||||||
furnished to do so, subject to the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in all
|
The following license applies to all parts of this software except as
|
||||||
copies or substantial portions of the Software.
|
documented below:
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
====
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
Permission is hereby granted, free of charge, to any person obtaining
|
||||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
a copy of this software and associated documentation files (the
|
||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
"Software"), to deal in the Software without restriction, including
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
without limitation the rights to use, copy, modify, merge, publish,
|
||||||
SOFTWARE.
|
distribute, sublicense, and/or sell copies of the Software, and to
|
||||||
|
permit persons to whom the Software is furnished to do so, subject to
|
||||||
|
the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be
|
||||||
|
included in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||||
|
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||||
|
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||||
|
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||||
|
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||||
|
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||||
|
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
|
====
|
||||||
|
|
||||||
|
Copyright and related rights for sample code are waived via CC0. Sample
|
||||||
|
code is defined as all source code displayed within the prose of the
|
||||||
|
documentation.
|
||||||
|
|
||||||
|
CC0: http://creativecommons.org/publicdomain/zero/1.0/
|
||||||
|
|
||||||
|
====
|
||||||
|
|
||||||
|
Files located in the node_modules and vendor directories are externally
|
||||||
|
maintained libraries used by this software which have their own
|
||||||
|
licenses; we recommend you read them, as their terms may differ from the
|
||||||
|
terms above.
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# lodash.assigninwith v4.0.5
|
# lodash.assigninwith v4.0.6
|
||||||
|
|
||||||
The [lodash](https://lodash.com/) method `_.assignInWith` exported as a [Node.js](https://nodejs.org/) module.
|
The [lodash](https://lodash.com/) method `_.assignInWith` exported as a [Node.js](https://nodejs.org/) module.
|
||||||
|
|
||||||
@@ -15,4 +15,4 @@ In Node.js:
|
|||||||
var assignInWith = require('lodash.assigninwith');
|
var assignInWith = require('lodash.assigninwith');
|
||||||
```
|
```
|
||||||
|
|
||||||
See the [documentation](https://lodash.com/docs#assignInWith) or [package source](https://github.com/lodash/lodash/blob/4.0.5-npm-packages/lodash.assigninwith) for more details.
|
See the [documentation](https://lodash.com/docs#assignInWith) or [package source](https://github.com/lodash/lodash/blob/4.0.6-npm-packages/lodash.assigninwith) for more details.
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
/**
|
/**
|
||||||
* lodash 4.0.5 (Custom Build) <https://lodash.com/>
|
* lodash 4.0.6 (Custom Build) <https://lodash.com/>
|
||||||
* Build: `lodash modularize exports="npm" -o ./`
|
* Build: `lodash modularize exports="npm" -o ./`
|
||||||
* Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/>
|
* Copyright jQuery Foundation and other contributors <https://jquery.org/>
|
||||||
|
* Released under MIT license <https://lodash.com/license>
|
||||||
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
||||||
* Copyright 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
||||||
* Available under MIT license <https://lodash.com/license>
|
|
||||||
*/
|
*/
|
||||||
var keysIn = require('lodash.keysin'),
|
var keysIn = require('lodash.keysin'),
|
||||||
rest = require('lodash.rest');
|
rest = require('lodash.rest');
|
||||||
@@ -40,7 +40,8 @@ var objectProto = Object.prototype;
|
|||||||
var hasOwnProperty = objectProto.hasOwnProperty;
|
var hasOwnProperty = objectProto.hasOwnProperty;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
|
* Used to resolve the
|
||||||
|
* [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
|
||||||
* of values.
|
* of values.
|
||||||
*/
|
*/
|
||||||
var objectToString = objectProto.toString;
|
var objectToString = objectProto.toString;
|
||||||
@@ -77,17 +78,16 @@ function baseProperty(key) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This function is like `copyObject` except that it accepts a function to
|
* Copies properties of `source` to `object`.
|
||||||
* customize copied values.
|
|
||||||
*
|
*
|
||||||
* @private
|
* @private
|
||||||
* @param {Object} source The object to copy properties from.
|
* @param {Object} source The object to copy properties from.
|
||||||
* @param {Array} props The property names to copy.
|
* @param {Array} props The property identifiers to copy.
|
||||||
* @param {Object} [object={}] The object to copy properties to.
|
* @param {Object} [object={}] The object to copy properties to.
|
||||||
* @param {Function} [customizer] The function to customize copied values.
|
* @param {Function} [customizer] The function to customize copied values.
|
||||||
* @returns {Object} Returns `object`.
|
* @returns {Object} Returns `object`.
|
||||||
*/
|
*/
|
||||||
function copyObjectWith(source, props, object, customizer) {
|
function copyObject(source, props, object, customizer) {
|
||||||
object || (object = {});
|
object || (object = {});
|
||||||
|
|
||||||
var index = -1,
|
var index = -1,
|
||||||
@@ -141,8 +141,9 @@ function createAssigner(assigner) {
|
|||||||
/**
|
/**
|
||||||
* Gets the "length" property value of `object`.
|
* Gets the "length" property value of `object`.
|
||||||
*
|
*
|
||||||
* **Note:** This function is used to avoid a [JIT bug](https://bugs.webkit.org/show_bug.cgi?id=142792)
|
* **Note:** This function is used to avoid a
|
||||||
* that affects Safari on at least iOS 8.1-8.3 ARM64.
|
* [JIT bug](https://bugs.webkit.org/show_bug.cgi?id=142792) that affects
|
||||||
|
* Safari on at least iOS 8.1-8.3 ARM64.
|
||||||
*
|
*
|
||||||
* @private
|
* @private
|
||||||
* @param {Object} object The object to query.
|
* @param {Object} object The object to query.
|
||||||
@@ -157,7 +158,8 @@ var getLength = baseProperty('length');
|
|||||||
* @param {*} value The potential iteratee value argument.
|
* @param {*} value The potential iteratee value argument.
|
||||||
* @param {*} index The potential iteratee index or key argument.
|
* @param {*} index The potential iteratee index or key argument.
|
||||||
* @param {*} object The potential iteratee object argument.
|
* @param {*} object The potential iteratee object argument.
|
||||||
* @returns {boolean} Returns `true` if the arguments are from an iteratee call, else `false`.
|
* @returns {boolean} Returns `true` if the arguments are from an iteratee call,
|
||||||
|
* else `false`.
|
||||||
*/
|
*/
|
||||||
function isIterateeCall(value, index, object) {
|
function isIterateeCall(value, index, object) {
|
||||||
if (!isObject(object)) {
|
if (!isObject(object)) {
|
||||||
@@ -165,19 +167,22 @@ function isIterateeCall(value, index, object) {
|
|||||||
}
|
}
|
||||||
var type = typeof index;
|
var type = typeof index;
|
||||||
if (type == 'number'
|
if (type == 'number'
|
||||||
? (isArrayLike(object) && isIndex(index, object.length))
|
? (isArrayLike(object) && isIndex(index, object.length))
|
||||||
: (type == 'string' && index in object)) {
|
: (type == 'string' && index in object)
|
||||||
|
) {
|
||||||
return eq(object[index], value);
|
return eq(object[index], value);
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Performs a [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
|
* Performs a
|
||||||
|
* [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
|
||||||
* comparison between two values to determine if they are equivalent.
|
* comparison between two values to determine if they are equivalent.
|
||||||
*
|
*
|
||||||
* @static
|
* @static
|
||||||
* @memberOf _
|
* @memberOf _
|
||||||
|
* @since 4.0.0
|
||||||
* @category Lang
|
* @category Lang
|
||||||
* @param {*} value The value to compare.
|
* @param {*} value The value to compare.
|
||||||
* @param {*} other The other value to compare.
|
* @param {*} other The other value to compare.
|
||||||
@@ -213,6 +218,7 @@ function eq(value, other) {
|
|||||||
*
|
*
|
||||||
* @static
|
* @static
|
||||||
* @memberOf _
|
* @memberOf _
|
||||||
|
* @since 4.0.0
|
||||||
* @category Lang
|
* @category Lang
|
||||||
* @param {*} value The value to check.
|
* @param {*} value The value to check.
|
||||||
* @returns {boolean} Returns `true` if `value` is array-like, else `false`.
|
* @returns {boolean} Returns `true` if `value` is array-like, else `false`.
|
||||||
@@ -239,9 +245,11 @@ function isArrayLike(value) {
|
|||||||
*
|
*
|
||||||
* @static
|
* @static
|
||||||
* @memberOf _
|
* @memberOf _
|
||||||
|
* @since 0.1.0
|
||||||
* @category Lang
|
* @category Lang
|
||||||
* @param {*} value The value to check.
|
* @param {*} value The value to check.
|
||||||
* @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
|
* @returns {boolean} Returns `true` if `value` is correctly classified,
|
||||||
|
* else `false`.
|
||||||
* @example
|
* @example
|
||||||
*
|
*
|
||||||
* _.isFunction(_);
|
* _.isFunction(_);
|
||||||
@@ -261,13 +269,16 @@ function isFunction(value) {
|
|||||||
/**
|
/**
|
||||||
* Checks if `value` is a valid array-like length.
|
* Checks if `value` is a valid array-like length.
|
||||||
*
|
*
|
||||||
* **Note:** This function is loosely based on [`ToLength`](http://ecma-international.org/ecma-262/6.0/#sec-tolength).
|
* **Note:** This function is loosely based on
|
||||||
|
* [`ToLength`](http://ecma-international.org/ecma-262/6.0/#sec-tolength).
|
||||||
*
|
*
|
||||||
* @static
|
* @static
|
||||||
* @memberOf _
|
* @memberOf _
|
||||||
|
* @since 4.0.0
|
||||||
* @category Lang
|
* @category Lang
|
||||||
* @param {*} value The value to check.
|
* @param {*} value The value to check.
|
||||||
* @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
|
* @returns {boolean} Returns `true` if `value` is a valid length,
|
||||||
|
* else `false`.
|
||||||
* @example
|
* @example
|
||||||
*
|
*
|
||||||
* _.isLength(3);
|
* _.isLength(3);
|
||||||
@@ -288,11 +299,13 @@ function isLength(value) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`.
|
* Checks if `value` is the
|
||||||
* (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
* [language type](http://www.ecma-international.org/ecma-262/6.0/#sec-ecmascript-language-types)
|
||||||
|
* of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
||||||
*
|
*
|
||||||
* @static
|
* @static
|
||||||
* @memberOf _
|
* @memberOf _
|
||||||
|
* @since 0.1.0
|
||||||
* @category Lang
|
* @category Lang
|
||||||
* @param {*} value The value to check.
|
* @param {*} value The value to check.
|
||||||
* @returns {boolean} Returns `true` if `value` is an object, else `false`.
|
* @returns {boolean} Returns `true` if `value` is an object, else `false`.
|
||||||
@@ -316,15 +329,16 @@ function isObject(value) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This method is like `_.assignIn` except that it accepts `customizer` which
|
* This method is like `_.assignIn` except that it accepts `customizer`
|
||||||
* is invoked to produce the assigned values. If `customizer` returns `undefined`
|
* which is invoked to produce the assigned values. If `customizer` returns
|
||||||
* assignment is handled by the method instead. The `customizer` is invoked
|
* `undefined`, assignment is handled by the method instead. The `customizer`
|
||||||
* with five arguments: (objValue, srcValue, key, object, source).
|
* is invoked with five arguments: (objValue, srcValue, key, object, source).
|
||||||
*
|
*
|
||||||
* **Note:** This method mutates `object`.
|
* **Note:** This method mutates `object`.
|
||||||
*
|
*
|
||||||
* @static
|
* @static
|
||||||
* @memberOf _
|
* @memberOf _
|
||||||
|
* @since 4.0.0
|
||||||
* @alias extendWith
|
* @alias extendWith
|
||||||
* @category Object
|
* @category Object
|
||||||
* @param {Object} object The destination object.
|
* @param {Object} object The destination object.
|
||||||
@@ -343,7 +357,7 @@ function isObject(value) {
|
|||||||
* // => { 'a': 1, 'b': 2 }
|
* // => { 'a': 1, 'b': 2 }
|
||||||
*/
|
*/
|
||||||
var assignInWith = createAssigner(function(object, source, srcIndex, customizer) {
|
var assignInWith = createAssigner(function(object, source, srcIndex, customizer) {
|
||||||
copyObjectWith(source, keysIn(source), object, customizer);
|
copyObject(source, keysIn(source), object, customizer);
|
||||||
});
|
});
|
||||||
|
|
||||||
module.exports = assignInWith;
|
module.exports = assignInWith;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "lodash.assigninwith",
|
"name": "lodash.assigninwith",
|
||||||
"version": "4.0.5",
|
"version": "4.0.6",
|
||||||
"description": "The lodash method `_.assignInWith` exported as a module.",
|
"description": "The lodash method `_.assignInWith` exported as a module.",
|
||||||
"homepage": "https://lodash.com/",
|
"homepage": "https://lodash.com/",
|
||||||
"icon": "https://lodash.com/icon.svg",
|
"icon": "https://lodash.com/icon.svg",
|
||||||
|
|||||||
@@ -1,23 +1,47 @@
|
|||||||
The MIT License (MIT)
|
Copyright jQuery Foundation and other contributors <https://jquery.org/>
|
||||||
|
|
||||||
Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/>
|
Based on Underscore.js, copyright Jeremy Ashkenas,
|
||||||
Based on Underscore.js, copyright 2009-2016 Jeremy Ashkenas,
|
|
||||||
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
|
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
This software consists of voluntary contributions made by many
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
individuals. For exact contribution history, see the revision history
|
||||||
in the Software without restriction, including without limitation the rights
|
available at https://github.com/lodash/lodash
|
||||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
||||||
copies of the Software, and to permit persons to whom the Software is
|
|
||||||
furnished to do so, subject to the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in all
|
The following license applies to all parts of this software except as
|
||||||
copies or substantial portions of the Software.
|
documented below:
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
====
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
Permission is hereby granted, free of charge, to any person obtaining
|
||||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
a copy of this software and associated documentation files (the
|
||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
"Software"), to deal in the Software without restriction, including
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
without limitation the rights to use, copy, modify, merge, publish,
|
||||||
SOFTWARE.
|
distribute, sublicense, and/or sell copies of the Software, and to
|
||||||
|
permit persons to whom the Software is furnished to do so, subject to
|
||||||
|
the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be
|
||||||
|
included in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||||
|
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||||
|
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||||
|
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||||
|
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||||
|
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||||
|
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
|
====
|
||||||
|
|
||||||
|
Copyright and related rights for sample code are waived via CC0. Sample
|
||||||
|
code is defined as all source code displayed within the prose of the
|
||||||
|
documentation.
|
||||||
|
|
||||||
|
CC0: http://creativecommons.org/publicdomain/zero/1.0/
|
||||||
|
|
||||||
|
====
|
||||||
|
|
||||||
|
Files located in the node_modules and vendor directories are externally
|
||||||
|
maintained libraries used by this software which have their own
|
||||||
|
licenses; we recommend you read them, as their terms may differ from the
|
||||||
|
terms above.
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# lodash.assignwith v4.0.5
|
# lodash.assignwith v4.0.6
|
||||||
|
|
||||||
The [lodash](https://lodash.com/) method `_.assignWith` exported as a [Node.js](https://nodejs.org/) module.
|
The [lodash](https://lodash.com/) method `_.assignWith` exported as a [Node.js](https://nodejs.org/) module.
|
||||||
|
|
||||||
@@ -15,4 +15,4 @@ In Node.js:
|
|||||||
var assignWith = require('lodash.assignwith');
|
var assignWith = require('lodash.assignwith');
|
||||||
```
|
```
|
||||||
|
|
||||||
See the [documentation](https://lodash.com/docs#assignWith) or [package source](https://github.com/lodash/lodash/blob/4.0.5-npm-packages/lodash.assignwith) for more details.
|
See the [documentation](https://lodash.com/docs#assignWith) or [package source](https://github.com/lodash/lodash/blob/4.0.6-npm-packages/lodash.assignwith) for more details.
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
/**
|
/**
|
||||||
* lodash 4.0.5 (Custom Build) <https://lodash.com/>
|
* lodash 4.0.6 (Custom Build) <https://lodash.com/>
|
||||||
* Build: `lodash modularize exports="npm" -o ./`
|
* Build: `lodash modularize exports="npm" -o ./`
|
||||||
* Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/>
|
* Copyright jQuery Foundation and other contributors <https://jquery.org/>
|
||||||
|
* Released under MIT license <https://lodash.com/license>
|
||||||
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
||||||
* Copyright 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
||||||
* Available under MIT license <https://lodash.com/license>
|
|
||||||
*/
|
*/
|
||||||
var keys = require('lodash.keys'),
|
var keys = require('lodash.keys'),
|
||||||
rest = require('lodash.rest');
|
rest = require('lodash.rest');
|
||||||
@@ -40,7 +40,8 @@ var objectProto = Object.prototype;
|
|||||||
var hasOwnProperty = objectProto.hasOwnProperty;
|
var hasOwnProperty = objectProto.hasOwnProperty;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
|
* Used to resolve the
|
||||||
|
* [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
|
||||||
* of values.
|
* of values.
|
||||||
*/
|
*/
|
||||||
var objectToString = objectProto.toString;
|
var objectToString = objectProto.toString;
|
||||||
@@ -77,17 +78,16 @@ function baseProperty(key) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This function is like `copyObject` except that it accepts a function to
|
* Copies properties of `source` to `object`.
|
||||||
* customize copied values.
|
|
||||||
*
|
*
|
||||||
* @private
|
* @private
|
||||||
* @param {Object} source The object to copy properties from.
|
* @param {Object} source The object to copy properties from.
|
||||||
* @param {Array} props The property names to copy.
|
* @param {Array} props The property identifiers to copy.
|
||||||
* @param {Object} [object={}] The object to copy properties to.
|
* @param {Object} [object={}] The object to copy properties to.
|
||||||
* @param {Function} [customizer] The function to customize copied values.
|
* @param {Function} [customizer] The function to customize copied values.
|
||||||
* @returns {Object} Returns `object`.
|
* @returns {Object} Returns `object`.
|
||||||
*/
|
*/
|
||||||
function copyObjectWith(source, props, object, customizer) {
|
function copyObject(source, props, object, customizer) {
|
||||||
object || (object = {});
|
object || (object = {});
|
||||||
|
|
||||||
var index = -1,
|
var index = -1,
|
||||||
@@ -141,8 +141,9 @@ function createAssigner(assigner) {
|
|||||||
/**
|
/**
|
||||||
* Gets the "length" property value of `object`.
|
* Gets the "length" property value of `object`.
|
||||||
*
|
*
|
||||||
* **Note:** This function is used to avoid a [JIT bug](https://bugs.webkit.org/show_bug.cgi?id=142792)
|
* **Note:** This function is used to avoid a
|
||||||
* that affects Safari on at least iOS 8.1-8.3 ARM64.
|
* [JIT bug](https://bugs.webkit.org/show_bug.cgi?id=142792) that affects
|
||||||
|
* Safari on at least iOS 8.1-8.3 ARM64.
|
||||||
*
|
*
|
||||||
* @private
|
* @private
|
||||||
* @param {Object} object The object to query.
|
* @param {Object} object The object to query.
|
||||||
@@ -157,7 +158,8 @@ var getLength = baseProperty('length');
|
|||||||
* @param {*} value The potential iteratee value argument.
|
* @param {*} value The potential iteratee value argument.
|
||||||
* @param {*} index The potential iteratee index or key argument.
|
* @param {*} index The potential iteratee index or key argument.
|
||||||
* @param {*} object The potential iteratee object argument.
|
* @param {*} object The potential iteratee object argument.
|
||||||
* @returns {boolean} Returns `true` if the arguments are from an iteratee call, else `false`.
|
* @returns {boolean} Returns `true` if the arguments are from an iteratee call,
|
||||||
|
* else `false`.
|
||||||
*/
|
*/
|
||||||
function isIterateeCall(value, index, object) {
|
function isIterateeCall(value, index, object) {
|
||||||
if (!isObject(object)) {
|
if (!isObject(object)) {
|
||||||
@@ -165,19 +167,22 @@ function isIterateeCall(value, index, object) {
|
|||||||
}
|
}
|
||||||
var type = typeof index;
|
var type = typeof index;
|
||||||
if (type == 'number'
|
if (type == 'number'
|
||||||
? (isArrayLike(object) && isIndex(index, object.length))
|
? (isArrayLike(object) && isIndex(index, object.length))
|
||||||
: (type == 'string' && index in object)) {
|
: (type == 'string' && index in object)
|
||||||
|
) {
|
||||||
return eq(object[index], value);
|
return eq(object[index], value);
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Performs a [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
|
* Performs a
|
||||||
|
* [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
|
||||||
* comparison between two values to determine if they are equivalent.
|
* comparison between two values to determine if they are equivalent.
|
||||||
*
|
*
|
||||||
* @static
|
* @static
|
||||||
* @memberOf _
|
* @memberOf _
|
||||||
|
* @since 4.0.0
|
||||||
* @category Lang
|
* @category Lang
|
||||||
* @param {*} value The value to compare.
|
* @param {*} value The value to compare.
|
||||||
* @param {*} other The other value to compare.
|
* @param {*} other The other value to compare.
|
||||||
@@ -213,6 +218,7 @@ function eq(value, other) {
|
|||||||
*
|
*
|
||||||
* @static
|
* @static
|
||||||
* @memberOf _
|
* @memberOf _
|
||||||
|
* @since 4.0.0
|
||||||
* @category Lang
|
* @category Lang
|
||||||
* @param {*} value The value to check.
|
* @param {*} value The value to check.
|
||||||
* @returns {boolean} Returns `true` if `value` is array-like, else `false`.
|
* @returns {boolean} Returns `true` if `value` is array-like, else `false`.
|
||||||
@@ -239,9 +245,11 @@ function isArrayLike(value) {
|
|||||||
*
|
*
|
||||||
* @static
|
* @static
|
||||||
* @memberOf _
|
* @memberOf _
|
||||||
|
* @since 0.1.0
|
||||||
* @category Lang
|
* @category Lang
|
||||||
* @param {*} value The value to check.
|
* @param {*} value The value to check.
|
||||||
* @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
|
* @returns {boolean} Returns `true` if `value` is correctly classified,
|
||||||
|
* else `false`.
|
||||||
* @example
|
* @example
|
||||||
*
|
*
|
||||||
* _.isFunction(_);
|
* _.isFunction(_);
|
||||||
@@ -261,13 +269,16 @@ function isFunction(value) {
|
|||||||
/**
|
/**
|
||||||
* Checks if `value` is a valid array-like length.
|
* Checks if `value` is a valid array-like length.
|
||||||
*
|
*
|
||||||
* **Note:** This function is loosely based on [`ToLength`](http://ecma-international.org/ecma-262/6.0/#sec-tolength).
|
* **Note:** This function is loosely based on
|
||||||
|
* [`ToLength`](http://ecma-international.org/ecma-262/6.0/#sec-tolength).
|
||||||
*
|
*
|
||||||
* @static
|
* @static
|
||||||
* @memberOf _
|
* @memberOf _
|
||||||
|
* @since 4.0.0
|
||||||
* @category Lang
|
* @category Lang
|
||||||
* @param {*} value The value to check.
|
* @param {*} value The value to check.
|
||||||
* @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
|
* @returns {boolean} Returns `true` if `value` is a valid length,
|
||||||
|
* else `false`.
|
||||||
* @example
|
* @example
|
||||||
*
|
*
|
||||||
* _.isLength(3);
|
* _.isLength(3);
|
||||||
@@ -288,11 +299,13 @@ function isLength(value) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`.
|
* Checks if `value` is the
|
||||||
* (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
* [language type](http://www.ecma-international.org/ecma-262/6.0/#sec-ecmascript-language-types)
|
||||||
|
* of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
||||||
*
|
*
|
||||||
* @static
|
* @static
|
||||||
* @memberOf _
|
* @memberOf _
|
||||||
|
* @since 0.1.0
|
||||||
* @category Lang
|
* @category Lang
|
||||||
* @param {*} value The value to check.
|
* @param {*} value The value to check.
|
||||||
* @returns {boolean} Returns `true` if `value` is an object, else `false`.
|
* @returns {boolean} Returns `true` if `value` is an object, else `false`.
|
||||||
@@ -316,15 +329,16 @@ function isObject(value) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This method is like `_.assign` except that it accepts `customizer` which
|
* This method is like `_.assign` except that it accepts `customizer`
|
||||||
* is invoked to produce the assigned values. If `customizer` returns `undefined`
|
* which is invoked to produce the assigned values. If `customizer` returns
|
||||||
* assignment is handled by the method instead. The `customizer` is invoked
|
* `undefined`, assignment is handled by the method instead. The `customizer`
|
||||||
* with five arguments: (objValue, srcValue, key, object, source).
|
* is invoked with five arguments: (objValue, srcValue, key, object, source).
|
||||||
*
|
*
|
||||||
* **Note:** This method mutates `object`.
|
* **Note:** This method mutates `object`.
|
||||||
*
|
*
|
||||||
* @static
|
* @static
|
||||||
* @memberOf _
|
* @memberOf _
|
||||||
|
* @since 4.0.0
|
||||||
* @category Object
|
* @category Object
|
||||||
* @param {Object} object The destination object.
|
* @param {Object} object The destination object.
|
||||||
* @param {...Object} sources The source objects.
|
* @param {...Object} sources The source objects.
|
||||||
@@ -342,7 +356,7 @@ function isObject(value) {
|
|||||||
* // => { 'a': 1, 'b': 2 }
|
* // => { 'a': 1, 'b': 2 }
|
||||||
*/
|
*/
|
||||||
var assignWith = createAssigner(function(object, source, srcIndex, customizer) {
|
var assignWith = createAssigner(function(object, source, srcIndex, customizer) {
|
||||||
copyObjectWith(source, keys(source), object, customizer);
|
copyObject(source, keys(source), object, customizer);
|
||||||
});
|
});
|
||||||
|
|
||||||
module.exports = assignWith;
|
module.exports = assignWith;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "lodash.assignwith",
|
"name": "lodash.assignwith",
|
||||||
"version": "4.0.5",
|
"version": "4.0.6",
|
||||||
"description": "The lodash method `_.assignWith` exported as a module.",
|
"description": "The lodash method `_.assignWith` exported as a module.",
|
||||||
"homepage": "https://lodash.com/",
|
"homepage": "https://lodash.com/",
|
||||||
"icon": "https://lodash.com/icon.svg",
|
"icon": "https://lodash.com/icon.svg",
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# lodash.chunk v4.0.5
|
# lodash.chunk v4.0.6
|
||||||
|
|
||||||
The [lodash](https://lodash.com/) method `_.chunk` exported as a [Node.js](https://nodejs.org/) module.
|
The [lodash](https://lodash.com/) method `_.chunk` exported as a [Node.js](https://nodejs.org/) module.
|
||||||
|
|
||||||
@@ -15,4 +15,4 @@ In Node.js:
|
|||||||
var chunk = require('lodash.chunk');
|
var chunk = require('lodash.chunk');
|
||||||
```
|
```
|
||||||
|
|
||||||
See the [documentation](https://lodash.com/docs#chunk) or [package source](https://github.com/lodash/lodash/blob/4.0.5-npm-packages/lodash.chunk) for more details.
|
See the [documentation](https://lodash.com/docs#chunk) or [package source](https://github.com/lodash/lodash/blob/4.0.6-npm-packages/lodash.chunk) for more details.
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* lodash 4.0.5 (Custom Build) <https://lodash.com/>
|
* lodash (Custom Build) <https://lodash.com/>
|
||||||
* Build: `lodash modularize exports="npm" -o ./`
|
* Build: `lodash modularize exports="npm" -o ./`
|
||||||
* Copyright jQuery Foundation and other contributors <https://jquery.org/>
|
* Copyright jQuery Foundation and other contributors <https://jquery.org/>
|
||||||
* Released under MIT license <https://lodash.com/license>
|
* Released under MIT license <https://lodash.com/license>
|
||||||
@@ -37,20 +37,6 @@ var reIsUint = /^(?:0|[1-9]\d*)$/;
|
|||||||
/** Built-in method references without a dependency on `root`. */
|
/** Built-in method references without a dependency on `root`. */
|
||||||
var freeParseInt = parseInt;
|
var freeParseInt = parseInt;
|
||||||
|
|
||||||
/**
|
|
||||||
* Checks if `value` is a valid array-like index.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @param {*} value The value to check.
|
|
||||||
* @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
|
|
||||||
* @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
|
|
||||||
*/
|
|
||||||
function isIndex(value, length) {
|
|
||||||
value = (typeof value == 'number' || reIsUint.test(value)) ? +value : -1;
|
|
||||||
length = length == null ? MAX_SAFE_INTEGER : length;
|
|
||||||
return value > -1 && value % 1 == 0 && value < length;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Used for built-in method references. */
|
/** Used for built-in method references. */
|
||||||
var objectProto = Object.prototype;
|
var objectProto = Object.prototype;
|
||||||
|
|
||||||
@@ -70,7 +56,7 @@ var nativeCeil = Math.ceil,
|
|||||||
*
|
*
|
||||||
* @private
|
* @private
|
||||||
* @param {string} key The key of the property to get.
|
* @param {string} key The key of the property to get.
|
||||||
* @returns {Function} Returns the new function.
|
* @returns {Function} Returns the new accessor function.
|
||||||
*/
|
*/
|
||||||
function baseProperty(key) {
|
function baseProperty(key) {
|
||||||
return function(object) {
|
return function(object) {
|
||||||
@@ -91,6 +77,21 @@ function baseProperty(key) {
|
|||||||
*/
|
*/
|
||||||
var getLength = baseProperty('length');
|
var getLength = baseProperty('length');
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Checks if `value` is a valid array-like index.
|
||||||
|
*
|
||||||
|
* @private
|
||||||
|
* @param {*} value The value to check.
|
||||||
|
* @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
|
||||||
|
* @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
|
||||||
|
*/
|
||||||
|
function isIndex(value, length) {
|
||||||
|
length = length == null ? MAX_SAFE_INTEGER : length;
|
||||||
|
return !!length &&
|
||||||
|
(typeof value == 'number' || reIsUint.test(value)) &&
|
||||||
|
(value > -1 && value % 1 == 0 && value < length);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks if the given arguments are from an iteratee call.
|
* Checks if the given arguments are from an iteratee call.
|
||||||
*
|
*
|
||||||
@@ -127,7 +128,7 @@ function isIterateeCall(value, index, object) {
|
|||||||
* @param {Array} array The array to process.
|
* @param {Array} array The array to process.
|
||||||
* @param {number} [size=1] The length of each chunk
|
* @param {number} [size=1] The length of each chunk
|
||||||
* @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
|
* @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
|
||||||
* @returns {Array} Returns the new array containing chunks.
|
* @returns {Array} Returns the new array of chunks.
|
||||||
* @example
|
* @example
|
||||||
*
|
*
|
||||||
* _.chunk(['a', 'b', 'c', 'd'], 2);
|
* _.chunk(['a', 'b', 'c', 'd'], 2);
|
||||||
@@ -360,6 +361,41 @@ function isSymbol(value) {
|
|||||||
(isObjectLike(value) && objectToString.call(value) == symbolTag);
|
(isObjectLike(value) && objectToString.call(value) == symbolTag);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Converts `value` to a finite number.
|
||||||
|
*
|
||||||
|
* @static
|
||||||
|
* @memberOf _
|
||||||
|
* @since 4.12.0
|
||||||
|
* @category Lang
|
||||||
|
* @param {*} value The value to convert.
|
||||||
|
* @returns {number} Returns the converted number.
|
||||||
|
* @example
|
||||||
|
*
|
||||||
|
* _.toFinite(3.2);
|
||||||
|
* // => 3.2
|
||||||
|
*
|
||||||
|
* _.toFinite(Number.MIN_VALUE);
|
||||||
|
* // => 5e-324
|
||||||
|
*
|
||||||
|
* _.toFinite(Infinity);
|
||||||
|
* // => 1.7976931348623157e+308
|
||||||
|
*
|
||||||
|
* _.toFinite('3.2');
|
||||||
|
* // => 3.2
|
||||||
|
*/
|
||||||
|
function toFinite(value) {
|
||||||
|
if (!value) {
|
||||||
|
return value === 0 ? value : 0;
|
||||||
|
}
|
||||||
|
value = toNumber(value);
|
||||||
|
if (value === INFINITY || value === -INFINITY) {
|
||||||
|
var sign = (value < 0 ? -1 : 1);
|
||||||
|
return sign * MAX_INTEGER;
|
||||||
|
}
|
||||||
|
return value === value ? value : 0;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Converts `value` to an integer.
|
* Converts `value` to an integer.
|
||||||
*
|
*
|
||||||
@@ -374,7 +410,7 @@ function isSymbol(value) {
|
|||||||
* @returns {number} Returns the converted integer.
|
* @returns {number} Returns the converted integer.
|
||||||
* @example
|
* @example
|
||||||
*
|
*
|
||||||
* _.toInteger(3);
|
* _.toInteger(3.2);
|
||||||
* // => 3
|
* // => 3
|
||||||
*
|
*
|
||||||
* _.toInteger(Number.MIN_VALUE);
|
* _.toInteger(Number.MIN_VALUE);
|
||||||
@@ -383,20 +419,14 @@ function isSymbol(value) {
|
|||||||
* _.toInteger(Infinity);
|
* _.toInteger(Infinity);
|
||||||
* // => 1.7976931348623157e+308
|
* // => 1.7976931348623157e+308
|
||||||
*
|
*
|
||||||
* _.toInteger('3');
|
* _.toInteger('3.2');
|
||||||
* // => 3
|
* // => 3
|
||||||
*/
|
*/
|
||||||
function toInteger(value) {
|
function toInteger(value) {
|
||||||
if (!value) {
|
var result = toFinite(value),
|
||||||
return value === 0 ? value : 0;
|
remainder = result % 1;
|
||||||
}
|
|
||||||
value = toNumber(value);
|
return result === result ? (remainder ? result - remainder : result) : 0;
|
||||||
if (value === INFINITY || value === -INFINITY) {
|
|
||||||
var sign = (value < 0 ? -1 : 1);
|
|
||||||
return sign * MAX_INTEGER;
|
|
||||||
}
|
|
||||||
var remainder = value % 1;
|
|
||||||
return value === value ? (remainder ? value - remainder : value) : 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -410,8 +440,8 @@ function toInteger(value) {
|
|||||||
* @returns {number} Returns the number.
|
* @returns {number} Returns the number.
|
||||||
* @example
|
* @example
|
||||||
*
|
*
|
||||||
* _.toNumber(3);
|
* _.toNumber(3.2);
|
||||||
* // => 3
|
* // => 3.2
|
||||||
*
|
*
|
||||||
* _.toNumber(Number.MIN_VALUE);
|
* _.toNumber(Number.MIN_VALUE);
|
||||||
* // => 5e-324
|
* // => 5e-324
|
||||||
@@ -419,8 +449,8 @@ function toInteger(value) {
|
|||||||
* _.toNumber(Infinity);
|
* _.toNumber(Infinity);
|
||||||
* // => Infinity
|
* // => Infinity
|
||||||
*
|
*
|
||||||
* _.toNumber('3');
|
* _.toNumber('3.2');
|
||||||
* // => 3
|
* // => 3.2
|
||||||
*/
|
*/
|
||||||
function toNumber(value) {
|
function toNumber(value) {
|
||||||
if (typeof value == 'number') {
|
if (typeof value == 'number') {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "lodash.chunk",
|
"name": "lodash.chunk",
|
||||||
"version": "4.0.5",
|
"version": "4.0.6",
|
||||||
"description": "The lodash method `_.chunk` exported as a module.",
|
"description": "The lodash method `_.chunk` exported as a module.",
|
||||||
"homepage": "https://lodash.com/",
|
"homepage": "https://lodash.com/",
|
||||||
"icon": "https://lodash.com/icon.svg",
|
"icon": "https://lodash.com/icon.svg",
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# lodash.debounce v4.0.5
|
# lodash.debounce v4.0.6
|
||||||
|
|
||||||
The [lodash](https://lodash.com/) method `_.debounce` exported as a [Node.js](https://nodejs.org/) module.
|
The [lodash](https://lodash.com/) method `_.debounce` exported as a [Node.js](https://nodejs.org/) module.
|
||||||
|
|
||||||
@@ -15,4 +15,4 @@ In Node.js:
|
|||||||
var debounce = require('lodash.debounce');
|
var debounce = require('lodash.debounce');
|
||||||
```
|
```
|
||||||
|
|
||||||
See the [documentation](https://lodash.com/docs#debounce) or [package source](https://github.com/lodash/lodash/blob/4.0.5-npm-packages/lodash.debounce) for more details.
|
See the [documentation](https://lodash.com/docs#debounce) or [package source](https://github.com/lodash/lodash/blob/4.0.6-npm-packages/lodash.debounce) for more details.
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* lodash 4.0.5 (Custom Build) <https://lodash.com/>
|
* lodash (Custom Build) <https://lodash.com/>
|
||||||
* Build: `lodash modularize exports="npm" -o ./`
|
* Build: `lodash modularize exports="npm" -o ./`
|
||||||
* Copyright jQuery Foundation and other contributors <https://jquery.org/>
|
* Copyright jQuery Foundation and other contributors <https://jquery.org/>
|
||||||
* Released under MIT license <https://lodash.com/license>
|
* Released under MIT license <https://lodash.com/license>
|
||||||
@@ -119,12 +119,13 @@ var now = Date.now;
|
|||||||
function debounce(func, wait, options) {
|
function debounce(func, wait, options) {
|
||||||
var lastArgs,
|
var lastArgs,
|
||||||
lastThis,
|
lastThis,
|
||||||
|
maxWait,
|
||||||
result,
|
result,
|
||||||
timerId,
|
timerId,
|
||||||
lastCallTime = 0,
|
lastCallTime = 0,
|
||||||
lastInvokeTime = 0,
|
lastInvokeTime = 0,
|
||||||
leading = false,
|
leading = false,
|
||||||
maxWait = false,
|
maxing = false,
|
||||||
trailing = true;
|
trailing = true;
|
||||||
|
|
||||||
if (typeof func != 'function') {
|
if (typeof func != 'function') {
|
||||||
@@ -133,7 +134,8 @@ function debounce(func, wait, options) {
|
|||||||
wait = toNumber(wait) || 0;
|
wait = toNumber(wait) || 0;
|
||||||
if (isObject(options)) {
|
if (isObject(options)) {
|
||||||
leading = !!options.leading;
|
leading = !!options.leading;
|
||||||
maxWait = 'maxWait' in options && nativeMax(toNumber(options.maxWait) || 0, wait);
|
maxing = 'maxWait' in options;
|
||||||
|
maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
|
||||||
trailing = 'trailing' in options ? !!options.trailing : trailing;
|
trailing = 'trailing' in options ? !!options.trailing : trailing;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -161,7 +163,7 @@ function debounce(func, wait, options) {
|
|||||||
timeSinceLastInvoke = time - lastInvokeTime,
|
timeSinceLastInvoke = time - lastInvokeTime,
|
||||||
result = wait - timeSinceLastCall;
|
result = wait - timeSinceLastCall;
|
||||||
|
|
||||||
return maxWait === false ? result : nativeMin(result, maxWait - timeSinceLastInvoke);
|
return maxing ? nativeMin(result, maxWait - timeSinceLastInvoke) : result;
|
||||||
}
|
}
|
||||||
|
|
||||||
function shouldInvoke(time) {
|
function shouldInvoke(time) {
|
||||||
@@ -172,7 +174,7 @@ function debounce(func, wait, options) {
|
|||||||
// trailing edge, the system time has gone backwards and we're treating
|
// trailing edge, the system time has gone backwards and we're treating
|
||||||
// it as the trailing edge, or we've hit the `maxWait` limit.
|
// it as the trailing edge, or we've hit the `maxWait` limit.
|
||||||
return (!lastCallTime || (timeSinceLastCall >= wait) ||
|
return (!lastCallTime || (timeSinceLastCall >= wait) ||
|
||||||
(timeSinceLastCall < 0) || (maxWait !== false && timeSinceLastInvoke >= maxWait));
|
(timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));
|
||||||
}
|
}
|
||||||
|
|
||||||
function timerExpired() {
|
function timerExpired() {
|
||||||
@@ -221,10 +223,12 @@ function debounce(func, wait, options) {
|
|||||||
if (timerId === undefined) {
|
if (timerId === undefined) {
|
||||||
return leadingEdge(lastCallTime);
|
return leadingEdge(lastCallTime);
|
||||||
}
|
}
|
||||||
// Handle invocations in a tight loop.
|
if (maxing) {
|
||||||
clearTimeout(timerId);
|
// Handle invocations in a tight loop.
|
||||||
timerId = setTimeout(timerExpired, wait);
|
clearTimeout(timerId);
|
||||||
return invokeFunc(lastCallTime);
|
timerId = setTimeout(timerExpired, wait);
|
||||||
|
return invokeFunc(lastCallTime);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (timerId === undefined) {
|
if (timerId === undefined) {
|
||||||
timerId = setTimeout(timerExpired, wait);
|
timerId = setTimeout(timerExpired, wait);
|
||||||
@@ -354,8 +358,8 @@ function isSymbol(value) {
|
|||||||
* @returns {number} Returns the number.
|
* @returns {number} Returns the number.
|
||||||
* @example
|
* @example
|
||||||
*
|
*
|
||||||
* _.toNumber(3);
|
* _.toNumber(3.2);
|
||||||
* // => 3
|
* // => 3.2
|
||||||
*
|
*
|
||||||
* _.toNumber(Number.MIN_VALUE);
|
* _.toNumber(Number.MIN_VALUE);
|
||||||
* // => 5e-324
|
* // => 5e-324
|
||||||
@@ -363,8 +367,8 @@ function isSymbol(value) {
|
|||||||
* _.toNumber(Infinity);
|
* _.toNumber(Infinity);
|
||||||
* // => Infinity
|
* // => Infinity
|
||||||
*
|
*
|
||||||
* _.toNumber('3');
|
* _.toNumber('3.2');
|
||||||
* // => 3
|
* // => 3.2
|
||||||
*/
|
*/
|
||||||
function toNumber(value) {
|
function toNumber(value) {
|
||||||
if (typeof value == 'number') {
|
if (typeof value == 'number') {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "lodash.debounce",
|
"name": "lodash.debounce",
|
||||||
"version": "4.0.5",
|
"version": "4.0.6",
|
||||||
"description": "The lodash method `_.debounce` exported as a module.",
|
"description": "The lodash method `_.debounce` exported as a module.",
|
||||||
"homepage": "https://lodash.com/",
|
"homepage": "https://lodash.com/",
|
||||||
"icon": "https://lodash.com/icon.svg",
|
"icon": "https://lodash.com/icon.svg",
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# lodash.isplainobject v4.0.5
|
# lodash.isplainobject v4.0.6
|
||||||
|
|
||||||
The [lodash](https://lodash.com/) method `_.isPlainObject` exported as a [Node.js](https://nodejs.org/) module.
|
The [lodash](https://lodash.com/) method `_.isPlainObject` exported as a [Node.js](https://nodejs.org/) module.
|
||||||
|
|
||||||
@@ -15,4 +15,4 @@ In Node.js:
|
|||||||
var isPlainObject = require('lodash.isplainobject');
|
var isPlainObject = require('lodash.isplainobject');
|
||||||
```
|
```
|
||||||
|
|
||||||
See the [documentation](https://lodash.com/docs#isPlainObject) or [package source](https://github.com/lodash/lodash/blob/4.0.5-npm-packages/lodash.isplainobject) for more details.
|
See the [documentation](https://lodash.com/docs#isPlainObject) or [package source](https://github.com/lodash/lodash/blob/4.0.6-npm-packages/lodash.isplainobject) for more details.
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ function isHostObject(value) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a function that invokes `func` with its first argument transformed.
|
* Creates a unary function that invokes `func` with its argument transformed.
|
||||||
*
|
*
|
||||||
* @private
|
* @private
|
||||||
* @param {Function} func The function to wrap.
|
* @param {Function} func The function to wrap.
|
||||||
@@ -44,10 +44,11 @@ function overArg(func, transform) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** Used for built-in method references. */
|
/** Used for built-in method references. */
|
||||||
var objectProto = Object.prototype;
|
var funcProto = Function.prototype,
|
||||||
|
objectProto = Object.prototype;
|
||||||
|
|
||||||
/** Used to resolve the decompiled source of functions. */
|
/** Used to resolve the decompiled source of functions. */
|
||||||
var funcToString = Function.prototype.toString;
|
var funcToString = funcProto.toString;
|
||||||
|
|
||||||
/** Used to check objects for own properties. */
|
/** Used to check objects for own properties. */
|
||||||
var hasOwnProperty = objectProto.hasOwnProperty;
|
var hasOwnProperty = objectProto.hasOwnProperty;
|
||||||
@@ -57,22 +58,13 @@ var objectCtorString = funcToString.call(Object);
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Used to resolve the
|
* Used to resolve the
|
||||||
* [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
|
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
||||||
* of values.
|
* of values.
|
||||||
*/
|
*/
|
||||||
var objectToString = objectProto.toString;
|
var objectToString = objectProto.toString;
|
||||||
|
|
||||||
/* Built-in method references for those with the same name as other `lodash` methods. */
|
/** Built-in value references. */
|
||||||
var nativeGetPrototype = Object.getPrototypeOf;
|
var getPrototype = overArg(Object.getPrototypeOf, Object);
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets the `[[Prototype]]` of `value`.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @param {*} value The value to query.
|
|
||||||
* @returns {null|Object} Returns the `[[Prototype]]`.
|
|
||||||
*/
|
|
||||||
var getPrototype = overArg(nativeGetPrototype, Object);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
||||||
@@ -111,8 +103,7 @@ function isObjectLike(value) {
|
|||||||
* @since 0.8.0
|
* @since 0.8.0
|
||||||
* @category Lang
|
* @category Lang
|
||||||
* @param {*} value The value to check.
|
* @param {*} value The value to check.
|
||||||
* @returns {boolean} Returns `true` if `value` is a plain object,
|
* @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
|
||||||
* else `false`.
|
|
||||||
* @example
|
* @example
|
||||||
*
|
*
|
||||||
* function Foo() {
|
* function Foo() {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "lodash.isplainobject",
|
"name": "lodash.isplainobject",
|
||||||
"version": "4.0.5",
|
"version": "4.0.6",
|
||||||
"description": "The lodash method `_.isPlainObject` exported as a module.",
|
"description": "The lodash method `_.isPlainObject` exported as a module.",
|
||||||
"homepage": "https://lodash.com/",
|
"homepage": "https://lodash.com/",
|
||||||
"icon": "https://lodash.com/icon.svg",
|
"icon": "https://lodash.com/icon.svg",
|
||||||
|
|||||||
@@ -1,23 +1,47 @@
|
|||||||
The MIT License (MIT)
|
Copyright jQuery Foundation and other contributors <https://jquery.org/>
|
||||||
|
|
||||||
Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/>
|
Based on Underscore.js, copyright Jeremy Ashkenas,
|
||||||
Based on Underscore.js, copyright 2009-2016 Jeremy Ashkenas,
|
|
||||||
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
|
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
This software consists of voluntary contributions made by many
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
individuals. For exact contribution history, see the revision history
|
||||||
in the Software without restriction, including without limitation the rights
|
available at https://github.com/lodash/lodash
|
||||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
||||||
copies of the Software, and to permit persons to whom the Software is
|
|
||||||
furnished to do so, subject to the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in all
|
The following license applies to all parts of this software except as
|
||||||
copies or substantial portions of the Software.
|
documented below:
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
====
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
Permission is hereby granted, free of charge, to any person obtaining
|
||||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
a copy of this software and associated documentation files (the
|
||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
"Software"), to deal in the Software without restriction, including
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
without limitation the rights to use, copy, modify, merge, publish,
|
||||||
SOFTWARE.
|
distribute, sublicense, and/or sell copies of the Software, and to
|
||||||
|
permit persons to whom the Software is furnished to do so, subject to
|
||||||
|
the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be
|
||||||
|
included in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||||
|
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||||
|
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||||
|
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||||
|
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||||
|
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||||
|
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
|
====
|
||||||
|
|
||||||
|
Copyright and related rights for sample code are waived via CC0. Sample
|
||||||
|
code is defined as all source code displayed within the prose of the
|
||||||
|
documentation.
|
||||||
|
|
||||||
|
CC0: http://creativecommons.org/publicdomain/zero/1.0/
|
||||||
|
|
||||||
|
====
|
||||||
|
|
||||||
|
Files located in the node_modules and vendor directories are externally
|
||||||
|
maintained libraries used by this software which have their own
|
||||||
|
licenses; we recommend you read them, as their terms may differ from the
|
||||||
|
terms above.
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# lodash.keys v4.0.5
|
# lodash.keys v4.0.6
|
||||||
|
|
||||||
The [lodash](https://lodash.com/) method `_.keys` exported as a [Node.js](https://nodejs.org/) module.
|
The [lodash](https://lodash.com/) method `_.keys` exported as a [Node.js](https://nodejs.org/) module.
|
||||||
|
|
||||||
@@ -15,4 +15,4 @@ In Node.js:
|
|||||||
var keys = require('lodash.keys');
|
var keys = require('lodash.keys');
|
||||||
```
|
```
|
||||||
|
|
||||||
See the [documentation](https://lodash.com/docs#keys) or [package source](https://github.com/lodash/lodash/blob/4.0.5-npm-packages/lodash.keys) for more details.
|
See the [documentation](https://lodash.com/docs#keys) or [package source](https://github.com/lodash/lodash/blob/4.0.6-npm-packages/lodash.keys) for more details.
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
/**
|
/**
|
||||||
* lodash 4.0.5 (Custom Build) <https://lodash.com/>
|
* lodash 4.0.6 (Custom Build) <https://lodash.com/>
|
||||||
* Build: `lodash modularize exports="npm" -o ./`
|
* Build: `lodash modularize exports="npm" -o ./`
|
||||||
* Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/>
|
* Copyright jQuery Foundation and other contributors <https://jquery.org/>
|
||||||
|
* Released under MIT license <https://lodash.com/license>
|
||||||
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
||||||
* Copyright 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
||||||
* Available under MIT license <https://lodash.com/license>
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/** Used as references for various `Number` constants. */
|
/** Used as references for various `Number` constants. */
|
||||||
@@ -59,17 +59,18 @@ var objectProto = Object.prototype;
|
|||||||
var hasOwnProperty = objectProto.hasOwnProperty;
|
var hasOwnProperty = objectProto.hasOwnProperty;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
|
* Used to resolve the
|
||||||
|
* [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
|
||||||
* of values.
|
* of values.
|
||||||
*/
|
*/
|
||||||
var objectToString = objectProto.toString;
|
var objectToString = objectProto.toString;
|
||||||
|
|
||||||
/** Built-in value references. */
|
/** Built-in value references. */
|
||||||
var getPrototypeOf = Object.getPrototypeOf,
|
var propertyIsEnumerable = objectProto.propertyIsEnumerable;
|
||||||
propertyIsEnumerable = objectProto.propertyIsEnumerable;
|
|
||||||
|
|
||||||
/* Built-in method references for those with the same name as other `lodash` methods. */
|
/* Built-in method references for those with the same name as other `lodash` methods. */
|
||||||
var nativeKeys = Object.keys;
|
var nativeGetPrototype = Object.getPrototypeOf,
|
||||||
|
nativeKeys = Object.keys;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The base implementation of `_.has` without support for deep paths.
|
* The base implementation of `_.has` without support for deep paths.
|
||||||
@@ -84,7 +85,7 @@ function baseHas(object, key) {
|
|||||||
// that are composed entirely of index properties, return `false` for
|
// that are composed entirely of index properties, return `false` for
|
||||||
// `hasOwnProperty` checks of them.
|
// `hasOwnProperty` checks of them.
|
||||||
return hasOwnProperty.call(object, key) ||
|
return hasOwnProperty.call(object, key) ||
|
||||||
(typeof object == 'object' && key in object && getPrototypeOf(object) === null);
|
(typeof object == 'object' && key in object && getPrototype(object) === null);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -115,8 +116,9 @@ function baseProperty(key) {
|
|||||||
/**
|
/**
|
||||||
* Gets the "length" property value of `object`.
|
* Gets the "length" property value of `object`.
|
||||||
*
|
*
|
||||||
* **Note:** This function is used to avoid a [JIT bug](https://bugs.webkit.org/show_bug.cgi?id=142792)
|
* **Note:** This function is used to avoid a
|
||||||
* that affects Safari on at least iOS 8.1-8.3 ARM64.
|
* [JIT bug](https://bugs.webkit.org/show_bug.cgi?id=142792) that affects
|
||||||
|
* Safari on at least iOS 8.1-8.3 ARM64.
|
||||||
*
|
*
|
||||||
* @private
|
* @private
|
||||||
* @param {Object} object The object to query.
|
* @param {Object} object The object to query.
|
||||||
@@ -124,6 +126,17 @@ function baseProperty(key) {
|
|||||||
*/
|
*/
|
||||||
var getLength = baseProperty('length');
|
var getLength = baseProperty('length');
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the `[[Prototype]]` of `value`.
|
||||||
|
*
|
||||||
|
* @private
|
||||||
|
* @param {*} value The value to query.
|
||||||
|
* @returns {null|Object} Returns the `[[Prototype]]`.
|
||||||
|
*/
|
||||||
|
function getPrototype(value) {
|
||||||
|
return nativeGetPrototype(Object(value));
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates an array of index keys for `object` values of arrays,
|
* Creates an array of index keys for `object` values of arrays,
|
||||||
* `arguments` objects, and strings, otherwise `null` is returned.
|
* `arguments` objects, and strings, otherwise `null` is returned.
|
||||||
@@ -160,9 +173,11 @@ function isPrototype(value) {
|
|||||||
*
|
*
|
||||||
* @static
|
* @static
|
||||||
* @memberOf _
|
* @memberOf _
|
||||||
|
* @since 0.1.0
|
||||||
* @category Lang
|
* @category Lang
|
||||||
* @param {*} value The value to check.
|
* @param {*} value The value to check.
|
||||||
* @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
|
* @returns {boolean} Returns `true` if `value` is correctly classified,
|
||||||
|
* else `false`.
|
||||||
* @example
|
* @example
|
||||||
*
|
*
|
||||||
* _.isArguments(function() { return arguments; }());
|
* _.isArguments(function() { return arguments; }());
|
||||||
@@ -182,10 +197,12 @@ function isArguments(value) {
|
|||||||
*
|
*
|
||||||
* @static
|
* @static
|
||||||
* @memberOf _
|
* @memberOf _
|
||||||
|
* @since 0.1.0
|
||||||
* @type {Function}
|
* @type {Function}
|
||||||
* @category Lang
|
* @category Lang
|
||||||
* @param {*} value The value to check.
|
* @param {*} value The value to check.
|
||||||
* @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
|
* @returns {boolean} Returns `true` if `value` is correctly classified,
|
||||||
|
* else `false`.
|
||||||
* @example
|
* @example
|
||||||
*
|
*
|
||||||
* _.isArray([1, 2, 3]);
|
* _.isArray([1, 2, 3]);
|
||||||
@@ -209,6 +226,7 @@ var isArray = Array.isArray;
|
|||||||
*
|
*
|
||||||
* @static
|
* @static
|
||||||
* @memberOf _
|
* @memberOf _
|
||||||
|
* @since 4.0.0
|
||||||
* @category Lang
|
* @category Lang
|
||||||
* @param {*} value The value to check.
|
* @param {*} value The value to check.
|
||||||
* @returns {boolean} Returns `true` if `value` is array-like, else `false`.
|
* @returns {boolean} Returns `true` if `value` is array-like, else `false`.
|
||||||
@@ -236,9 +254,11 @@ function isArrayLike(value) {
|
|||||||
*
|
*
|
||||||
* @static
|
* @static
|
||||||
* @memberOf _
|
* @memberOf _
|
||||||
|
* @since 4.0.0
|
||||||
* @category Lang
|
* @category Lang
|
||||||
* @param {*} value The value to check.
|
* @param {*} value The value to check.
|
||||||
* @returns {boolean} Returns `true` if `value` is an array-like object, else `false`.
|
* @returns {boolean} Returns `true` if `value` is an array-like object,
|
||||||
|
* else `false`.
|
||||||
* @example
|
* @example
|
||||||
*
|
*
|
||||||
* _.isArrayLikeObject([1, 2, 3]);
|
* _.isArrayLikeObject([1, 2, 3]);
|
||||||
@@ -262,9 +282,11 @@ function isArrayLikeObject(value) {
|
|||||||
*
|
*
|
||||||
* @static
|
* @static
|
||||||
* @memberOf _
|
* @memberOf _
|
||||||
|
* @since 0.1.0
|
||||||
* @category Lang
|
* @category Lang
|
||||||
* @param {*} value The value to check.
|
* @param {*} value The value to check.
|
||||||
* @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
|
* @returns {boolean} Returns `true` if `value` is correctly classified,
|
||||||
|
* else `false`.
|
||||||
* @example
|
* @example
|
||||||
*
|
*
|
||||||
* _.isFunction(_);
|
* _.isFunction(_);
|
||||||
@@ -284,13 +306,16 @@ function isFunction(value) {
|
|||||||
/**
|
/**
|
||||||
* Checks if `value` is a valid array-like length.
|
* Checks if `value` is a valid array-like length.
|
||||||
*
|
*
|
||||||
* **Note:** This function is loosely based on [`ToLength`](http://ecma-international.org/ecma-262/6.0/#sec-tolength).
|
* **Note:** This function is loosely based on
|
||||||
|
* [`ToLength`](http://ecma-international.org/ecma-262/6.0/#sec-tolength).
|
||||||
*
|
*
|
||||||
* @static
|
* @static
|
||||||
* @memberOf _
|
* @memberOf _
|
||||||
|
* @since 4.0.0
|
||||||
* @category Lang
|
* @category Lang
|
||||||
* @param {*} value The value to check.
|
* @param {*} value The value to check.
|
||||||
* @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
|
* @returns {boolean} Returns `true` if `value` is a valid length,
|
||||||
|
* else `false`.
|
||||||
* @example
|
* @example
|
||||||
*
|
*
|
||||||
* _.isLength(3);
|
* _.isLength(3);
|
||||||
@@ -311,11 +336,13 @@ function isLength(value) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`.
|
* Checks if `value` is the
|
||||||
* (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
* [language type](http://www.ecma-international.org/ecma-262/6.0/#sec-ecmascript-language-types)
|
||||||
|
* of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
||||||
*
|
*
|
||||||
* @static
|
* @static
|
||||||
* @memberOf _
|
* @memberOf _
|
||||||
|
* @since 0.1.0
|
||||||
* @category Lang
|
* @category Lang
|
||||||
* @param {*} value The value to check.
|
* @param {*} value The value to check.
|
||||||
* @returns {boolean} Returns `true` if `value` is an object, else `false`.
|
* @returns {boolean} Returns `true` if `value` is an object, else `false`.
|
||||||
@@ -344,6 +371,7 @@ function isObject(value) {
|
|||||||
*
|
*
|
||||||
* @static
|
* @static
|
||||||
* @memberOf _
|
* @memberOf _
|
||||||
|
* @since 4.0.0
|
||||||
* @category Lang
|
* @category Lang
|
||||||
* @param {*} value The value to check.
|
* @param {*} value The value to check.
|
||||||
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
|
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
|
||||||
@@ -369,10 +397,12 @@ function isObjectLike(value) {
|
|||||||
* Checks if `value` is classified as a `String` primitive or object.
|
* Checks if `value` is classified as a `String` primitive or object.
|
||||||
*
|
*
|
||||||
* @static
|
* @static
|
||||||
|
* @since 0.1.0
|
||||||
* @memberOf _
|
* @memberOf _
|
||||||
* @category Lang
|
* @category Lang
|
||||||
* @param {*} value The value to check.
|
* @param {*} value The value to check.
|
||||||
* @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
|
* @returns {boolean} Returns `true` if `value` is correctly classified,
|
||||||
|
* else `false`.
|
||||||
* @example
|
* @example
|
||||||
*
|
*
|
||||||
* _.isString('abc');
|
* _.isString('abc');
|
||||||
@@ -394,6 +424,7 @@ function isString(value) {
|
|||||||
* for more details.
|
* for more details.
|
||||||
*
|
*
|
||||||
* @static
|
* @static
|
||||||
|
* @since 0.1.0
|
||||||
* @memberOf _
|
* @memberOf _
|
||||||
* @category Object
|
* @category Object
|
||||||
* @param {Object} object The object to query.
|
* @param {Object} object The object to query.
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "lodash.keys",
|
"name": "lodash.keys",
|
||||||
"version": "4.0.5",
|
"version": "4.0.6",
|
||||||
"description": "The lodash method `_.keys` exported as a module.",
|
"description": "The lodash method `_.keys` exported as a module.",
|
||||||
"homepage": "https://lodash.com/",
|
"homepage": "https://lodash.com/",
|
||||||
"icon": "https://lodash.com/icon.svg",
|
"icon": "https://lodash.com/icon.svg",
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# lodash.rangeright v4.0.5
|
# lodash.rangeright v4.0.6
|
||||||
|
|
||||||
The [lodash](https://lodash.com/) method `_.rangeRight` exported as a [Node.js](https://nodejs.org/) module.
|
The [lodash](https://lodash.com/) method `_.rangeRight` exported as a [Node.js](https://nodejs.org/) module.
|
||||||
|
|
||||||
@@ -15,4 +15,4 @@ In Node.js:
|
|||||||
var rangeRight = require('lodash.rangeright');
|
var rangeRight = require('lodash.rangeright');
|
||||||
```
|
```
|
||||||
|
|
||||||
See the [documentation](https://lodash.com/docs#rangeRight) or [package source](https://github.com/lodash/lodash/blob/4.0.5-npm-packages/lodash.rangeright) for more details.
|
See the [documentation](https://lodash.com/docs#rangeRight) or [package source](https://github.com/lodash/lodash/blob/4.0.6-npm-packages/lodash.rangeright) for more details.
|
||||||
|
|||||||
@@ -34,6 +34,19 @@ var reIsUint = /^(?:0|[1-9]\d*)$/;
|
|||||||
/** Built-in method references without a dependency on `root`. */
|
/** Built-in method references without a dependency on `root`. */
|
||||||
var freeParseInt = parseInt;
|
var freeParseInt = parseInt;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The base implementation of `_.property` without support for deep paths.
|
||||||
|
*
|
||||||
|
* @private
|
||||||
|
* @param {string} key The key of the property to get.
|
||||||
|
* @returns {Function} Returns the new accessor function.
|
||||||
|
*/
|
||||||
|
function baseProperty(key) {
|
||||||
|
return function(object) {
|
||||||
|
return object == null ? undefined : object[key];
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
/** Used for built-in method references. */
|
/** Used for built-in method references. */
|
||||||
var objectProto = Object.prototype;
|
var objectProto = Object.prototype;
|
||||||
|
|
||||||
@@ -48,22 +61,9 @@ var objectToString = objectProto.toString;
|
|||||||
var nativeCeil = Math.ceil,
|
var nativeCeil = Math.ceil,
|
||||||
nativeMax = Math.max;
|
nativeMax = Math.max;
|
||||||
|
|
||||||
/**
|
|
||||||
* The base implementation of `_.property` without support for deep paths.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @param {string} key The key of the property to get.
|
|
||||||
* @returns {Function} Returns the new accessor function.
|
|
||||||
*/
|
|
||||||
function baseProperty(key) {
|
|
||||||
return function(object) {
|
|
||||||
return object == null ? undefined : object[key];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The base implementation of `_.range` and `_.rangeRight` which doesn't
|
* The base implementation of `_.range` and `_.rangeRight` which doesn't
|
||||||
* coerce arguments to numbers.
|
* coerce arguments.
|
||||||
*
|
*
|
||||||
* @private
|
* @private
|
||||||
* @param {number} start The start of the range.
|
* @param {number} start The start of the range.
|
||||||
@@ -176,8 +176,8 @@ function isIterateeCall(value, index, object) {
|
|||||||
* @returns {boolean} Returns `true` if the values are equivalent, else `false`.
|
* @returns {boolean} Returns `true` if the values are equivalent, else `false`.
|
||||||
* @example
|
* @example
|
||||||
*
|
*
|
||||||
* var object = { 'user': 'fred' };
|
* var object = { 'a': 1 };
|
||||||
* var other = { 'user': 'fred' };
|
* var other = { 'a': 1 };
|
||||||
*
|
*
|
||||||
* _.eq(object, object);
|
* _.eq(object, object);
|
||||||
* // => true
|
* // => true
|
||||||
@@ -235,8 +235,7 @@ function isArrayLike(value) {
|
|||||||
* @since 0.1.0
|
* @since 0.1.0
|
||||||
* @category Lang
|
* @category Lang
|
||||||
* @param {*} value The value to check.
|
* @param {*} value The value to check.
|
||||||
* @returns {boolean} Returns `true` if `value` is correctly classified,
|
* @returns {boolean} Returns `true` if `value` is a function, else `false`.
|
||||||
* else `false`.
|
|
||||||
* @example
|
* @example
|
||||||
*
|
*
|
||||||
* _.isFunction(_);
|
* _.isFunction(_);
|
||||||
@@ -351,8 +350,7 @@ function isObjectLike(value) {
|
|||||||
* @since 4.0.0
|
* @since 4.0.0
|
||||||
* @category Lang
|
* @category Lang
|
||||||
* @param {*} value The value to check.
|
* @param {*} value The value to check.
|
||||||
* @returns {boolean} Returns `true` if `value` is correctly classified,
|
* @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
|
||||||
* else `false`.
|
|
||||||
* @example
|
* @example
|
||||||
*
|
*
|
||||||
* _.isSymbol(Symbol.iterator);
|
* _.isSymbol(Symbol.iterator);
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "lodash.rangeright",
|
"name": "lodash.rangeright",
|
||||||
"version": "4.0.5",
|
"version": "4.0.6",
|
||||||
"description": "The lodash method `_.rangeRight` exported as a module.",
|
"description": "The lodash method `_.rangeRight` exported as a module.",
|
||||||
"homepage": "https://lodash.com/",
|
"homepage": "https://lodash.com/",
|
||||||
"icon": "https://lodash.com/icon.svg",
|
"icon": "https://lodash.com/icon.svg",
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# lodash.size v4.0.5
|
# lodash.size v4.0.6
|
||||||
|
|
||||||
The [lodash](https://lodash.com/) method `_.size` exported as a [Node.js](https://nodejs.org/) module.
|
The [lodash](https://lodash.com/) method `_.size` exported as a [Node.js](https://nodejs.org/) module.
|
||||||
|
|
||||||
@@ -15,4 +15,4 @@ In Node.js:
|
|||||||
var size = require('lodash.size');
|
var size = require('lodash.size');
|
||||||
```
|
```
|
||||||
|
|
||||||
See the [documentation](https://lodash.com/docs#size) or [package source](https://github.com/lodash/lodash/blob/4.0.5-npm-packages/lodash.size) for more details.
|
See the [documentation](https://lodash.com/docs#size) or [package source](https://github.com/lodash/lodash/blob/4.0.6-npm-packages/lodash.size) for more details.
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* lodash 4.0.5 (Custom Build) <https://lodash.com/>
|
* lodash (Custom Build) <https://lodash.com/>
|
||||||
* Build: `lodash modularize exports="npm" -o ./`
|
* Build: `lodash modularize exports="npm" -o ./`
|
||||||
* Copyright jQuery Foundation and other contributors <https://jquery.org/>
|
* Copyright jQuery Foundation and other contributors <https://jquery.org/>
|
||||||
* Released under MIT license <https://lodash.com/license>
|
* Released under MIT license <https://lodash.com/license>
|
||||||
@@ -24,7 +24,10 @@ var funcTag = '[object Function]',
|
|||||||
|
|
||||||
var dataViewTag = '[object DataView]';
|
var dataViewTag = '[object DataView]';
|
||||||
|
|
||||||
/** Used to match `RegExp` [syntax characters](http://ecma-international.org/ecma-262/6.0/#sec-patterns). */
|
/**
|
||||||
|
* Used to match `RegExp`
|
||||||
|
* [syntax characters](http://ecma-international.org/ecma-262/6.0/#sec-patterns).
|
||||||
|
*/
|
||||||
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
||||||
|
|
||||||
/** Used to detect host constructors (Safari). */
|
/** Used to detect host constructors (Safari). */
|
||||||
@@ -106,7 +109,8 @@ var funcToString = Function.prototype.toString;
|
|||||||
var hasOwnProperty = objectProto.hasOwnProperty;
|
var hasOwnProperty = objectProto.hasOwnProperty;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
|
* Used to resolve the
|
||||||
|
* [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
|
||||||
* of values.
|
* of values.
|
||||||
*/
|
*/
|
||||||
var objectToString = objectProto.toString;
|
var objectToString = objectProto.toString;
|
||||||
@@ -125,18 +129,18 @@ var DataView = getNative(root, 'DataView'),
|
|||||||
WeakMap = getNative(root, 'WeakMap');
|
WeakMap = getNative(root, 'WeakMap');
|
||||||
|
|
||||||
/** Used to detect maps, sets, and weakmaps. */
|
/** Used to detect maps, sets, and weakmaps. */
|
||||||
var dataViewCtorString = DataView ? (DataView + '') : '',
|
var dataViewCtorString = toSource(DataView),
|
||||||
mapCtorString = Map ? funcToString.call(Map) : '',
|
mapCtorString = toSource(Map),
|
||||||
promiseCtorString = Promise ? funcToString.call(Promise) : '',
|
promiseCtorString = toSource(Promise),
|
||||||
setCtorString = Set ? funcToString.call(Set) : '',
|
setCtorString = toSource(Set),
|
||||||
weakMapCtorString = WeakMap ? funcToString.call(WeakMap) : '';
|
weakMapCtorString = toSource(WeakMap);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The base implementation of `_.property` without support for deep paths.
|
* The base implementation of `_.property` without support for deep paths.
|
||||||
*
|
*
|
||||||
* @private
|
* @private
|
||||||
* @param {string} key The key of the property to get.
|
* @param {string} key The key of the property to get.
|
||||||
* @returns {Function} Returns the new function.
|
* @returns {Function} Returns the new accessor function.
|
||||||
*/
|
*/
|
||||||
function baseProperty(key) {
|
function baseProperty(key) {
|
||||||
return function(object) {
|
return function(object) {
|
||||||
@@ -190,8 +194,8 @@ if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||
|
|||||||
(WeakMap && getTag(new WeakMap) != weakMapTag)) {
|
(WeakMap && getTag(new WeakMap) != weakMapTag)) {
|
||||||
getTag = function(value) {
|
getTag = function(value) {
|
||||||
var result = objectToString.call(value),
|
var result = objectToString.call(value),
|
||||||
Ctor = result == objectTag ? value.constructor : null,
|
Ctor = result == objectTag ? value.constructor : undefined,
|
||||||
ctorString = typeof Ctor == 'function' ? funcToString.call(Ctor) : '';
|
ctorString = Ctor ? toSource(Ctor) : undefined;
|
||||||
|
|
||||||
if (ctorString) {
|
if (ctorString) {
|
||||||
switch (ctorString) {
|
switch (ctorString) {
|
||||||
@@ -206,6 +210,25 @@ if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Converts `func` to its source code.
|
||||||
|
*
|
||||||
|
* @private
|
||||||
|
* @param {Function} func The function to process.
|
||||||
|
* @returns {string} Returns the source code.
|
||||||
|
*/
|
||||||
|
function toSource(func) {
|
||||||
|
if (func != null) {
|
||||||
|
try {
|
||||||
|
return funcToString.call(func);
|
||||||
|
} catch (e) {}
|
||||||
|
try {
|
||||||
|
return (func + '');
|
||||||
|
} catch (e) {}
|
||||||
|
}
|
||||||
|
return '';
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the size of `collection` by returning its length for array-like
|
* Gets the size of `collection` by returning its length for array-like
|
||||||
* values or the number of own enumerable string keyed properties for objects.
|
* values or the number of own enumerable string keyed properties for objects.
|
||||||
@@ -359,8 +382,9 @@ function isLength(value) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`.
|
* Checks if `value` is the
|
||||||
* (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
* [language type](http://www.ecma-international.org/ecma-262/6.0/#sec-ecmascript-language-types)
|
||||||
|
* of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
||||||
*
|
*
|
||||||
* @static
|
* @static
|
||||||
* @memberOf _
|
* @memberOf _
|
||||||
@@ -434,14 +458,11 @@ function isObjectLike(value) {
|
|||||||
* // => false
|
* // => false
|
||||||
*/
|
*/
|
||||||
function isNative(value) {
|
function isNative(value) {
|
||||||
if (value == null) {
|
if (!isObject(value)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (isFunction(value)) {
|
var pattern = (isFunction(value) || isHostObject(value)) ? reIsNative : reIsHostCtor;
|
||||||
return reIsNative.test(funcToString.call(value));
|
return pattern.test(toSource(value));
|
||||||
}
|
|
||||||
return isObjectLike(value) &&
|
|
||||||
(isHostObject(value) ? reIsNative : reIsHostCtor).test(value);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "lodash.size",
|
"name": "lodash.size",
|
||||||
"version": "4.0.5",
|
"version": "4.0.6",
|
||||||
"description": "The lodash method `_.size` exported as a module.",
|
"description": "The lodash method `_.size` exported as a module.",
|
||||||
"homepage": "https://lodash.com/",
|
"homepage": "https://lodash.com/",
|
||||||
"icon": "https://lodash.com/icon.svg",
|
"icon": "https://lodash.com/icon.svg",
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# lodash.slice v4.0.5
|
# lodash.slice v4.0.6
|
||||||
|
|
||||||
The [lodash](https://lodash.com/) method `_.slice` exported as a [Node.js](https://nodejs.org/) module.
|
The [lodash](https://lodash.com/) method `_.slice` exported as a [Node.js](https://nodejs.org/) module.
|
||||||
|
|
||||||
@@ -15,4 +15,4 @@ In Node.js:
|
|||||||
var slice = require('lodash.slice');
|
var slice = require('lodash.slice');
|
||||||
```
|
```
|
||||||
|
|
||||||
See the [documentation](https://lodash.com/docs#slice) or [package source](https://github.com/lodash/lodash/blob/4.0.5-npm-packages/lodash.slice) for more details.
|
See the [documentation](https://lodash.com/docs#slice) or [package source](https://github.com/lodash/lodash/blob/4.0.6-npm-packages/lodash.slice) for more details.
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* lodash 4.0.5 (Custom Build) <https://lodash.com/>
|
* lodash (Custom Build) <https://lodash.com/>
|
||||||
* Build: `lodash modularize exports="npm" -o ./`
|
* Build: `lodash modularize exports="npm" -o ./`
|
||||||
* Copyright jQuery Foundation and other contributors <https://jquery.org/>
|
* Copyright jQuery Foundation and other contributors <https://jquery.org/>
|
||||||
* Released under MIT license <https://lodash.com/license>
|
* Released under MIT license <https://lodash.com/license>
|
||||||
@@ -37,20 +37,6 @@ var reIsUint = /^(?:0|[1-9]\d*)$/;
|
|||||||
/** Built-in method references without a dependency on `root`. */
|
/** Built-in method references without a dependency on `root`. */
|
||||||
var freeParseInt = parseInt;
|
var freeParseInt = parseInt;
|
||||||
|
|
||||||
/**
|
|
||||||
* Checks if `value` is a valid array-like index.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @param {*} value The value to check.
|
|
||||||
* @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
|
|
||||||
* @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
|
|
||||||
*/
|
|
||||||
function isIndex(value, length) {
|
|
||||||
value = (typeof value == 'number' || reIsUint.test(value)) ? +value : -1;
|
|
||||||
length = length == null ? MAX_SAFE_INTEGER : length;
|
|
||||||
return value > -1 && value % 1 == 0 && value < length;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Used for built-in method references. */
|
/** Used for built-in method references. */
|
||||||
var objectProto = Object.prototype;
|
var objectProto = Object.prototype;
|
||||||
|
|
||||||
@@ -66,7 +52,7 @@ var objectToString = objectProto.toString;
|
|||||||
*
|
*
|
||||||
* @private
|
* @private
|
||||||
* @param {string} key The key of the property to get.
|
* @param {string} key The key of the property to get.
|
||||||
* @returns {Function} Returns the new function.
|
* @returns {Function} Returns the new accessor function.
|
||||||
*/
|
*/
|
||||||
function baseProperty(key) {
|
function baseProperty(key) {
|
||||||
return function(object) {
|
return function(object) {
|
||||||
@@ -87,6 +73,21 @@ function baseProperty(key) {
|
|||||||
*/
|
*/
|
||||||
var getLength = baseProperty('length');
|
var getLength = baseProperty('length');
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Checks if `value` is a valid array-like index.
|
||||||
|
*
|
||||||
|
* @private
|
||||||
|
* @param {*} value The value to check.
|
||||||
|
* @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
|
||||||
|
* @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
|
||||||
|
*/
|
||||||
|
function isIndex(value, length) {
|
||||||
|
length = length == null ? MAX_SAFE_INTEGER : length;
|
||||||
|
return !!length &&
|
||||||
|
(typeof value == 'number' || reIsUint.test(value)) &&
|
||||||
|
(value > -1 && value % 1 == 0 && value < length);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks if the given arguments are from an iteratee call.
|
* Checks if the given arguments are from an iteratee call.
|
||||||
*
|
*
|
||||||
@@ -347,6 +348,41 @@ function isSymbol(value) {
|
|||||||
(isObjectLike(value) && objectToString.call(value) == symbolTag);
|
(isObjectLike(value) && objectToString.call(value) == symbolTag);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Converts `value` to a finite number.
|
||||||
|
*
|
||||||
|
* @static
|
||||||
|
* @memberOf _
|
||||||
|
* @since 4.12.0
|
||||||
|
* @category Lang
|
||||||
|
* @param {*} value The value to convert.
|
||||||
|
* @returns {number} Returns the converted number.
|
||||||
|
* @example
|
||||||
|
*
|
||||||
|
* _.toFinite(3.2);
|
||||||
|
* // => 3.2
|
||||||
|
*
|
||||||
|
* _.toFinite(Number.MIN_VALUE);
|
||||||
|
* // => 5e-324
|
||||||
|
*
|
||||||
|
* _.toFinite(Infinity);
|
||||||
|
* // => 1.7976931348623157e+308
|
||||||
|
*
|
||||||
|
* _.toFinite('3.2');
|
||||||
|
* // => 3.2
|
||||||
|
*/
|
||||||
|
function toFinite(value) {
|
||||||
|
if (!value) {
|
||||||
|
return value === 0 ? value : 0;
|
||||||
|
}
|
||||||
|
value = toNumber(value);
|
||||||
|
if (value === INFINITY || value === -INFINITY) {
|
||||||
|
var sign = (value < 0 ? -1 : 1);
|
||||||
|
return sign * MAX_INTEGER;
|
||||||
|
}
|
||||||
|
return value === value ? value : 0;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Converts `value` to an integer.
|
* Converts `value` to an integer.
|
||||||
*
|
*
|
||||||
@@ -361,7 +397,7 @@ function isSymbol(value) {
|
|||||||
* @returns {number} Returns the converted integer.
|
* @returns {number} Returns the converted integer.
|
||||||
* @example
|
* @example
|
||||||
*
|
*
|
||||||
* _.toInteger(3);
|
* _.toInteger(3.2);
|
||||||
* // => 3
|
* // => 3
|
||||||
*
|
*
|
||||||
* _.toInteger(Number.MIN_VALUE);
|
* _.toInteger(Number.MIN_VALUE);
|
||||||
@@ -370,20 +406,14 @@ function isSymbol(value) {
|
|||||||
* _.toInteger(Infinity);
|
* _.toInteger(Infinity);
|
||||||
* // => 1.7976931348623157e+308
|
* // => 1.7976931348623157e+308
|
||||||
*
|
*
|
||||||
* _.toInteger('3');
|
* _.toInteger('3.2');
|
||||||
* // => 3
|
* // => 3
|
||||||
*/
|
*/
|
||||||
function toInteger(value) {
|
function toInteger(value) {
|
||||||
if (!value) {
|
var result = toFinite(value),
|
||||||
return value === 0 ? value : 0;
|
remainder = result % 1;
|
||||||
}
|
|
||||||
value = toNumber(value);
|
return result === result ? (remainder ? result - remainder : result) : 0;
|
||||||
if (value === INFINITY || value === -INFINITY) {
|
|
||||||
var sign = (value < 0 ? -1 : 1);
|
|
||||||
return sign * MAX_INTEGER;
|
|
||||||
}
|
|
||||||
var remainder = value % 1;
|
|
||||||
return value === value ? (remainder ? value - remainder : value) : 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -397,8 +427,8 @@ function toInteger(value) {
|
|||||||
* @returns {number} Returns the number.
|
* @returns {number} Returns the number.
|
||||||
* @example
|
* @example
|
||||||
*
|
*
|
||||||
* _.toNumber(3);
|
* _.toNumber(3.2);
|
||||||
* // => 3
|
* // => 3.2
|
||||||
*
|
*
|
||||||
* _.toNumber(Number.MIN_VALUE);
|
* _.toNumber(Number.MIN_VALUE);
|
||||||
* // => 5e-324
|
* // => 5e-324
|
||||||
@@ -406,8 +436,8 @@ function toInteger(value) {
|
|||||||
* _.toNumber(Infinity);
|
* _.toNumber(Infinity);
|
||||||
* // => Infinity
|
* // => Infinity
|
||||||
*
|
*
|
||||||
* _.toNumber('3');
|
* _.toNumber('3.2');
|
||||||
* // => 3
|
* // => 3.2
|
||||||
*/
|
*/
|
||||||
function toNumber(value) {
|
function toNumber(value) {
|
||||||
if (typeof value == 'number') {
|
if (typeof value == 'number') {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "lodash.slice",
|
"name": "lodash.slice",
|
||||||
"version": "4.0.5",
|
"version": "4.0.6",
|
||||||
"description": "The lodash method `_.slice` exported as a module.",
|
"description": "The lodash method `_.slice` exported as a module.",
|
||||||
"homepage": "https://lodash.com/",
|
"homepage": "https://lodash.com/",
|
||||||
"icon": "https://lodash.com/icon.svg",
|
"icon": "https://lodash.com/icon.svg",
|
||||||
|
|||||||
Reference in New Issue
Block a user