diff --git a/README.md b/README.md
index fea48cc14..a983b5ff1 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-# lodash v3.2.0
+# lodash v3.2.1
The [lodash](https://lodash.com/) library exported as [npm packages](https://www.npmjs.com/browse/keyword/lodash-modularized) per method.
diff --git a/lodash._basecallback/README.md b/lodash._basecallback/README.md
index 383c55d74..b3e77f5ab 100644
--- a/lodash._basecallback/README.md
+++ b/lodash._basecallback/README.md
@@ -1,4 +1,4 @@
-# lodash._basecallback v3.2.0
+# lodash._basecallback v3.2.1
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `baseCallback` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
@@ -17,4 +17,4 @@ In Node.js/io.js:
var baseCallback = require('lodash._basecallback');
```
-See the [package source](https://github.com/lodash/lodash/blob/3.2.0-npm-packages/lodash._basecallback) for more details.
+See the [package source](https://github.com/lodash/lodash/blob/3.2.1-npm-packages/lodash._basecallback) for more details.
diff --git a/lodash._basecallback/index.js b/lodash._basecallback/index.js
index c8725ab64..8666b64c7 100644
--- a/lodash._basecallback/index.js
+++ b/lodash._basecallback/index.js
@@ -1,5 +1,5 @@
/**
- * lodash 3.2.0 (Custom Build)
+ * lodash 3.2.1 (Custom Build)
* Build: `lodash modern modularize exports="npm" -o ./`
* Copyright 2012-2015 The Dojo Foundation
* Based on Underscore.js 1.8.3
@@ -12,7 +12,7 @@ var baseIsEqual = require('lodash._baseisequal'),
keys = require('lodash.keys');
/** Used to match property names within property paths. */
-var reIsDeepProp = /\.|\[(?:[^[\]]+|(["'])(?:(?!\1)[^\n\\]|\\.)*?)\1\]/,
+var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\n\\]|\\.)*?\1)\]/,
reIsPlainProp = /^\w*$/,
rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\n\\]|\\.)*?)\2)\]/g;
@@ -83,9 +83,9 @@ function baseGet(object, path, pathKey) {
length = path.length;
while (object != null && ++index < length) {
- var result = object = object[path[index]];
+ object = object[path[index]];
}
- return result;
+ return (index && index == length) ? object : undefined;
}
/**
@@ -297,7 +297,7 @@ function isKey(value, object) {
* equality comparisons, else `false`.
*/
function isStrictComparable(value) {
- return value === value && (value === 0 ? ((1 / value) > 0) : !isObject(value));
+ return value === value && !isObject(value);
}
/**
diff --git a/lodash._basecallback/package.json b/lodash._basecallback/package.json
index 315a4c0b1..2cf4f8070 100644
--- a/lodash._basecallback/package.json
+++ b/lodash._basecallback/package.json
@@ -1,6 +1,6 @@
{
"name": "lodash._basecallback",
- "version": "3.2.0",
+ "version": "3.2.1",
"description": "The modern build of lodash’s internal `baseCallback` as a module.",
"homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg",
diff --git a/lodash._baseclone/README.md b/lodash._baseclone/README.md
index 65fdc7785..8cf2bdd8f 100644
--- a/lodash._baseclone/README.md
+++ b/lodash._baseclone/README.md
@@ -1,4 +1,4 @@
-# lodash._baseclone v3.2.0
+# lodash._baseclone v3.2.1
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `baseClone` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
@@ -17,4 +17,4 @@ In Node.js/io.js:
var baseClone = require('lodash._baseclone');
```
-See the [package source](https://github.com/lodash/lodash/blob/3.2.0-npm-packages/lodash._baseclone) for more details.
+See the [package source](https://github.com/lodash/lodash/blob/3.2.1-npm-packages/lodash._baseclone) for more details.
diff --git a/lodash._baseclone/index.js b/lodash._baseclone/index.js
index acc172d7f..c843f318e 100644
--- a/lodash._baseclone/index.js
+++ b/lodash._baseclone/index.js
@@ -1,5 +1,5 @@
/**
- * lodash 3.2.0 (Custom Build)
+ * lodash 3.2.1 (Custom Build)
* Build: `lodash modern modularize exports="npm" -o ./`
* Copyright 2012-2015 The Dojo Foundation
* Based on Underscore.js 1.8.3
@@ -71,10 +71,10 @@ var hasOwnProperty = objectProto.hasOwnProperty;
var objToString = objectProto.toString;
/** Native method references. */
-var ArrayBuffer = getNative(root, 'ArrayBuffer'),
+var ArrayBuffer = getNative(global, 'ArrayBuffer'),
bufferSlice = getNative(ArrayBuffer && new ArrayBuffer(0), 'slice'),
floor = Math.floor,
- Uint8Array = getNative(root, 'Uint8Array');
+ Uint8Array = getNative(global, 'Uint8Array');
/** Used to clone array buffers. */
var Float64Array = (function() {
@@ -82,7 +82,7 @@ var Float64Array = (function() {
// where the array buffer's `byteLength` is not a multiple of the typed
// array's `BYTES_PER_ELEMENT`.
try {
- var func = getNative(root, 'Float64Array'),
+ var func = getNative(global, 'Float64Array'),
result = new func(new ArrayBuffer(10), 0, 1) && func;
} catch(e) {}
return result || null;
diff --git a/lodash._baseclone/package.json b/lodash._baseclone/package.json
index cc835f3bd..9e8a3d2fe 100644
--- a/lodash._baseclone/package.json
+++ b/lodash._baseclone/package.json
@@ -1,6 +1,6 @@
{
"name": "lodash._baseclone",
- "version": "3.2.0",
+ "version": "3.2.1",
"description": "The modern build of lodash’s internal `baseClone` as a module.",
"homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg",
diff --git a/lodash._basematchesproperty/LICENSE.txt b/lodash._basematchesproperty/LICENSE.txt
index 17764328c..9cd87e5dc 100644
--- a/lodash._basematchesproperty/LICENSE.txt
+++ b/lodash._basematchesproperty/LICENSE.txt
@@ -1,5 +1,5 @@
Copyright 2012-2015 The Dojo Foundation
-Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas,
+Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas,
DocumentCloud and Investigative Reporters & Editors
Permission is hereby granted, free of charge, to any person obtaining
diff --git a/lodash._basematchesproperty/README.md b/lodash._basematchesproperty/README.md
index 6d197c30d..fb7075f5a 100644
--- a/lodash._basematchesproperty/README.md
+++ b/lodash._basematchesproperty/README.md
@@ -1,4 +1,4 @@
-# lodash._basematchesproperty v3.2.0
+# lodash._basematchesproperty v3.2.1
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `baseMatchesProperty` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
@@ -17,4 +17,4 @@ In Node.js/io.js:
var baseMatchesProperty = require('lodash._basematchesproperty');
```
-See the [package source](https://github.com/lodash/lodash/blob/3.2.0-npm-packages/lodash._basematchesproperty) for more details.
+See the [package source](https://github.com/lodash/lodash/blob/3.2.1-npm-packages/lodash._basematchesproperty) for more details.
diff --git a/lodash._basematchesproperty/index.js b/lodash._basematchesproperty/index.js
index eaa4a0eb4..b49e37305 100644
--- a/lodash._basematchesproperty/index.js
+++ b/lodash._basematchesproperty/index.js
@@ -1,8 +1,8 @@
/**
- * lodash 3.2.0 (Custom Build)
+ * lodash 3.2.1 (Custom Build)
* Build: `lodash modern modularize exports="npm" -o ./`
* Copyright 2012-2015 The Dojo Foundation
- * Based on Underscore.js 1.7.0
+ * Based on Underscore.js 1.8.2
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
* Available under MIT license
*/
@@ -20,7 +20,8 @@ var baseIsEqual = require('lodash._baseisequal');
function baseMatchesProperty(key, value) {
if (isStrictComparable(value)) {
return function(object) {
- return object != null && object[key] === value;
+ return object != null && object[key] === value &&
+ (typeof value != 'undefined' || (key in toObject(object)));
};
}
return function(object) {
@@ -41,10 +42,19 @@ function isStrictComparable(value) {
}
/**
- * Checks if `value` is the language type of `Object`.
- * (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
+ * Converts `value` to an object if it is not one.
*
- * **Note:** See the [ES5 spec](https://es5.github.io/#x8) for more details.
+ * @private
+ * @param {*} value The value to process.
+ * @returns {Object} Returns the object.
+ */
+function toObject(value) {
+ return isObject(value) ? value : Object(value);
+}
+
+/**
+ * Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`.
+ * (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
*
* @static
* @memberOf _
@@ -66,7 +76,7 @@ function isObject(value) {
// Avoid a V8 JIT bug in Chrome 19-20.
// See https://code.google.com/p/v8/issues/detail?id=2291 for more details.
var type = typeof value;
- return type == 'function' || (value && type == 'object') || false;
+ return type == 'function' || (!!value && type == 'object');
}
module.exports = baseMatchesProperty;
diff --git a/lodash._basematchesproperty/package.json b/lodash._basematchesproperty/package.json
index e9283eea0..401c218e5 100644
--- a/lodash._basematchesproperty/package.json
+++ b/lodash._basematchesproperty/package.json
@@ -1,6 +1,6 @@
{
"name": "lodash._basematchesproperty",
- "version": "3.2.0",
+ "version": "3.2.1",
"description": "The modern build of lodash’s internal `baseMatchesProperty` as a module.",
"homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg",
diff --git a/lodash.attempt/README.md b/lodash.attempt/README.md
index 0544f5a28..593b60736 100644
--- a/lodash.attempt/README.md
+++ b/lodash.attempt/README.md
@@ -1,4 +1,4 @@
-# lodash.attempt v3.2.0
+# lodash.attempt v3.2.1
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.attempt` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
@@ -17,4 +17,4 @@ In Node.js/io.js:
var attempt = require('lodash.attempt');
```
-See the [documentation](https://lodash.com/docs#attempt) or [package source](https://github.com/lodash/lodash/blob/3.2.0-npm-packages/lodash.attempt) for more details.
+See the [documentation](https://lodash.com/docs#attempt) or [package source](https://github.com/lodash/lodash/blob/3.2.1-npm-packages/lodash.attempt) for more details.
diff --git a/lodash.attempt/index.js b/lodash.attempt/index.js
index d34a285da..f0e4412ef 100644
--- a/lodash.attempt/index.js
+++ b/lodash.attempt/index.js
@@ -1,8 +1,8 @@
/**
- * lodash 3.2.0 (Custom Build)
+ * lodash 3.2.1 (Custom Build)
* Build: `lodash modern modularize exports="npm" -o ./`
* Copyright 2012-2015 The Dojo Foundation
- * Based on Underscore.js 1.7.0
+ * Based on Underscore.js 1.8.2
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
* Available under MIT license
*/
@@ -29,14 +29,14 @@ var isError = require('lodash.iserror');
* }
*/
function attempt() {
- var length = arguments.length,
- func = arguments[0];
+ var func = arguments[0],
+ length = arguments.length,
+ args = Array(length ? length - 1 : 0);
+ while (--length > 0) {
+ args[length - 1] = arguments[length];
+ }
try {
- var args = Array(length ? length - 1 : 0);
- while (--length > 0) {
- args[length - 1] = arguments[length];
- }
return func.apply(undefined, args);
} catch(e) {
return isError(e) ? e : new Error(e);
diff --git a/lodash.attempt/package.json b/lodash.attempt/package.json
index 35c656314..fd7dac2ed 100644
--- a/lodash.attempt/package.json
+++ b/lodash.attempt/package.json
@@ -1,6 +1,6 @@
{
"name": "lodash.attempt",
- "version": "3.2.0",
+ "version": "3.2.1",
"description": "The modern build of lodash’s `_.attempt` as a module.",
"homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg",
diff --git a/lodash.difference/README.md b/lodash.difference/README.md
index 8e1288319..8e3755883 100644
--- a/lodash.difference/README.md
+++ b/lodash.difference/README.md
@@ -1,4 +1,4 @@
-# lodash.difference v3.2.0
+# lodash.difference v3.2.1
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.difference` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
@@ -17,4 +17,4 @@ In Node.js/io.js:
var difference = require('lodash.difference');
```
-See the [documentation](https://lodash.com/docs#difference) or [package source](https://github.com/lodash/lodash/blob/3.2.0-npm-packages/lodash.difference) for more details.
+See the [documentation](https://lodash.com/docs#difference) or [package source](https://github.com/lodash/lodash/blob/3.2.1-npm-packages/lodash.difference) for more details.
diff --git a/lodash.difference/index.js b/lodash.difference/index.js
index 8e8928e4c..0481e2e6c 100644
--- a/lodash.difference/index.js
+++ b/lodash.difference/index.js
@@ -1,5 +1,5 @@
/**
- * lodash 3.2.0 (Custom Build)
+ * lodash 3.2.1 (Custom Build)
* Build: `lodash modern modularize exports="npm" -o ./`
* Copyright 2012-2015 The Dojo Foundation
* Based on Underscore.js 1.8.3
@@ -14,7 +14,7 @@ var baseDifference = require('lodash._basedifference'),
* Used as the [maximum length](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.max_safe_integer)
* of an array-like value.
*/
-var MAX_SAFE_INTEGER = Math.pow(2, 53) - 1;
+var MAX_SAFE_INTEGER = 9007199254740991;
/**
* The base implementation of `_.property` without support for deep paths.
@@ -66,8 +66,8 @@ function isLength(value) {
}
/**
- * Creates an array excluding all values of the provided arrays using
- * [`SameValueZero`](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-samevaluezero)
+ * Creates an array of unique `array` values not included in the other
+ * provided arrays using [`SameValueZero`](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-samevaluezero)
* for equality comparisons.
*
* @static
diff --git a/lodash.difference/package.json b/lodash.difference/package.json
index 95adc14f5..d3041ce3a 100644
--- a/lodash.difference/package.json
+++ b/lodash.difference/package.json
@@ -1,6 +1,6 @@
{
"name": "lodash.difference",
- "version": "3.2.0",
+ "version": "3.2.1",
"description": "The modern build of lodash’s `_.difference` as a module.",
"homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg",
diff --git a/lodash.every/README.md b/lodash.every/README.md
index 74423b886..bba416ea6 100644
--- a/lodash.every/README.md
+++ b/lodash.every/README.md
@@ -1,4 +1,4 @@
-# lodash.every v3.2.0
+# lodash.every v3.2.1
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.every` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
@@ -17,4 +17,4 @@ In Node.js/io.js:
var every = require('lodash.every');
```
-See the [documentation](https://lodash.com/docs#every) or [package source](https://github.com/lodash/lodash/blob/3.2.0-npm-packages/lodash.every) for more details.
+See the [documentation](https://lodash.com/docs#every) or [package source](https://github.com/lodash/lodash/blob/3.2.1-npm-packages/lodash.every) for more details.
diff --git a/lodash.every/index.js b/lodash.every/index.js
index 058b2f341..f24d19961 100644
--- a/lodash.every/index.js
+++ b/lodash.every/index.js
@@ -1,8 +1,8 @@
/**
- * lodash 3.2.0 (Custom Build)
+ * lodash 3.2.1 (Custom Build)
* Build: `lodash modern modularize exports="npm" -o ./`
* Copyright 2012-2015 The Dojo Foundation
- * Based on Underscore.js 1.8.2
+ * Based on Underscore.js 1.8.3
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
* Available under MIT license
*/
@@ -85,7 +85,7 @@ function every(collection, predicate, thisArg) {
if (thisArg && isIterateeCall(collection, predicate, thisArg)) {
predicate = null;
}
- if (typeof predicate != 'function' || typeof thisArg != 'undefined') {
+ if (typeof predicate != 'function' || thisArg !== undefined) {
predicate = baseCallback(predicate, thisArg, 3);
}
return func(collection, predicate);
diff --git a/lodash.every/package.json b/lodash.every/package.json
index 629cfa043..4b881d70f 100644
--- a/lodash.every/package.json
+++ b/lodash.every/package.json
@@ -1,6 +1,6 @@
{
"name": "lodash.every",
- "version": "3.2.0",
+ "version": "3.2.1",
"description": "The modern build of lodash’s `_.every` as a module.",
"homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg",
diff --git a/lodash.fill/LICENSE.txt b/lodash.fill/LICENSE.txt
index 17764328c..9cd87e5dc 100644
--- a/lodash.fill/LICENSE.txt
+++ b/lodash.fill/LICENSE.txt
@@ -1,5 +1,5 @@
Copyright 2012-2015 The Dojo Foundation
-Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas,
+Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas,
DocumentCloud and Investigative Reporters & Editors
Permission is hereby granted, free of charge, to any person obtaining
diff --git a/lodash.fill/README.md b/lodash.fill/README.md
index 55fce3a57..fc6a15fc0 100644
--- a/lodash.fill/README.md
+++ b/lodash.fill/README.md
@@ -1,4 +1,4 @@
-# lodash.fill v3.2.0
+# lodash.fill v3.2.1
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.fill` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
@@ -17,4 +17,4 @@ In Node.js/io.js:
var fill = require('lodash.fill');
```
-See the [documentation](https://lodash.com/docs#fill) or [package source](https://github.com/lodash/lodash/blob/3.2.0-npm-packages/lodash.fill) for more details.
+See the [documentation](https://lodash.com/docs#fill) or [package source](https://github.com/lodash/lodash/blob/3.2.1-npm-packages/lodash.fill) for more details.
diff --git a/lodash.fill/index.js b/lodash.fill/index.js
index 99fb617e9..44f98ce0c 100644
--- a/lodash.fill/index.js
+++ b/lodash.fill/index.js
@@ -1,8 +1,8 @@
/**
- * lodash 3.2.0 (Custom Build)
+ * lodash 3.2.1 (Custom Build)
* Build: `lodash modern modularize exports="npm" -o ./`
* Copyright 2012-2015 The Dojo Foundation
- * Based on Underscore.js 1.7.0
+ * Based on Underscore.js 1.8.2
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
* Available under MIT license
*/
@@ -29,7 +29,7 @@ function baseFill(array, value, start, end) {
if (end < 0) {
end += length;
}
- length = start > end ? 0 : end >>> 0;
+ length = start > end ? 0 : (end >>> 0);
start >>>= 0;
while (start < length) {
@@ -52,6 +52,19 @@ function baseFill(array, value, start, end) {
* @param {number} [start=0] The start position.
* @param {number} [end=array.length] The end position.
* @returns {Array} Returns `array`.
+ * @example
+ *
+ * var array = [1, 2, 3];
+ *
+ * _.fill(array, 'a');
+ * console.log(array);
+ * // => ['a', 'a', 'a']
+ *
+ * _.fill(Array(3), 2);
+ * // => [2, 2, 2]
+ *
+ * _.fill([4, 6, 8], '*', 1, 2);
+ * // => [4, '*', 8]
*/
function fill(array, value, start, end) {
var length = array ? array.length : 0;
diff --git a/lodash.fill/package.json b/lodash.fill/package.json
index dc5c2d15e..f7a675a7d 100644
--- a/lodash.fill/package.json
+++ b/lodash.fill/package.json
@@ -1,6 +1,6 @@
{
"name": "lodash.fill",
- "version": "3.2.0",
+ "version": "3.2.1",
"description": "The modern build of lodash’s `_.fill` as a module.",
"homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg",
diff --git a/lodash.find/README.md b/lodash.find/README.md
index 9ed24bcf9..26ee3adfd 100644
--- a/lodash.find/README.md
+++ b/lodash.find/README.md
@@ -1,4 +1,4 @@
-# lodash.find v3.2.0
+# lodash.find v3.2.1
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.find` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
@@ -17,4 +17,4 @@ In Node.js/io.js:
var find = require('lodash.find');
```
-See the [documentation](https://lodash.com/docs#find) or [package source](https://github.com/lodash/lodash/blob/3.2.0-npm-packages/lodash.find) for more details.
+See the [documentation](https://lodash.com/docs#find) or [package source](https://github.com/lodash/lodash/blob/3.2.1-npm-packages/lodash.find) for more details.
diff --git a/lodash.find/index.js b/lodash.find/index.js
index 9dfdcc472..ca69b5dc0 100644
--- a/lodash.find/index.js
+++ b/lodash.find/index.js
@@ -1,5 +1,5 @@
/**
- * lodash 3.2.0 (Custom Build)
+ * lodash 3.2.1 (Custom Build)
* Build: `lodash modern modularize exports="npm" -o ./`
* Copyright 2012-2015 The Dojo Foundation
* Based on Underscore.js 1.8.3
@@ -10,8 +10,7 @@ var baseCallback = require('lodash._basecallback'),
baseEach = require('lodash._baseeach'),
baseFind = require('lodash._basefind'),
baseFindIndex = require('lodash._basefindindex'),
- isArray = require('lodash.isarray'),
- keys = require('lodash.keys');
+ isArray = require('lodash.isarray');
/**
* Creates a `_.find` or `_.findLast` function.
diff --git a/lodash.find/package.json b/lodash.find/package.json
index fb2dac9bb..539e40f76 100644
--- a/lodash.find/package.json
+++ b/lodash.find/package.json
@@ -1,6 +1,6 @@
{
"name": "lodash.find",
- "version": "3.2.0",
+ "version": "3.2.1",
"description": "The modern build of lodash’s `_.find` as a module.",
"homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg",
diff --git a/lodash.findindex/README.md b/lodash.findindex/README.md
index 26399bd92..32ae5cf09 100644
--- a/lodash.findindex/README.md
+++ b/lodash.findindex/README.md
@@ -1,4 +1,4 @@
-# lodash.findindex v3.2.0
+# lodash.findindex v3.2.1
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.findIndex` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
@@ -17,4 +17,4 @@ In Node.js/io.js:
var findIndex = require('lodash.findindex');
```
-See the [documentation](https://lodash.com/docs#findIndex) or [package source](https://github.com/lodash/lodash/blob/3.2.0-npm-packages/lodash.findindex) for more details.
+See the [documentation](https://lodash.com/docs#findIndex) or [package source](https://github.com/lodash/lodash/blob/3.2.1-npm-packages/lodash.findindex) for more details.
diff --git a/lodash.findindex/index.js b/lodash.findindex/index.js
index c1f5ba0e8..7e179cfa0 100644
--- a/lodash.findindex/index.js
+++ b/lodash.findindex/index.js
@@ -1,14 +1,13 @@
/**
- * lodash 3.2.0 (Custom Build)
+ * lodash 3.2.1 (Custom Build)
* Build: `lodash modern modularize exports="npm" -o ./`
* Copyright 2012-2015 The Dojo Foundation
- * Based on Underscore.js 1.8.2
+ * Based on Underscore.js 1.8.3
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
* Available under MIT license
*/
var baseCallback = require('lodash._basecallback'),
- baseFindIndex = require('lodash._basefindindex'),
- isArray = require('lodash.isarray');
+ baseFindIndex = require('lodash._basefindindex');
/**
* Creates a `_.findIndex` or `_.findLastIndex` function.
diff --git a/lodash.findindex/package.json b/lodash.findindex/package.json
index 65c42b70b..f73ed9169 100644
--- a/lodash.findindex/package.json
+++ b/lodash.findindex/package.json
@@ -1,6 +1,6 @@
{
"name": "lodash.findindex",
- "version": "3.2.0",
+ "version": "3.2.1",
"description": "The modern build of lodash’s `_.findIndex` as a module.",
"homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg",
diff --git a/lodash.findlast/README.md b/lodash.findlast/README.md
index 5aba08e3f..24ff16cd9 100644
--- a/lodash.findlast/README.md
+++ b/lodash.findlast/README.md
@@ -1,4 +1,4 @@
-# lodash.findlast v3.2.0
+# lodash.findlast v3.2.1
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.findLast` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
@@ -17,4 +17,4 @@ In Node.js/io.js:
var findLast = require('lodash.findlast');
```
-See the [documentation](https://lodash.com/docs#findLast) or [package source](https://github.com/lodash/lodash/blob/3.2.0-npm-packages/lodash.findlast) for more details.
+See the [documentation](https://lodash.com/docs#findLast) or [package source](https://github.com/lodash/lodash/blob/3.2.1-npm-packages/lodash.findlast) for more details.
diff --git a/lodash.findlast/index.js b/lodash.findlast/index.js
index 1fb469ecd..988de1b01 100644
--- a/lodash.findlast/index.js
+++ b/lodash.findlast/index.js
@@ -1,5 +1,5 @@
/**
- * lodash 3.2.0 (Custom Build)
+ * lodash 3.2.1 (Custom Build)
* Build: `lodash modern modularize exports="npm" -o ./`
* Copyright 2012-2015 The Dojo Foundation
* Based on Underscore.js 1.8.3
@@ -10,8 +10,7 @@ var baseCallback = require('lodash._basecallback'),
baseEachRight = require('lodash._baseeachright'),
baseFind = require('lodash._basefind'),
baseFindIndex = require('lodash._basefindindex'),
- isArray = require('lodash.isarray'),
- keys = require('lodash.keys');
+ isArray = require('lodash.isarray');
/**
* Creates a `_.find` or `_.findLast` function.
diff --git a/lodash.findlast/package.json b/lodash.findlast/package.json
index 0ba892252..5ad779518 100644
--- a/lodash.findlast/package.json
+++ b/lodash.findlast/package.json
@@ -1,6 +1,6 @@
{
"name": "lodash.findlast",
- "version": "3.2.0",
+ "version": "3.2.1",
"description": "The modern build of lodash’s `_.findLast` as a module.",
"homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg",
diff --git a/lodash.findlastindex/README.md b/lodash.findlastindex/README.md
index f8781b4c5..8520654f2 100644
--- a/lodash.findlastindex/README.md
+++ b/lodash.findlastindex/README.md
@@ -1,4 +1,4 @@
-# lodash.findlastindex v3.2.0
+# lodash.findlastindex v3.2.1
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.findLastIndex` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
@@ -17,4 +17,4 @@ In Node.js/io.js:
var findLastIndex = require('lodash.findlastindex');
```
-See the [documentation](https://lodash.com/docs#findLastIndex) or [package source](https://github.com/lodash/lodash/blob/3.2.0-npm-packages/lodash.findlastindex) for more details.
+See the [documentation](https://lodash.com/docs#findLastIndex) or [package source](https://github.com/lodash/lodash/blob/3.2.1-npm-packages/lodash.findlastindex) for more details.
diff --git a/lodash.findlastindex/index.js b/lodash.findlastindex/index.js
index 57200382f..bfb142abb 100644
--- a/lodash.findlastindex/index.js
+++ b/lodash.findlastindex/index.js
@@ -1,14 +1,13 @@
/**
- * lodash 3.2.0 (Custom Build)
+ * lodash 3.2.1 (Custom Build)
* Build: `lodash modern modularize exports="npm" -o ./`
* Copyright 2012-2015 The Dojo Foundation
- * Based on Underscore.js 1.8.2
+ * Based on Underscore.js 1.8.3
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
* Available under MIT license
*/
var baseCallback = require('lodash._basecallback'),
- baseFindIndex = require('lodash._basefindindex'),
- isArray = require('lodash.isarray');
+ baseFindIndex = require('lodash._basefindindex');
/**
* Creates a `_.findIndex` or `_.findLastIndex` function.
diff --git a/lodash.findlastindex/package.json b/lodash.findlastindex/package.json
index eb29b470e..97434e882 100644
--- a/lodash.findlastindex/package.json
+++ b/lodash.findlastindex/package.json
@@ -1,6 +1,6 @@
{
"name": "lodash.findlastindex",
- "version": "3.2.0",
+ "version": "3.2.1",
"description": "The modern build of lodash’s `_.findLastIndex` as a module.",
"homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg",
diff --git a/lodash.flow/README.md b/lodash.flow/README.md
index 223e6a39e..d686c4497 100644
--- a/lodash.flow/README.md
+++ b/lodash.flow/README.md
@@ -1,4 +1,4 @@
-# lodash.flow v3.2.0
+# lodash.flow v3.2.1
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.flow` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
@@ -17,4 +17,4 @@ In Node.js/io.js:
var flow = require('lodash.flow');
```
-See the [documentation](https://lodash.com/docs#flow) or [package source](https://github.com/lodash/lodash/blob/3.2.0-npm-packages/lodash.flow) for more details.
+See the [documentation](https://lodash.com/docs#flow) or [package source](https://github.com/lodash/lodash/blob/3.2.1-npm-packages/lodash.flow) for more details.
diff --git a/lodash.flow/index.js b/lodash.flow/index.js
index 8cd5374e1..63015637f 100644
--- a/lodash.flow/index.js
+++ b/lodash.flow/index.js
@@ -1,8 +1,8 @@
/**
- * lodash 3.2.0 (Custom Build)
- * Build: `lodash modern modularize exports="npm" -o ./`
+ * lodash 3.2.1 (Custom Build)
+ * Build: `lodash modularize exports="npm" -o ./`
* Copyright 2012-2015 The Dojo Foundation
- * Based on Underscore.js 1.8.2
+ * Based on Underscore.js 1.8.3
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
* Available under MIT license
*/
@@ -19,11 +19,8 @@ var FUNC_ERROR_TEXT = 'Expected a function';
*/
function createFlow(fromRight) {
return function() {
- var length = arguments.length;
- if (!length) {
- return function() { return arguments[0]; };
- }
- var index = fromRight ? length : -1,
+ var length = arguments.length,
+ index = fromRight ? length : -1,
leftIndex = 0,
funcs = Array(length);
@@ -35,7 +32,7 @@ function createFlow(fromRight) {
}
return function() {
var index = 0,
- result = funcs[index].apply(this, arguments);
+ result = length ? funcs[index].apply(this, arguments) : arguments[0];
while (++index < length) {
result = funcs[index].call(this, result);
@@ -46,14 +43,15 @@ function createFlow(fromRight) {
}
/**
- * 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.
*
* @static
* @memberOf _
- * @category Function
- * @param {...Function} [funcs] Functions to invoke.
+ * @since 3.0.0
+ * @category Util
+ * @param {...(Function|Function[])} [funcs] Functions to invoke.
* @returns {Function} Returns the new function.
* @example
*
diff --git a/lodash.flow/package.json b/lodash.flow/package.json
index 470ff3eb8..eee69500f 100644
--- a/lodash.flow/package.json
+++ b/lodash.flow/package.json
@@ -1,6 +1,6 @@
{
"name": "lodash.flow",
- "version": "3.2.0",
+ "version": "3.2.1",
"description": "The modern build of lodash’s `_.flow` as a module.",
"homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg",
diff --git a/lodash.flowright/README.md b/lodash.flowright/README.md
index c38e89462..504c705a4 100644
--- a/lodash.flowright/README.md
+++ b/lodash.flowright/README.md
@@ -1,4 +1,4 @@
-# lodash.flowright v3.2.0
+# lodash.flowright v3.2.1
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.flowRight` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
@@ -17,4 +17,4 @@ In Node.js/io.js:
var flowRight = require('lodash.flowright');
```
-See the [documentation](https://lodash.com/docs#flowRight) or [package source](https://github.com/lodash/lodash/blob/3.2.0-npm-packages/lodash.flowright) for more details.
+See the [documentation](https://lodash.com/docs#flowRight) or [package source](https://github.com/lodash/lodash/blob/3.2.1-npm-packages/lodash.flowright) for more details.
diff --git a/lodash.flowright/index.js b/lodash.flowright/index.js
index 62c9ff8b6..7284430cc 100644
--- a/lodash.flowright/index.js
+++ b/lodash.flowright/index.js
@@ -1,8 +1,8 @@
/**
- * lodash 3.2.0 (Custom Build)
- * Build: `lodash modern modularize exports="npm" -o ./`
+ * lodash 3.2.1 (Custom Build)
+ * Build: `lodash modularize exports="npm" -o ./`
* Copyright 2012-2015 The Dojo Foundation
- * Based on Underscore.js 1.8.2
+ * Based on Underscore.js 1.8.3
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
* Available under MIT license
*/
@@ -19,11 +19,8 @@ var FUNC_ERROR_TEXT = 'Expected a function';
*/
function createFlow(fromRight) {
return function() {
- var length = arguments.length;
- if (!length) {
- return function() { return arguments[0]; };
- }
- var index = fromRight ? length : -1,
+ var length = arguments.length,
+ index = fromRight ? length : -1,
leftIndex = 0,
funcs = Array(length);
@@ -35,7 +32,7 @@ function createFlow(fromRight) {
}
return function() {
var index = 0,
- result = funcs[index].apply(this, arguments);
+ result = length ? funcs[index].apply(this, arguments) : arguments[0];
while (++index < length) {
result = funcs[index].call(this, result);
@@ -47,13 +44,13 @@ function createFlow(fromRight) {
/**
* 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.
*
* @static
+ * @since 0.1.0
* @memberOf _
- * @alias backflow, compose
- * @category Function
- * @param {...Function} [funcs] Functions to invoke.
+ * @category Util
+ * @param {...(Function|Function[])} [funcs] Functions to invoke.
* @returns {Function} Returns the new function.
* @example
*
diff --git a/lodash.flowright/package.json b/lodash.flowright/package.json
index bcb8303f5..dcd4dc537 100644
--- a/lodash.flowright/package.json
+++ b/lodash.flowright/package.json
@@ -1,6 +1,6 @@
{
"name": "lodash.flowright",
- "version": "3.2.0",
+ "version": "3.2.1",
"description": "The modern build of lodash’s `_.flowRight` as a module.",
"homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg",
diff --git a/lodash.has/README.md b/lodash.has/README.md
index 56eb2e8c6..b866f3868 100644
--- a/lodash.has/README.md
+++ b/lodash.has/README.md
@@ -1,4 +1,4 @@
-# lodash.has v3.2.0
+# lodash.has v3.2.1
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.has` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
@@ -17,4 +17,4 @@ In Node.js/io.js:
var has = require('lodash.has');
```
-See the [documentation](https://lodash.com/docs#has) or [package source](https://github.com/lodash/lodash/blob/3.2.0-npm-packages/lodash.has) for more details.
+See the [documentation](https://lodash.com/docs#has) or [package source](https://github.com/lodash/lodash/blob/3.2.1-npm-packages/lodash.has) for more details.
diff --git a/lodash.has/index.js b/lodash.has/index.js
index 5062d7a7a..a797d83c8 100644
--- a/lodash.has/index.js
+++ b/lodash.has/index.js
@@ -1,5 +1,5 @@
/**
- * lodash 3.2.0 (Custom Build)
+ * lodash 3.2.1 (Custom Build)
* Build: `lodash modern modularize exports="npm" -o ./`
* Copyright 2012-2015 The Dojo Foundation
* Based on Underscore.js 1.8.3
@@ -16,6 +16,9 @@ var baseGet = require('lodash._baseget'),
var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\n\\]|\\.)*?\1)\]/,
reIsPlainProp = /^\w*$/;
+/** Used to detect unsigned integer values. */
+var reIsUint = /^\d+$/;
+
/** Used for native method references. */
var objectProto = Object.prototype;
@@ -23,7 +26,7 @@ var objectProto = Object.prototype;
var hasOwnProperty = objectProto.hasOwnProperty;
/**
- * Used as the [maximum length](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.max_safe_integer)
+ * Used as the [maximum length](http://ecma-international.org/ecma-262/6.0/#sec-number.max_safe_integer)
* of an array-like value.
*/
var MAX_SAFE_INTEGER = 9007199254740991;
@@ -37,7 +40,7 @@ var MAX_SAFE_INTEGER = 9007199254740991;
* @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
*/
function isIndex(value, length) {
- value = typeof value == 'number' ? value : parseFloat(value);
+ value = (typeof value == 'number' || reIsUint.test(value)) ? +value : -1;
length = length == null ? MAX_SAFE_INTEGER : length;
return value > -1 && value % 1 == 0 && value < length;
}
@@ -65,7 +68,7 @@ function isKey(value, object) {
/**
* Checks if `value` is a valid array-like length.
*
- * **Note:** This function is based on [`ToLength`](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-tolength).
+ * **Note:** This function is based on [`ToLength`](http://ecma-international.org/ecma-262/6.0/#sec-tolength).
*
* @private
* @param {*} value The value to check.
diff --git a/lodash.has/package.json b/lodash.has/package.json
index cfc89bf4b..151366e05 100644
--- a/lodash.has/package.json
+++ b/lodash.has/package.json
@@ -1,6 +1,6 @@
{
"name": "lodash.has",
- "version": "3.2.0",
+ "version": "3.2.1",
"description": "The modern build of lodash’s `_.has` as a module.",
"homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg",
diff --git a/lodash.invoke/README.md b/lodash.invoke/README.md
index 4bb98974e..0d8d981b3 100644
--- a/lodash.invoke/README.md
+++ b/lodash.invoke/README.md
@@ -1,4 +1,4 @@
-# lodash.invoke v3.2.0
+# lodash.invoke v3.2.1
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.invoke` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
@@ -17,4 +17,4 @@ In Node.js/io.js:
var invoke = require('lodash.invoke');
```
-See the [documentation](https://lodash.com/docs#invoke) or [package source](https://github.com/lodash/lodash/blob/3.2.0-npm-packages/lodash.invoke) for more details.
+See the [documentation](https://lodash.com/docs#invoke) or [package source](https://github.com/lodash/lodash/blob/3.2.1-npm-packages/lodash.invoke) for more details.
diff --git a/lodash.invoke/index.js b/lodash.invoke/index.js
index 6f4b9481a..9d146f8f0 100644
--- a/lodash.invoke/index.js
+++ b/lodash.invoke/index.js
@@ -1,5 +1,5 @@
/**
- * lodash 3.2.0 (Custom Build)
+ * lodash 3.2.1 (Custom Build)
* Build: `lodash modern modularize exports="npm" -o ./`
* Copyright 2012-2015 The Dojo Foundation
* Based on Underscore.js 1.8.3
@@ -12,7 +12,7 @@ var baseEach = require('lodash._baseeach'),
restParam = require('lodash.restparam');
/** Used to match property names within property paths. */
-var reIsDeepProp = /\.|\[(?:[^[\]]+|(["'])(?:(?!\1)[^\n\\]|\\.)*?)\1\]/,
+var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\n\\]|\\.)*?\1)\]/,
reIsPlainProp = /^\w*$/;
/**
@@ -38,7 +38,7 @@ function baseProperty(key) {
* 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)
- * in Safari on iOS 8.1 ARM64.
+ * that affects Safari on at least iOS 8.1-8.3 ARM64.
*
* @private
* @param {Object} object The object to query.
@@ -46,6 +46,17 @@ function baseProperty(key) {
*/
var getLength = baseProperty('length');
+/**
+ * Checks if `value` is array-like.
+ *
+ * @private
+ * @param {*} value The value to check.
+ * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
+ */
+function isArrayLike(value) {
+ return value != null && isLength(getLength(value));
+}
+
/**
* Checks if `value` is a property name and not a property path.
*
@@ -116,8 +127,7 @@ var invoke = restParam(function(collection, path, args) {
var index = -1,
isFunc = typeof path == 'function',
isProp = isKey(path),
- length = getLength(collection),
- result = isLength(length) ? Array(length) : [];
+ result = isArrayLike(collection) ? Array(collection.length) : [];
baseEach(collection, function(value) {
var func = isFunc ? path : (isProp && value != null && value[path]);
diff --git a/lodash.invoke/package.json b/lodash.invoke/package.json
index 68b992fb8..675551307 100644
--- a/lodash.invoke/package.json
+++ b/lodash.invoke/package.json
@@ -1,6 +1,6 @@
{
"name": "lodash.invoke",
- "version": "3.2.0",
+ "version": "3.2.1",
"description": "The modern build of lodash’s `_.invoke` as a module.",
"homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg",
diff --git a/lodash.isfinite/LICENSE b/lodash.isfinite/LICENSE
index 9cd87e5dc..b054ca5a3 100644
--- a/lodash.isfinite/LICENSE
+++ b/lodash.isfinite/LICENSE
@@ -1,5 +1,5 @@
-Copyright 2012-2015 The Dojo Foundation
-Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas,
+Copyright 2012-2016 The Dojo Foundation
+Based on Underscore.js, copyright 2009-2016 Jeremy Ashkenas,
DocumentCloud and Investigative Reporters & Editors
Permission is hereby granted, free of charge, to any person obtaining
diff --git a/lodash.isfinite/README.md b/lodash.isfinite/README.md
index 3c579f79d..e207d56fc 100644
--- a/lodash.isfinite/README.md
+++ b/lodash.isfinite/README.md
@@ -1,20 +1,18 @@
-# lodash.isfinite v3.2.0
+# lodash.isfinite v3.2.1
-The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.isFinite` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
+The [lodash](https://lodash.com/) method `_.isFinite` exported as a [Node.js](https://nodejs.org/) module.
## Installation
Using npm:
-
```bash
$ {sudo -H} npm i -g npm
$ npm i --save lodash.isfinite
```
-In Node.js/io.js:
-
+In Node.js:
```js
var isFinite = require('lodash.isfinite');
```
-See the [documentation](https://lodash.com/docs#isFinite) or [package source](https://github.com/lodash/lodash/blob/3.2.0-npm-packages/lodash.isfinite) for more details.
+See the [documentation](https://lodash.com/docs#isFinite) or [package source](https://github.com/lodash/lodash/blob/3.2.1-npm-packages/lodash.isfinite) for more details.
diff --git a/lodash.isfinite/index.js b/lodash.isfinite/index.js
index 86d0cff95..aeaf98b51 100644
--- a/lodash.isfinite/index.js
+++ b/lodash.isfinite/index.js
@@ -1,14 +1,57 @@
/**
- * lodash 3.2.0 (Custom Build)
+ * lodash 3.2.1 (Custom Build)
* Build: `lodash modularize exports="npm" -o ./`
- * Copyright 2012-2015 The Dojo Foundation
+ * Copyright 2012-2016 The Dojo Foundation
* Based on Underscore.js 1.8.3
- * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
+ * Copyright 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
* Available under MIT license
*/
+/** Used to determine if values are of the language type `Object`. */
+var objectTypes = {
+ 'function': true,
+ 'object': true
+};
+
+/** Detect free variable `exports`. */
+var freeExports = (objectTypes[typeof exports] && exports && !exports.nodeType) ? exports : null;
+
+/** Detect free variable `module`. */
+var freeModule = (objectTypes[typeof module] && module && !module.nodeType) ? module : null;
+
+/** 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')();
+
+/**
+ * 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;
+}
+
/* Built-in method references for those with the same name as other `lodash` methods. */
-var nativeIsFinite = global.isFinite;
+var nativeIsFinite = root.isFinite;
/**
* Checks if `value` is a finite primitive number.
diff --git a/lodash.isfinite/package.json b/lodash.isfinite/package.json
index 4a97734fc..382463193 100644
--- a/lodash.isfinite/package.json
+++ b/lodash.isfinite/package.json
@@ -1,17 +1,15 @@
{
"name": "lodash.isfinite",
- "version": "3.2.0",
- "description": "The modern build of lodash’s `_.isFinite` as a module.",
+ "version": "3.2.1",
+ "description": "The lodash method `_.isFinite` exported as a module.",
"homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg",
"license": "MIT",
- "keywords": "lodash, lodash-modularized, stdlib, util",
+ "keywords": "lodash-modularized, isfinite",
"author": "John-David Dalton (http://allyoucanleet.com/)",
"contributors": [
"John-David Dalton (http://allyoucanleet.com/)",
- "Benjamin Tan (https://d10.github.io/)",
- "Blaine Bublitz (http://www.iceddev.com/)",
- "Kit Cambridge (http://kitcambridge.be/)",
+ "Blaine Bublitz (https://github.com/phated)",
"Mathias Bynens (https://mathiasbynens.be/)"
],
"repository": "lodash/lodash",
diff --git a/lodash.matchesproperty/LICENSE.txt b/lodash.matchesproperty/LICENSE.txt
index 17764328c..9cd87e5dc 100644
--- a/lodash.matchesproperty/LICENSE.txt
+++ b/lodash.matchesproperty/LICENSE.txt
@@ -1,5 +1,5 @@
Copyright 2012-2015 The Dojo Foundation
-Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas,
+Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas,
DocumentCloud and Investigative Reporters & Editors
Permission is hereby granted, free of charge, to any person obtaining
diff --git a/lodash.matchesproperty/README.md b/lodash.matchesproperty/README.md
index 4339acd40..d59433e29 100644
--- a/lodash.matchesproperty/README.md
+++ b/lodash.matchesproperty/README.md
@@ -1,4 +1,4 @@
-# lodash.matchesproperty v3.2.0
+# lodash.matchesproperty v3.2.1
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.matchesProperty` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
@@ -17,4 +17,4 @@ In Node.js/io.js:
var matchesProperty = require('lodash.matchesproperty');
```
-See the [documentation](https://lodash.com/docs#matchesProperty) or [package source](https://github.com/lodash/lodash/blob/3.2.0-npm-packages/lodash.matchesproperty) for more details.
+See the [documentation](https://lodash.com/docs#matchesProperty) or [package source](https://github.com/lodash/lodash/blob/3.2.1-npm-packages/lodash.matchesproperty) for more details.
diff --git a/lodash.matchesproperty/index.js b/lodash.matchesproperty/index.js
index 0ad075122..c311f47bf 100644
--- a/lodash.matchesproperty/index.js
+++ b/lodash.matchesproperty/index.js
@@ -1,8 +1,8 @@
/**
- * lodash 3.2.0 (Custom Build)
+ * lodash 3.2.1 (Custom Build)
* Build: `lodash modern modularize exports="npm" -o ./`
* Copyright 2012-2015 The Dojo Foundation
- * Based on Underscore.js 1.7.0
+ * Based on Underscore.js 1.8.3
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
* Available under MIT license
*/
@@ -10,7 +10,7 @@ var baseClone = require('lodash._baseclone'),
baseMatchesProperty = require('lodash._basematchesproperty');
/**
- * Creates a function which compares the property value of `key` on a given
+ * Creates a function which compares the property value of `path` on a given
* object to `value`.
*
* **Note:** This method supports comparing arrays, booleans, `Date` objects,
@@ -20,7 +20,7 @@ var baseClone = require('lodash._baseclone'),
* @static
* @memberOf _
* @category Utility
- * @param {string} key The key of the property to get.
+ * @param {Array|string} path The path of the property to get.
* @param {*} value The value to compare.
* @returns {Function} Returns the new function.
* @example
@@ -33,8 +33,8 @@ var baseClone = require('lodash._baseclone'),
* _.find(users, _.matchesProperty('user', 'fred'));
* // => { 'user': 'fred' }
*/
-function matchesProperty(key, value) {
- return baseMatchesProperty(key + '', baseClone(value, true));
+function matchesProperty(path, value) {
+ return baseMatchesProperty(path, baseClone(value, true));
}
module.exports = matchesProperty;
diff --git a/lodash.matchesproperty/package.json b/lodash.matchesproperty/package.json
index aeb4c4dae..50d30d902 100644
--- a/lodash.matchesproperty/package.json
+++ b/lodash.matchesproperty/package.json
@@ -1,6 +1,6 @@
{
"name": "lodash.matchesproperty",
- "version": "3.2.0",
+ "version": "3.2.1",
"description": "The modern build of lodash’s `_.matchesProperty` as a module.",
"homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg",
diff --git a/lodash.merge/README.md b/lodash.merge/README.md
index 97f31af43..d727d0893 100644
--- a/lodash.merge/README.md
+++ b/lodash.merge/README.md
@@ -1,4 +1,4 @@
-# lodash.merge v3.2.0
+# lodash.merge v3.2.1
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.merge` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
@@ -17,4 +17,4 @@ In Node.js/io.js:
var merge = require('lodash.merge');
```
-See the [documentation](https://lodash.com/docs#merge) or [package source](https://github.com/lodash/lodash/blob/3.2.0-npm-packages/lodash.merge) for more details.
+See the [documentation](https://lodash.com/docs#merge) or [package source](https://github.com/lodash/lodash/blob/3.2.1-npm-packages/lodash.merge) for more details.
diff --git a/lodash.merge/index.js b/lodash.merge/index.js
index a8f509e0b..a181e1c72 100644
--- a/lodash.merge/index.js
+++ b/lodash.merge/index.js
@@ -1,5 +1,5 @@
/**
- * lodash 3.2.0 (Custom Build)
+ * lodash 3.2.1 (Custom Build)
* Build: `lodash modern modularize exports="npm" -o ./`
* Copyright 2012-2015 The Dojo Foundation
* Based on Underscore.js 1.8.3
@@ -58,7 +58,7 @@ function baseMerge(object, source, customizer, stackA, stackB) {
if (!isObject(object)) {
return object;
}
- var isSrcArr = isLength(source.length) && (isArray(source) || isTypedArray(source));
+ var isSrcArr = isArrayLike(source) && (isArray(source) || isTypedArray(source));
if (!isSrcArr) {
var props = keys(source);
push.apply(props, getSymbols(source));
@@ -121,10 +121,10 @@ function baseMergeDeep(object, source, key, mergeFunc, customizer, stackA, stack
if (isCommon) {
result = srcValue;
- if (isLength(srcValue.length) && (isArray(srcValue) || isTypedArray(srcValue))) {
+ if (isArrayLike(srcValue) && (isArray(srcValue) || isTypedArray(srcValue))) {
result = isArray(value)
? value
- : (getLength(value) ? arrayCopy(value) : []);
+ : (isArrayLike(value) ? arrayCopy(value) : []);
}
else if (isPlainObject(srcValue) || isArguments(srcValue)) {
result = isArguments(value)
@@ -165,7 +165,7 @@ function baseProperty(key) {
* 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)
- * in Safari on iOS 8.1 ARM64.
+ * that affects Safari on at least iOS 8.1-8.3 ARM64.
*
* @private
* @param {Object} object The object to query.
@@ -184,6 +184,17 @@ var getSymbols = !getOwnPropertySymbols ? constant([]) : function(object) {
return getOwnPropertySymbols(toObject(object));
};
+/**
+ * Checks if `value` is array-like.
+ *
+ * @private
+ * @param {*} value The value to check.
+ * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
+ */
+function isArrayLike(value) {
+ return value != null && isLength(getLength(value));
+}
+
/**
* Checks if `value` is a valid array-like length.
*
diff --git a/lodash.merge/package.json b/lodash.merge/package.json
index 2e38d0bc4..67cefe4e9 100644
--- a/lodash.merge/package.json
+++ b/lodash.merge/package.json
@@ -1,6 +1,6 @@
{
"name": "lodash.merge",
- "version": "3.2.0",
+ "version": "3.2.1",
"description": "The modern build of lodash’s `_.merge` as a module.",
"homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg",
diff --git a/lodash.pad/README.md b/lodash.pad/README.md
index 89c8deeaf..3e4c3c199 100644
--- a/lodash.pad/README.md
+++ b/lodash.pad/README.md
@@ -1,4 +1,4 @@
-# lodash.pad v3.2.0
+# lodash.pad v3.2.1
The [lodash](https://lodash.com/) method `_.pad` exported as a [Node.js](https://nodejs.org/) module.
@@ -15,4 +15,4 @@ In Node.js:
var pad = require('lodash.pad');
```
-See the [documentation](https://lodash.com/docs#pad) or [package source](https://github.com/lodash/lodash/blob/3.2.0-npm-packages/lodash.pad) for more details.
+See the [documentation](https://lodash.com/docs#pad) or [package source](https://github.com/lodash/lodash/blob/3.2.1-npm-packages/lodash.pad) for more details.
diff --git a/lodash.pad/index.js b/lodash.pad/index.js
index 4a32b912c..b4b4f60e6 100644
--- a/lodash.pad/index.js
+++ b/lodash.pad/index.js
@@ -1,5 +1,5 @@
/**
- * lodash 3.2.0 (Custom Build)
+ * lodash 3.2.1 (Custom Build)
* Build: `lodash modularize exports="npm" -o ./`
* Copyright 2012-2016 The Dojo Foundation
* Based on Underscore.js 1.8.3
@@ -32,13 +32,15 @@ var reIsOctal = /^0o[0-7]+$/i;
/** Used to compose unicode character classes. */
var rsAstralRange = '\\ud800-\\udfff',
- rsComboRange = '\\u0300-\\u036f\\ufe20-\\ufe23',
+ rsComboMarksRange = '\\u0300-\\u036f\\ufe20-\\ufe23',
+ rsComboSymbolsRange = '\\u20d0-\\u20f0',
rsVarRange = '\\ufe0e\\ufe0f';
/** Used to compose unicode capture groups. */
var rsAstral = '[' + rsAstralRange + ']',
- rsCombo = '[' + rsComboRange + ']',
- rsModifier = '(?:\\ud83c[\\udffb-\\udfff])',
+ rsCombo = '[' + rsComboMarksRange + rsComboSymbolsRange + ']',
+ rsFitz = '\\ud83c[\\udffb-\\udfff]',
+ rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',
rsNonAstral = '[^' + rsAstralRange + ']',
rsRegional = '(?:\\ud83c[\\udde6-\\uddff]){2}',
rsSurrPair = '[\\ud800-\\udbff][\\udc00-\\udfff]',
@@ -52,10 +54,10 @@ var reOptMod = rsModifier + '?',
rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';
/** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */
-var reComplexSymbol = RegExp(rsSymbol + rsSeq, 'g');
+var reComplexSymbol = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');
/** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */
-var reHasComplexSymbol = RegExp('[' + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + ']');
+var reHasComplexSymbol = RegExp('[' + rsZWJ + rsAstralRange + rsComboMarksRange + rsComboSymbolsRange + rsVarRange + ']');
/** Built-in method references without a dependency on `global`. */
var freeParseInt = parseInt;
@@ -63,6 +65,7 @@ var freeParseInt = parseInt;
/**
* Gets the number of symbols in `string`.
*
+ * @private
* @param {string} string The string to inspect.
* @returns {number} Returns the string size.
*/
@@ -98,15 +101,15 @@ var objectProto = global.Object.prototype;
var objectToString = objectProto.toString;
/** Built-in value references. */
-var _Symbol = global.Symbol;
+var Symbol = global.Symbol;
/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeCeil = Math.ceil,
nativeFloor = Math.floor;
/** Used to convert symbols to primitives and strings. */
-var symbolProto = _Symbol ? _Symbol.prototype : undefined,
- symbolToString = _Symbol ? symbolProto.toString : undefined;
+var symbolProto = Symbol ? Symbol.prototype : undefined,
+ symbolToString = Symbol ? symbolProto.toString : undefined;
/**
* Creates the padding for `string` based on `length`. The `chars` string
@@ -182,8 +185,6 @@ function isFunction(value) {
* // => false
*/
function isObject(value) {
- // Avoid a V8 JIT bug in Chrome 19-20.
- // See https://code.google.com/p/v8/issues/detail?id=2291 for more details.
var type = typeof value;
return !!value && (type == 'object' || type == 'function');
}
@@ -339,7 +340,7 @@ function toString(value) {
return '';
}
if (isSymbol(value)) {
- return _Symbol ? symbolToString.call(value) : '';
+ return Symbol ? symbolToString.call(value) : '';
}
var result = (value + '');
return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
diff --git a/lodash.pad/package.json b/lodash.pad/package.json
index d5b701d37..b52824426 100644
--- a/lodash.pad/package.json
+++ b/lodash.pad/package.json
@@ -1,6 +1,6 @@
{
"name": "lodash.pad",
- "version": "3.2.0",
+ "version": "3.2.1",
"description": "The lodash method `_.pad` exported as a module.",
"homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg",
diff --git a/lodash.some/README.md b/lodash.some/README.md
index 732b55f4d..c95c7e5e7 100644
--- a/lodash.some/README.md
+++ b/lodash.some/README.md
@@ -1,4 +1,4 @@
-# lodash.some v3.2.0
+# lodash.some v3.2.1
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.some` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
@@ -17,4 +17,4 @@ In Node.js/io.js:
var some = require('lodash.some');
```
-See the [documentation](https://lodash.com/docs#some) or [package source](https://github.com/lodash/lodash/blob/3.2.0-npm-packages/lodash.some) for more details.
+See the [documentation](https://lodash.com/docs#some) or [package source](https://github.com/lodash/lodash/blob/3.2.1-npm-packages/lodash.some) for more details.
diff --git a/lodash.some/index.js b/lodash.some/index.js
index 55793e517..784b54545 100644
--- a/lodash.some/index.js
+++ b/lodash.some/index.js
@@ -1,8 +1,8 @@
/**
- * lodash 3.2.0 (Custom Build)
+ * lodash 3.2.1 (Custom Build)
* Build: `lodash modern modularize exports="npm" -o ./`
* Copyright 2012-2015 The Dojo Foundation
- * Based on Underscore.js 1.8.2
+ * Based on Underscore.js 1.8.3
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
* Available under MIT license
*/
@@ -108,7 +108,7 @@ function some(collection, predicate, thisArg) {
if (thisArg && isIterateeCall(collection, predicate, thisArg)) {
predicate = null;
}
- if (typeof predicate != 'function' || typeof thisArg != 'undefined') {
+ if (typeof predicate != 'function' || thisArg !== undefined) {
predicate = baseCallback(predicate, thisArg, 3);
}
return func(collection, predicate);
diff --git a/lodash.some/package.json b/lodash.some/package.json
index 4fbb2c3bc..ce2b34c9a 100644
--- a/lodash.some/package.json
+++ b/lodash.some/package.json
@@ -1,6 +1,6 @@
{
"name": "lodash.some",
- "version": "3.2.0",
+ "version": "3.2.1",
"description": "The modern build of lodash’s `_.some` as a module.",
"homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg",
diff --git a/lodash.sortbyall/README.md b/lodash.sortbyall/README.md
index bd02f6cf4..b30e8c9f5 100644
--- a/lodash.sortbyall/README.md
+++ b/lodash.sortbyall/README.md
@@ -1,4 +1,4 @@
-# lodash.sortbyall v3.2.0
+# lodash.sortbyall v3.2.1
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.sortByAll` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
@@ -17,4 +17,4 @@ In Node.js/io.js:
var sortByAll = require('lodash.sortbyall');
```
-See the [documentation](https://lodash.com/docs#sortByAll) or [package source](https://github.com/lodash/lodash/blob/3.2.0-npm-packages/lodash.sortbyall) for more details.
+See the [documentation](https://lodash.com/docs#sortByAll) or [package source](https://github.com/lodash/lodash/blob/3.2.1-npm-packages/lodash.sortbyall) for more details.
diff --git a/lodash.sortbyall/index.js b/lodash.sortbyall/index.js
index 82c0a3aab..f84fee2e8 100644
--- a/lodash.sortbyall/index.js
+++ b/lodash.sortbyall/index.js
@@ -1,17 +1,14 @@
/**
- * lodash 3.2.0 (Custom Build)
+ * lodash 3.2.1 (Custom Build)
* Build: `lodash modern modularize exports="npm" -o ./`
* Copyright 2012-2015 The Dojo Foundation
* Based on Underscore.js 1.8.3
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
* Available under MIT license
*/
-var baseEach = require('lodash._baseeach'),
- baseFlatten = require('lodash._baseflatten'),
+var baseFlatten = require('lodash._baseflatten'),
baseSortByOrder = require('lodash._basesortbyorder'),
isIterateeCall = require('lodash._isiterateecall'),
- isArguments = require('lodash.isarguments'),
- isArray = require('lodash.isarray'),
restParam = require('lodash.restparam');
/**
diff --git a/lodash.sortbyall/package.json b/lodash.sortbyall/package.json
index 77eaad44c..0002a81a3 100644
--- a/lodash.sortbyall/package.json
+++ b/lodash.sortbyall/package.json
@@ -1,6 +1,6 @@
{
"name": "lodash.sortbyall",
- "version": "3.2.0",
+ "version": "3.2.1",
"description": "The modern build of lodash’s `_.sortByAll` as a module.",
"homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg",
diff --git a/lodash.spread/LICENSE.txt b/lodash.spread/LICENSE
similarity index 89%
rename from lodash.spread/LICENSE.txt
rename to lodash.spread/LICENSE
index 17764328c..b054ca5a3 100644
--- a/lodash.spread/LICENSE.txt
+++ b/lodash.spread/LICENSE
@@ -1,5 +1,5 @@
-Copyright 2012-2015 The Dojo Foundation
-Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas,
+Copyright 2012-2016 The Dojo Foundation
+Based on Underscore.js, copyright 2009-2016 Jeremy Ashkenas,
DocumentCloud and Investigative Reporters & Editors
Permission is hereby granted, free of charge, to any person obtaining
diff --git a/lodash.spread/README.md b/lodash.spread/README.md
index d2928cf39..dc404b95a 100644
--- a/lodash.spread/README.md
+++ b/lodash.spread/README.md
@@ -1,20 +1,18 @@
-# lodash.spread v3.2.0
+# lodash.spread v3.2.1
-The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.spread` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
+The [lodash](https://lodash.com/) method `_.spread` exported as a [Node.js](https://nodejs.org/) module.
## Installation
Using npm:
-
```bash
$ {sudo -H} npm i -g npm
$ npm i --save lodash.spread
```
-In Node.js/io.js:
-
+In Node.js:
```js
var spread = require('lodash.spread');
```
-See the [documentation](https://lodash.com/docs#spread) or [package source](https://github.com/lodash/lodash/blob/3.2.0-npm-packages/lodash.spread) for more details.
+See the [documentation](https://lodash.com/docs#spread) or [package source](https://github.com/lodash/lodash/blob/3.2.1-npm-packages/lodash.spread) for more details.
diff --git a/lodash.spread/index.js b/lodash.spread/index.js
index 43b1ce959..76fdb6da9 100644
--- a/lodash.spread/index.js
+++ b/lodash.spread/index.js
@@ -1,20 +1,41 @@
/**
- * lodash 3.2.0 (Custom Build)
- * Build: `lodash modern modularize exports="npm" -o ./`
- * Copyright 2012-2015 The Dojo Foundation
- * Based on Underscore.js 1.7.0
- * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
+ * lodash 3.2.1 (Custom Build)
+ * Build: `lodash modularize exports="npm" -o ./`
+ * Copyright 2012-2016 The Dojo Foundation
+ * Based on Underscore.js 1.8.3
+ * Copyright 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
* Available under MIT license
*/
/** Used as the `TypeError` message for "Functions" methods. */
var FUNC_ERROR_TEXT = 'Expected a function';
+/**
+ * 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 {...*} [args] The arguments to invoke `func` with.
+ * @returns {*} Returns the result of `func`.
+ */
+function apply(func, thisArg, args) {
+ var length = args ? args.length : 0;
+ 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);
+}
+
/**
* Creates a function that invokes `func` with the `this` binding of the created
* function and an array of arguments much like [`Function#apply`](https://es5.github.io/#x15.3.4.3).
*
- * **Note:** This method is based on the [spread operator](https://developer.mozilla.org/Web/JavaScript/Reference/Operators/Spread_operator).
+ * **Note:** This method is based on the [spread operator](https://mdn.io/spread_operator).
*
* @static
* @memberOf _
@@ -46,7 +67,7 @@ function spread(func) {
throw new TypeError(FUNC_ERROR_TEXT);
}
return function(array) {
- return func.apply(this, array);
+ return apply(func, this, array);
};
}
diff --git a/lodash.spread/package.json b/lodash.spread/package.json
index 9a2b845a4..79da9b5ff 100644
--- a/lodash.spread/package.json
+++ b/lodash.spread/package.json
@@ -1,17 +1,15 @@
{
"name": "lodash.spread",
- "version": "3.2.0",
- "description": "The modern build of lodash’s `_.spread` as a module.",
+ "version": "3.2.1",
+ "description": "The lodash method `_.spread` exported as a module.",
"homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg",
"license": "MIT",
- "keywords": "lodash, lodash-modularized, stdlib, util",
+ "keywords": "lodash, lodash-modularized, stdlib, util, spread",
"author": "John-David Dalton (http://allyoucanleet.com/)",
"contributors": [
"John-David Dalton (http://allyoucanleet.com/)",
- "Benjamin Tan (https://d10.github.io/)",
- "Blaine Bublitz (http://www.iceddev.com/)",
- "Kit Cambridge (http://kitcambridge.be/)",
+ "Blaine Bublitz (https://github.com/phated)",
"Mathias Bynens (https://mathiasbynens.be/)"
],
"repository": "lodash/lodash",
diff --git a/lodash.uniq/README.md b/lodash.uniq/README.md
index 199b34099..7414b73d6 100644
--- a/lodash.uniq/README.md
+++ b/lodash.uniq/README.md
@@ -1,4 +1,4 @@
-# lodash.uniq v3.2.0
+# lodash.uniq v3.2.1
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.uniq` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
@@ -17,4 +17,4 @@ In Node.js/io.js:
var uniq = require('lodash.uniq');
```
-See the [documentation](https://lodash.com/docs#uniq) or [package source](https://github.com/lodash/lodash/blob/3.2.0-npm-packages/lodash.uniq) for more details.
+See the [documentation](https://lodash.com/docs#uniq) or [package source](https://github.com/lodash/lodash/blob/3.2.1-npm-packages/lodash.uniq) for more details.
diff --git a/lodash.uniq/index.js b/lodash.uniq/index.js
index 6f7d73551..7f842ff0f 100644
--- a/lodash.uniq/index.js
+++ b/lodash.uniq/index.js
@@ -1,5 +1,5 @@
/**
- * lodash 3.2.0 (Custom Build)
+ * lodash 3.2.1 (Custom Build)
* Build: `lodash modern modularize exports="npm" -o ./`
* Copyright 2012-2015 The Dojo Foundation
* Based on Underscore.js 1.8.3
@@ -8,9 +8,7 @@
*/
var baseCallback = require('lodash._basecallback'),
baseUniq = require('lodash._baseuniq'),
- getNative = require('lodash._getnative'),
- isIterateeCall = require('lodash._isiterateecall'),
- isArray = require('lodash.isarray');
+ isIterateeCall = require('lodash._isiterateecall');
/**
* An implementation of `_.uniq` optimized for sorted arrays without support
diff --git a/lodash.uniq/package.json b/lodash.uniq/package.json
index 5b2826c56..709c8121e 100644
--- a/lodash.uniq/package.json
+++ b/lodash.uniq/package.json
@@ -1,6 +1,6 @@
{
"name": "lodash.uniq",
- "version": "3.2.0",
+ "version": "3.2.1",
"description": "The modern build of lodash’s `_.uniq` as a module.",
"homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg",
diff --git a/lodash.unzip/README.md b/lodash.unzip/README.md
index 4398b5ee9..75c6e4907 100644
--- a/lodash.unzip/README.md
+++ b/lodash.unzip/README.md
@@ -1,4 +1,4 @@
-# lodash.unzip v3.2.0
+# lodash.unzip v3.2.1
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.unzip` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
@@ -17,4 +17,4 @@ In Node.js/io.js:
var unzip = require('lodash.unzip');
```
-See the [documentation](https://lodash.com/docs#unzip) or [package source](https://github.com/lodash/lodash/blob/3.2.0-npm-packages/lodash.unzip) for more details.
+See the [documentation](https://lodash.com/docs#unzip) or [package source](https://github.com/lodash/lodash/blob/3.2.1-npm-packages/lodash.unzip) for more details.
diff --git a/lodash.unzip/index.js b/lodash.unzip/index.js
index 82ba074e1..decfddf9b 100644
--- a/lodash.unzip/index.js
+++ b/lodash.unzip/index.js
@@ -1,5 +1,5 @@
/**
- * lodash 3.2.0 (Custom Build)
+ * lodash 3.2.1 (Custom Build)
* Build: `lodash modern modularize exports="npm" -o ./`
* Copyright 2012-2015 The Dojo Foundation
* Based on Underscore.js 1.8.3
@@ -13,10 +13,10 @@ var arrayFilter = require('lodash._arrayfilter'),
var nativeMax = Math.max;
/**
- * Used as the [maximum length](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.max_safe_integer)
+ * Used as the [maximum length](http://ecma-international.org/ecma-262/6.0/#sec-number.max_safe_integer)
* of an array-like value.
*/
-var MAX_SAFE_INTEGER = Math.pow(2, 53) - 1;
+var MAX_SAFE_INTEGER = 9007199254740991;
/**
* The base implementation of `_.property` without support for deep paths.
@@ -57,7 +57,7 @@ function isArrayLike(value) {
/**
* Checks if `value` is a valid array-like length.
*
- * **Note:** This function is based on [`ToLength`](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-tolength).
+ * **Note:** This function is based on [`ToLength`](http://ecma-international.org/ecma-262/6.0/#sec-tolength).
*
* @private
* @param {*} value The value to check.
diff --git a/lodash.unzip/package.json b/lodash.unzip/package.json
index f325b0b22..cead7e8bc 100644
--- a/lodash.unzip/package.json
+++ b/lodash.unzip/package.json
@@ -1,6 +1,6 @@
{
"name": "lodash.unzip",
- "version": "3.2.0",
+ "version": "3.2.1",
"description": "The modern build of lodash’s `_.unzip` as a module.",
"homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg",
diff --git a/lodash.without/README.md b/lodash.without/README.md
index da352a717..5414eed6d 100644
--- a/lodash.without/README.md
+++ b/lodash.without/README.md
@@ -1,4 +1,4 @@
-# lodash.without v3.2.0
+# lodash.without v3.2.1
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.without` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
@@ -17,4 +17,4 @@ In Node.js/io.js:
var without = require('lodash.without');
```
-See the [documentation](https://lodash.com/docs#without) or [package source](https://github.com/lodash/lodash/blob/3.2.0-npm-packages/lodash.without) for more details.
+See the [documentation](https://lodash.com/docs#without) or [package source](https://github.com/lodash/lodash/blob/3.2.1-npm-packages/lodash.without) for more details.
diff --git a/lodash.without/index.js b/lodash.without/index.js
index 6108da1d2..ab28c17d1 100644
--- a/lodash.without/index.js
+++ b/lodash.without/index.js
@@ -1,5 +1,5 @@
/**
- * lodash 3.2.0 (Custom Build)
+ * lodash 3.2.1 (Custom Build)
* Build: `lodash modern modularize exports="npm" -o ./`
* Copyright 2012-2015 The Dojo Foundation
* Based on Underscore.js 1.8.3
@@ -10,10 +10,10 @@ var baseDifference = require('lodash._basedifference'),
restParam = require('lodash.restparam');
/**
- * Used as the [maximum length](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.max_safe_integer)
+ * Used as the [maximum length](http://ecma-international.org/ecma-262/6.0/#sec-number.max_safe_integer)
* of an array-like value.
*/
-var MAX_SAFE_INTEGER = Math.pow(2, 53) - 1;
+var MAX_SAFE_INTEGER = 9007199254740991;
/**
* The base implementation of `_.property` without support for deep paths.
@@ -54,7 +54,7 @@ function isArrayLike(value) {
/**
* Checks if `value` is a valid array-like length.
*
- * **Note:** This function is based on [`ToLength`](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-tolength).
+ * **Note:** This function is based on [`ToLength`](http://ecma-international.org/ecma-262/6.0/#sec-tolength).
*
* @private
* @param {*} value The value to check.
@@ -66,7 +66,7 @@ function isLength(value) {
/**
* Creates an array excluding all provided values using
- * [`SameValueZero`](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-samevaluezero)
+ * [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
* for equality comparisons.
*
* @static
diff --git a/lodash.without/package.json b/lodash.without/package.json
index 1ca6bd899..96700aaa7 100644
--- a/lodash.without/package.json
+++ b/lodash.without/package.json
@@ -1,6 +1,6 @@
{
"name": "lodash.without",
- "version": "3.2.0",
+ "version": "3.2.1",
"description": "The modern build of lodash’s `_.without` as a module.",
"homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg",