Comparing version 4.2.1 to 4.3.0
@@ -6,2 +6,3 @@ import Stack from './_Stack'; | ||
import baseForOwn from './_baseForOwn'; | ||
import cloneBuffer from './_cloneBuffer'; | ||
import copyArray from './_copyArray'; | ||
@@ -14,2 +15,3 @@ import copySymbols from './_copySymbols'; | ||
import isArray from './isArray'; | ||
import isBuffer from './isBuffer'; | ||
import isHostObject from './_isHostObject'; | ||
@@ -96,2 +98,5 @@ import isObject from './isObject'; | ||
if (isBuffer(value)) { | ||
return cloneBuffer(value, isDeep); | ||
} | ||
if (tag == objectTag || tag == argsTag || (isFunc && !object)) { | ||
@@ -98,0 +103,0 @@ if (isHostObject(value)) { |
@@ -11,3 +11,3 @@ /** Used as the `TypeError` message for "Functions" methods. */ | ||
* @param {number} wait The number of milliseconds to delay invocation. | ||
* @param {Object} args The arguments provide to `func`. | ||
* @param {Object} args The arguments to provide to `func`. | ||
* @returns {number} Returns the timer id. | ||
@@ -14,0 +14,0 @@ */ |
@@ -6,3 +6,3 @@ import arrayFilter from './_arrayFilter'; | ||
* The base implementation of `_.functions` which creates an array of | ||
* `object` function property names filtered from those provided. | ||
* `object` function property names filtered from `props`. | ||
* | ||
@@ -9,0 +9,0 @@ * @private |
@@ -1,16 +0,17 @@ | ||
import Uint8Array from './_Uint8Array'; | ||
/** | ||
* Creates a clone of `buffer`. | ||
* Creates a clone of `buffer`. | ||
* | ||
* @private | ||
* @param {ArrayBuffer} buffer The array buffer to clone. | ||
* @returns {ArrayBuffer} Returns the cloned array buffer. | ||
* @param {Buffer} buffer The buffer to clone. | ||
* @param {boolean} [isDeep] Specify a deep clone. | ||
* @returns {Buffer} Returns the cloned buffer. | ||
*/ | ||
function cloneBuffer(buffer) { | ||
function cloneBuffer(buffer, isDeep) { | ||
if (isDeep) { | ||
return buffer.slice(); | ||
} | ||
var Ctor = buffer.constructor, | ||
result = new Ctor(buffer.byteLength), | ||
view = new Uint8Array(result); | ||
result = new Ctor(buffer.length); | ||
view.set(new Uint8Array(buffer)); | ||
buffer.copy(result); | ||
return result; | ||
@@ -17,0 +18,0 @@ } |
@@ -1,2 +0,2 @@ | ||
import cloneBuffer from './_cloneBuffer'; | ||
import cloneArrayBuffer from './_cloneArrayBuffer'; | ||
@@ -15,5 +15,5 @@ /** | ||
return new Ctor(isDeep ? cloneBuffer(buffer) : buffer, typedArray.byteOffset, typedArray.length); | ||
return new Ctor(isDeep ? cloneArrayBuffer(buffer) : buffer, typedArray.byteOffset, typedArray.length); | ||
} | ||
export default cloneTypedArray; |
import Map from './_Map'; | ||
import Set from './_Set'; | ||
import WeakMap from './_WeakMap'; | ||
@@ -7,3 +8,4 @@ /** `Object#toString` result references. */ | ||
objectTag = '[object Object]', | ||
setTag = '[object Set]'; | ||
setTag = '[object Set]', | ||
weakMapTag = '[object WeakMap]'; | ||
@@ -22,5 +24,6 @@ /** Used for built-in method references. */ | ||
/** Used to detect maps and sets. */ | ||
/** Used to detect maps, sets, and weakmaps. */ | ||
var mapCtorString = Map ? funcToString.call(Map) : '', | ||
setCtorString = Set ? funcToString.call(Set) : ''; | ||
setCtorString = Set ? funcToString.call(Set) : '', | ||
weakMapCtorString = WeakMap ? funcToString.call(WeakMap) : ''; | ||
@@ -38,4 +41,6 @@ /** | ||
// Fallback for IE 11 providing `toStringTag` values for maps and sets. | ||
if ((Map && getTag(new Map) != mapTag) || (Set && getTag(new Set) != setTag)) { | ||
// Fallback for IE 11 providing `toStringTag` values for maps, sets, and weakmaps. | ||
if ((Map && getTag(new Map) != mapTag) || | ||
(Set && getTag(new Set) != setTag) || | ||
(WeakMap && getTag(new WeakMap) != weakMapTag)) { | ||
getTag = function(value) { | ||
@@ -47,8 +52,7 @@ var result = objectToString.call(value), | ||
if (ctorString) { | ||
if (ctorString == mapCtorString) { | ||
return mapTag; | ||
switch (ctorString) { | ||
case mapCtorString: return mapTag; | ||
case setCtorString: return setTag; | ||
case weakMapCtorString: return weakMapTag; | ||
} | ||
if (ctorString == setCtorString) { | ||
return setTag; | ||
} | ||
} | ||
@@ -55,0 +59,0 @@ return result; |
@@ -1,2 +0,2 @@ | ||
import cloneBuffer from './_cloneBuffer'; | ||
import cloneArrayBuffer from './_cloneArrayBuffer'; | ||
import cloneMap from './_cloneMap'; | ||
@@ -45,3 +45,3 @@ import cloneRegExp from './_cloneRegExp'; | ||
case arrayBufferTag: | ||
return cloneBuffer(object); | ||
return cloneArrayBuffer(object); | ||
@@ -48,0 +48,0 @@ case boolTag: |
@@ -7,3 +7,3 @@ import eq from './eq'; | ||
/** | ||
* Checks if the provided arguments are from an iteratee call. | ||
* Checks if the given arguments are from an iteratee call. | ||
* | ||
@@ -10,0 +10,0 @@ * @private |
@@ -17,2 +17,5 @@ /** | ||
var result; | ||
if (augend === undefined && addend === undefined) { | ||
return 0; | ||
} | ||
if (augend !== undefined) { | ||
@@ -19,0 +22,0 @@ result = augend; |
@@ -55,2 +55,5 @@ import createWrapper from './_createWrapper'; | ||
// Assign default placeholders. | ||
bind.placeholder = {}; | ||
export default bind; |
@@ -65,2 +65,5 @@ import createWrapper from './_createWrapper'; | ||
// Assign default placeholders. | ||
bindKey.placeholder = {}; | ||
export default bindKey; |
@@ -6,3 +6,3 @@ import baseAssign from './_baseAssign'; | ||
* Creates an object that inherits from the `prototype` object. If a `properties` | ||
* object is provided its own enumerable properties are assigned to the created object. | ||
* object is given its own enumerable properties are assigned to the created object. | ||
* | ||
@@ -9,0 +9,0 @@ * @static |
@@ -53,2 +53,5 @@ import createWrapper from './_createWrapper'; | ||
// Assign default placeholders. | ||
curry.placeholder = {}; | ||
export default curry; |
@@ -50,2 +50,5 @@ import createWrapper from './_createWrapper'; | ||
// Assign default placeholders. | ||
curryRight.placeholder = {}; | ||
export default curryRight; |
@@ -138,3 +138,3 @@ import isObject from './isObject'; | ||
} else { | ||
if (!maxTimeoutId && !leading) { | ||
if (!lastCalled && !maxTimeoutId && !leading) { | ||
lastCalled = stamp; | ||
@@ -141,0 +141,0 @@ } |
@@ -8,3 +8,3 @@ import baseDifference from './_baseDifference'; | ||
* Creates an array of unique `array` values not included in the other | ||
* provided arrays using [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero) | ||
* given arrays using [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero) | ||
* for equality comparisons. | ||
@@ -11,0 +11,0 @@ * |
import createFlow from './_createFlow'; | ||
/** | ||
* Creates a function that returns the result of invoking the provided | ||
* functions with the `this` binding of the created function, where each | ||
* successive invocation is supplied the return value of the previous. | ||
* Creates a function that returns the result of invoking the given functions | ||
* with the `this` binding of the created function, where each successive | ||
* invocation is supplied the return value of the previous. | ||
* | ||
@@ -8,0 +8,0 @@ * @static |
@@ -5,3 +5,3 @@ import createFlow from './_createFlow'; | ||
* This method is like `_.flow` except that it creates a function that | ||
* invokes the provided functions from right to left. | ||
* invokes the given functions from right to left. | ||
* | ||
@@ -8,0 +8,0 @@ * @static |
/** | ||
* This method returns the first argument provided to it. | ||
* This method returns the first argument given to it. | ||
* | ||
@@ -4,0 +4,0 @@ * @static |
@@ -7,4 +7,4 @@ import arrayMap from './_arrayMap'; | ||
/** | ||
* Creates an array of unique values that are included in all of the provided | ||
* arrays using [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero) | ||
* Creates an array of unique values that are included in all given arrays | ||
* using [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero) | ||
* for equality comparisons. | ||
@@ -11,0 +11,0 @@ * |
@@ -10,5 +10,7 @@ import clone from './clone'; | ||
import isArray from './isArray'; | ||
import isArrayBuffer from './isArrayBuffer'; | ||
import isArrayLike from './isArrayLike'; | ||
import isArrayLikeObject from './isArrayLikeObject'; | ||
import isBoolean from './isBoolean'; | ||
import isBuffer from './isBuffer'; | ||
import isDate from './isDate'; | ||
@@ -24,2 +26,3 @@ import isElement from './isElement'; | ||
import isLength from './isLength'; | ||
import isMap from './isMap'; | ||
import isMatch from './isMatch'; | ||
@@ -37,2 +40,3 @@ import isMatchWith from './isMatchWith'; | ||
import isSafeInteger from './isSafeInteger'; | ||
import isSet from './isSet'; | ||
import isString from './isString'; | ||
@@ -42,2 +46,4 @@ import isSymbol from './isSymbol'; | ||
import isUndefined from './isUndefined'; | ||
import isWeakMap from './isWeakMap'; | ||
import isWeakSet from './isWeakSet'; | ||
import lt from './lt'; | ||
@@ -55,11 +61,12 @@ import lte from './lte'; | ||
clone, cloneDeep, cloneDeepWith, cloneWith, eq, | ||
gt, gte, isArguments, isArray, isArrayLike, | ||
isArrayLikeObject, isBoolean, isDate, isElement, isEmpty, | ||
isEqual, isEqualWith, isError, isFinite, isFunction, | ||
isInteger, isLength, isMatch, isMatchWith, isNaN, | ||
isNative, isNil, isNull, isNumber, isObject, | ||
isObjectLike, isPlainObject, isRegExp, isSafeInteger, isString, | ||
isSymbol, isTypedArray, isUndefined, lt, lte, | ||
toArray, toInteger, toLength, toNumber, toPlainObject, | ||
toSafeInteger, toString | ||
gt, gte, isArguments, isArray, isArrayBuffer, | ||
isArrayLike, isArrayLikeObject, isBoolean, isBuffer, isDate, | ||
isElement, isEmpty, isEqual, isEqualWith, isError, | ||
isFinite, isFunction, isInteger, isLength, isMap, | ||
isMatch, isMatchWith, isNaN, isNative, isNil, | ||
isNull, isNumber, isObject, isObjectLike, isPlainObject, | ||
isRegExp, isSafeInteger, isSet, isString, isSymbol, | ||
isTypedArray, isUndefined, isWeakMap, isWeakSet, lt, | ||
lte, toArray, toInteger, toLength, toNumber, | ||
toPlainObject, toSafeInteger, toString | ||
}; |
@@ -10,5 +10,7 @@ export { default as clone } from './clone'; | ||
export { default as isArray } from './isArray'; | ||
export { default as isArrayBuffer } from './isArrayBuffer'; | ||
export { default as isArrayLike } from './isArrayLike'; | ||
export { default as isArrayLikeObject } from './isArrayLikeObject'; | ||
export { default as isBoolean } from './isBoolean'; | ||
export { default as isBuffer } from './isBuffer'; | ||
export { default as isDate } from './isDate'; | ||
@@ -24,2 +26,3 @@ export { default as isElement } from './isElement'; | ||
export { default as isLength } from './isLength'; | ||
export { default as isMap } from './isMap'; | ||
export { default as isMatch } from './isMatch'; | ||
@@ -37,2 +40,3 @@ export { default as isMatchWith } from './isMatchWith'; | ||
export { default as isSafeInteger } from './isSafeInteger'; | ||
export { default as isSet } from './isSet'; | ||
export { default as isString } from './isString'; | ||
@@ -42,2 +46,4 @@ export { default as isSymbol } from './isSymbol'; | ||
export { default as isUndefined } from './isUndefined'; | ||
export { default as isWeakMap } from './isWeakMap'; | ||
export { default as isWeakSet } from './isWeakSet'; | ||
export { default as lt } from './lt'; | ||
@@ -44,0 +50,0 @@ export { default as lte } from './lte'; |
/** | ||
* @license | ||
* lodash 4.2.1 (Custom Build) <https://lodash.com/> | ||
* lodash 4.3.0 (Custom Build) <https://lodash.com/> | ||
* Build: `lodash modularize exports="es" -o ./` | ||
@@ -47,3 +47,3 @@ * Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/> | ||
/** Used as the semantic version number. */ | ||
var VERSION = '4.2.1'; | ||
var VERSION = '4.3.0'; | ||
@@ -286,5 +286,7 @@ /** Used to compose bitmasks for wrapper metadata. */ | ||
lodash.isArray = isArray; | ||
lodash.isArrayBuffer = lang.isArrayBuffer; | ||
lodash.isArrayLike = lang.isArrayLike; | ||
lodash.isArrayLikeObject = lang.isArrayLikeObject; | ||
lodash.isBoolean = lang.isBoolean; | ||
lodash.isBuffer = lang.isBuffer; | ||
lodash.isDate = lang.isDate; | ||
@@ -300,2 +302,3 @@ lodash.isElement = lang.isElement; | ||
lodash.isLength = lang.isLength; | ||
lodash.isMap = lang.isMap; | ||
lodash.isMatch = lang.isMatch; | ||
@@ -313,2 +316,3 @@ lodash.isMatchWith = lang.isMatchWith; | ||
lodash.isSafeInteger = lang.isSafeInteger; | ||
lodash.isSet = lang.isSet; | ||
lodash.isString = lang.isString; | ||
@@ -318,2 +322,4 @@ lodash.isSymbol = lang.isSymbol; | ||
lodash.isUndefined = lang.isUndefined; | ||
lodash.isWeakMap = lang.isWeakMap; | ||
lodash.isWeakSet = lang.isWeakSet; | ||
lodash.join = array.join; | ||
@@ -320,0 +326,0 @@ lodash.kebabCase = string.kebabCase; |
/** | ||
* @license | ||
* lodash 4.2.1 (Custom Build) <https://lodash.com/> | ||
* lodash 4.3.0 (Custom Build) <https://lodash.com/> | ||
* Build: `lodash modularize exports="es" -o ./` | ||
@@ -110,5 +110,7 @@ * Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/> | ||
export { default as isArray } from './isArray'; | ||
export { default as isArrayBuffer } from './isArrayBuffer'; | ||
export { default as isArrayLike } from './isArrayLike'; | ||
export { default as isArrayLikeObject } from './isArrayLikeObject'; | ||
export { default as isBoolean } from './isBoolean'; | ||
export { default as isBuffer } from './isBuffer'; | ||
export { default as isDate } from './isDate'; | ||
@@ -124,2 +126,3 @@ export { default as isElement } from './isElement'; | ||
export { default as isLength } from './isLength'; | ||
export { default as isMap } from './isMap'; | ||
export { default as isMatch } from './isMatch'; | ||
@@ -137,2 +140,3 @@ export { default as isMatchWith } from './isMatchWith'; | ||
export { default as isSafeInteger } from './isSafeInteger'; | ||
export { default as isSet } from './isSet'; | ||
export { default as isString } from './isString'; | ||
@@ -142,2 +146,4 @@ export { default as isSymbol } from './isSymbol'; | ||
export { default as isUndefined } from './isUndefined'; | ||
export { default as isWeakMap } from './isWeakMap'; | ||
export { default as isWeakSet } from './isWeakSet'; | ||
export { default as iteratee } from './iteratee'; | ||
@@ -144,0 +150,0 @@ export { default as join } from './join'; |
{ | ||
"name": "lodash-es", | ||
"version": "4.2.1", | ||
"version": "4.3.0", | ||
"description": "Lodash exported as ES modules.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://lodash.com/custom-builds", |
@@ -47,2 +47,5 @@ import createWrapper from './_createWrapper'; | ||
// Assign default placeholders. | ||
partial.placeholder = {}; | ||
export default partial; |
@@ -46,2 +46,5 @@ import createWrapper from './_createWrapper'; | ||
// Assign default placeholders. | ||
partialRight.placeholder = {}; | ||
export default partialRight; |
@@ -5,3 +5,3 @@ import pullAll from './pullAll'; | ||
/** | ||
* Removes all provided values from `array` using | ||
* Removes all given values from `array` using | ||
* [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero) | ||
@@ -8,0 +8,0 @@ * for equality comparisons. |
@@ -1,2 +0,2 @@ | ||
# lodash-es v4.2.1 | ||
# lodash-es v4.3.0 | ||
@@ -10,2 +10,2 @@ The [lodash](https://lodash.com/) library exported as [ES](http://www.ecma-international.org/ecma-262/6.0/) modules. | ||
See the [package source](https://github.com/lodash/lodash/tree/4.2.1-es) for more details. | ||
See the [package source](https://github.com/lodash/lodash/tree/4.3.0-es) for more details. |
@@ -11,3 +11,3 @@ import arrayReduce from './_arrayReduce'; | ||
* invocation is supplied the return value of the previous. If `accumulator` | ||
* is not provided the first element of `collection` is used as the initial | ||
* is not given the first element of `collection` is used as the initial | ||
* value. The iteratee is invoked with four arguments: | ||
@@ -14,0 +14,0 @@ * (accumulator, value, index|key, collection). |
@@ -17,2 +17,5 @@ /** | ||
var result; | ||
if (minuend === undefined && subtrahend === undefined) { | ||
return 0; | ||
} | ||
if (minuend !== undefined) { | ||
@@ -19,0 +22,0 @@ result = minuend; |
@@ -32,3 +32,3 @@ import assignInDefaults from './_assignInDefaults'; | ||
* properties may be accessed as free variables in the template. If a setting | ||
* object is provided it takes precedence over `_.templateSettings` values. | ||
* object is given it takes precedence over `_.templateSettings` values. | ||
* | ||
@@ -35,0 +35,0 @@ * **Note:** In the development build `_.template` utilizes |
@@ -6,4 +6,4 @@ import baseFlatten from './_baseFlatten'; | ||
/** | ||
* Creates an array of unique values, in order, from all of the provided arrays | ||
* using [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero) | ||
* Creates an array of unique values, in order, from all given arrays using | ||
* [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero) | ||
* for equality comparisons. | ||
@@ -10,0 +10,0 @@ * |
@@ -7,3 +7,3 @@ import toString from './toString'; | ||
/** | ||
* Generates a unique ID. If `prefix` is provided the ID is appended to it. | ||
* Generates a unique ID. If `prefix` is given the ID is appended to it. | ||
* | ||
@@ -10,0 +10,0 @@ * @static |
@@ -6,3 +6,3 @@ import baseDifference from './_baseDifference'; | ||
/** | ||
* Creates an array excluding all provided values using | ||
* Creates an array excluding all given values using | ||
* [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero) | ||
@@ -9,0 +9,0 @@ * for equality comparisons. |
@@ -8,3 +8,3 @@ import arrayFilter from './_arrayFilter'; | ||
* Creates an array of unique values that is the [symmetric difference](https://en.wikipedia.org/wiki/Symmetric_difference) | ||
* of the provided arrays. | ||
* of the given arrays. | ||
* | ||
@@ -11,0 +11,0 @@ * @static |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
539322
542
16842