e?c*("desc"==r[e]?-1:1):c;break n}}e=n.b-t.b}return e})}function wt(n,t){return n=Object(n),l(t,function(t,r){return r in n&&(t[r]=n[r]),
-t},{})}function At(n,t){var r={};return ot(n,function(n,e){t(n)&&(r[e]=n)}),r}function Ot(n){return function(t){return null==t?Z:t[n]}}function Et(n){return function(t){return at(t,n)}}function kt(n,t,r){var e=-1,u=t.length,o=n;for(r&&(o=c(n,function(n){return r(n)}));++ee?c*("desc"==r[e]?-1:1):c;break n}}e=n.b-t.b}return e})}function wt(n,t){return n=Object(n),l(t,function(t,r){return r in n&&(t[r]=n[r]),
+t},{})}function At(n,t){var r={};return ot(n,function(n,e){t(n,e)&&(r[e]=n)}),r}function Ot(n){return function(t){return null==t?Z:t[n]}}function Et(n){return function(t){return at(t,n)}}function kt(n,t,r){var e=-1,u=t.length,o=n;for(r&&(o=c(n,function(n){return r(n)}));++et&&(t=-t>u?0:u+t),r=r>u?u:r,0>r&&(r+=u),u=t>r?0:r-t>>>0,t>>>=0,r=Array(u);++e=u){for(;u>e;){var o=e+u>>>1,i=n[o];(r?t>=i:t>i)&&null!==i?e=o+1:u=o}return u}return zt(n,t,Ne,r)}function zt(n,t,r,e){t=r(t);for(var u=0,o=n?n.length:0,i=t!==t,f=null===t,c=t===Z;o>u;){var a=bu((u+o)/2),l=r(n[a]),s=l!==Z,h=l===l;(i?h||e:f?h&&s&&(e||null!=l):c?h&&(e||s):null==l?0:e?t>=l:t>l)?u=a+1:o=a}return Au(o,4294967294)}function Bt(n,t){for(var r=0,e=n.length,u=n[0],o=t?t(u):u,i=o,f=0,c=[u];++r
@@ -1207,7 +1205,7 @@ This method is like `_.pull` except that it accepts an array of values to remove
```js
var array = [1, 2, 3, 1, 2, 3];
-_.pull(array, [2, 3]);
+_.pullAll(array, [2, 3]);
console.log(array);
// => [1, 1]
```
@@ -1218,7 +1216,7 @@ console.log(array);
### `_.pullAllBy(array, values, [iteratee=_.identity])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L6064 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.pullallby "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L6088 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.pullallby "See the npm package")
This method is like `_.pullAll` except that it accepts `iteratee` which is
invoked for each element of `array` and `values` to to generate the criterion
@@ -1250,7 +1248,7 @@ console.log(array);
### `_.pullAt(array, [indexes])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L6094 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.pullat "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L6118 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.pullat "See the npm package")
Removes elements from `array` corresponding to `indexes` and returns an
array of removed elements.
@@ -1283,7 +1281,7 @@ console.log(evens);
### `_.remove(array, [predicate=_.identity])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L6128 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.remove "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L6152 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.remove "See the npm package")
Removes all elements from `array` that `predicate` returns truthy for
and returns an array of the removed elements. The predicate is invoked with
@@ -1318,8 +1316,37 @@ console.log(evens);
+### `_.reverse()`
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L6194 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.reverse "See the npm package")
+
+Reverses `array` so that the first element becomes the last, the second
+element becomes the second to last, and so on.
+
+
+**Note:** This method mutates `array` and is based on
+[`Array#reverse`](https://mdn.io/Array/reverse).
+
+#### Returns
+*(Array)*: Returns `array`.
+
+#### Example
+```js
+var array = [1, 2, 3];
+
+_.reverse(array);
+// => [3, 2, 1]
+
+console.log(array);
+// => [3, 2, 1]
+```
+* * *
+
+
+
+
+
### `_.slice(array, [start=0], [end=array.length])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L6187 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.slice "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L6212 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.slice "See the npm package")
Creates a slice of `array` from `start` up to, but not including, `end`.
@@ -1342,7 +1369,7 @@ to ensure dense arrays are returned.
### `_.sortedIndex(array, value)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L6221 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.sortedindex "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L6246 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.sortedindex "See the npm package")
Uses a binary search to determine the lowest index at which `value` should
be inserted into `array` in order to maintain its sort order.
@@ -1369,7 +1396,7 @@ _.sortedIndex([4, 5], 4);
### `_.sortedIndexBy(array, value, [iteratee=_.identity])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L6248 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.sortedindexby "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L6273 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.sortedindexby "See the npm package")
This method is like `_.sortedIndex` except that it accepts `iteratee`
which is invoked for `value` and each element of `array` to compute their
@@ -1401,7 +1428,7 @@ _.sortedIndexBy([{ 'x': 4 }, { 'x': 5 }], { 'x': 4 }, 'x');
### `_.sortedIndexOf(array, value)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L6267 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.sortedindexof "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L6292 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.sortedindexof "See the npm package")
This method is like `_.indexOf` except that it performs a binary
search on a sorted `array`.
@@ -1425,7 +1452,7 @@ _.sortedIndexOf([1, 1, 2, 2], 2);
### `_.sortedLastIndex(array, value)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L6294 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.sortedlastindex "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L6319 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.sortedlastindex "See the npm package")
This method is like `_.sortedIndex` except that it returns the highest
index at which `value` should be inserted into `array` in order to
@@ -1450,7 +1477,7 @@ _.sortedLastIndex([4, 5], 4);
### `_.sortedLastIndexBy(array, value, [iteratee=_.identity])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L6316 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.sortedlastindexby "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L6341 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.sortedlastindexby "See the npm package")
This method is like `_.sortedLastIndex` except that it accepts `iteratee`
which is invoked for `value` and each element of `array` to compute their
@@ -1477,7 +1504,7 @@ _.sortedLastIndexBy([{ 'x': 4 }, { 'x': 5 }], { 'x': 4 }, 'x');
### `_.sortedLastIndexOf(array, value)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L6335 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.sortedlastindexof "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L6360 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.sortedlastindexof "See the npm package")
This method is like `_.lastIndexOf` except that it performs a binary
search on a sorted `array`.
@@ -1501,7 +1528,7 @@ _.sortedLastIndexOf([1, 1, 2, 2], 2);
### `_.sortedUniq(array)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L6360 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.sorteduniq "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L6385 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.sorteduniq "See the npm package")
This method is like `_.uniq` except that it's designed and optimized
for sorted arrays.
@@ -1524,7 +1551,7 @@ _.sortedUniq([1, 1, 2]);
### `_.sortedUniqBy(array, [iteratee])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L6381 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.sorteduniqby "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L6406 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.sorteduniqby "See the npm package")
This method is like `_.uniqBy` except that it's designed and optimized
for sorted arrays.
@@ -1548,7 +1575,7 @@ _.sortedUniqBy([1.1, 1.2, 2.3, 2.4], Math.floor);
### `_.tail(array)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L6400 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.tail "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L6425 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.tail "See the npm package")
Gets all but the first element of `array`.
@@ -1570,7 +1597,7 @@ _.tail([1, 2, 3]);
### `_.take(array, [n=1])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L6428 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.take "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L6453 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.take "See the npm package")
Creates a slice of `array` with `n` elements taken from the beginning.
@@ -1602,7 +1629,7 @@ _.take([1, 2, 3], 0);
### `_.takeRight(array, [n=1])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L6460 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.takeright "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L6485 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.takeright "See the npm package")
Creates a slice of `array` with `n` elements taken from the end.
@@ -1634,7 +1661,7 @@ _.takeRight([1, 2, 3], 0);
### `_.takeRightWhile(array, [predicate=_.identity])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L6504 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.takerightwhile "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L6529 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.takerightwhile "See the npm package")
Creates a slice of `array` with elements taken from the end. Elements are
taken until `predicate` returns falsey. The predicate is invoked with three
@@ -1677,7 +1704,7 @@ _.takeRightWhile(users, 'active');
### `_.takeWhile(array, [predicate=_.identity])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L6544 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.takewhile "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L6569 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.takewhile "See the npm package")
Creates a slice of `array` with elements taken from the beginning. Elements
are taken until `predicate` returns falsey. The predicate is invoked with
@@ -1720,7 +1747,7 @@ _.takeWhile(users, 'active');
### `_.union([arrays])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L6565 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.union "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L6590 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.union "See the npm package")
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)
@@ -1744,7 +1771,7 @@ _.union([2, 1], [4, 2], [1, 2]);
### `_.unionBy([arrays], [iteratee=_.identity])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L6589 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.unionby "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L6614 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.unionby "See the npm package")
This method is like `_.union` except that it accepts `iteratee` which is
invoked for each element of each `arrays` to generate the criterion by which
@@ -1773,7 +1800,7 @@ _.unionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');
### `_.unionWith([arrays], [comparator])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L6616 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.unionwith "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L6641 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.unionwith "See the npm package")
This method is like `_.union` except that it accepts `comparator` which
is invoked to compare elements of `arrays`. The comparator is invoked
@@ -1801,7 +1828,7 @@ _.unionWith(objects, others, _.isEqual);
### `_.uniq(array)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L6640 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.uniq "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L6665 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.uniq "See the npm package")
Creates a duplicate-free version of an array, using
[`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
@@ -1826,7 +1853,7 @@ _.uniq([2, 1, 2]);
### `_.uniqBy(array, [iteratee=_.identity])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L6666 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.uniqby "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L6691 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.uniqby "See the npm package")
This method is like `_.uniq` except that it accepts `iteratee` which is
invoked for each element in `array` to generate the criterion by which
@@ -1855,7 +1882,7 @@ _.uniqBy([{ 'x': 1 }, { 'x': 2 }, { 'x': 1 }], 'x');
### `_.uniqWith(array, [comparator])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L6690 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.uniqwith "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L6715 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.uniqwith "See the npm package")
This method is like `_.uniq` except that it accepts `comparator` which
is invoked to compare elements of `array`. The comparator is invoked with
@@ -1882,7 +1909,7 @@ _.uniqWith(objects, _.isEqual);
### `_.unzip(array)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L6714 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.unzip "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L6739 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.unzip "See the npm package")
This method is like `_.zip` except that it accepts an array of grouped
elements and creates an array regrouping the elements to their pre-zip
@@ -1909,7 +1936,7 @@ _.unzip(zipped);
### `_.unzipWith(array, [iteratee=_.identity])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L6749 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.unzipwith "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L6774 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.unzipwith "See the npm package")
This method is like `_.unzip` except that it accepts `iteratee` to specify
how regrouped values should be combined. The iteratee is invoked with the
@@ -1937,7 +1964,7 @@ _.unzipWith(zipped, _.add);
### `_.without(array, [values])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L6778 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.without "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L6803 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.without "See the npm package")
Creates an array excluding all provided values using
[`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
@@ -1962,7 +1989,7 @@ _.without([1, 2, 1, 3], 1, 2);
### `_.xor([arrays])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L6798 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.xor "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L6823 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.xor "See the npm package")
Creates an array of unique values that is the [symmetric difference](https://en.wikipedia.org/wiki/Symmetric_difference)
of the provided arrays.
@@ -1985,7 +2012,7 @@ _.xor([2, 1], [4, 2]);
### `_.xorBy([arrays], [iteratee=_.identity])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L6822 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.xorby "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L6847 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.xorby "See the npm package")
This method is like `_.xor` except that it accepts `iteratee` which is
invoked for each element of each `arrays` to generate the criterion by which
@@ -2014,7 +2041,7 @@ _.xorBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');
### `_.xorWith([arrays], [comparator])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L6849 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.xorwith "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L6874 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.xorwith "See the npm package")
This method is like `_.xor` except that it accepts `comparator` which is
invoked to compare elements of `arrays`. The comparator is invoked with
@@ -2042,7 +2069,7 @@ _.xorWith(objects, others, _.isEqual);
### `_.zip([arrays])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L6872 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.zip "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L6897 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.zip "See the npm package")
Creates an array of grouped elements, the first of which contains the first
elements of the given arrays, the second of which contains the second elements
@@ -2066,7 +2093,7 @@ _.zip(['fred', 'barney'], [30, 40], [true, false]);
### `_.zipObject([props=[]], [values=[]])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L6889 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.zipobject "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L6914 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.zipobject "See the npm package")
This method is like `_.fromPairs` except that it accepts two arrays,
one of property names and one of corresponding values.
@@ -2090,7 +2117,7 @@ _.zipObject(['fred', 'barney'], [30, 40]);
### `_.zipWith([arrays], [iteratee=_.identity])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L6919 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.zipwith "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L6944 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.zipwith "See the npm package")
This method is like `_.zip` except that it accepts `iteratee` to specify
how grouped values should be combined. The iteratee is invoked with the
@@ -2114,35 +2141,6 @@ _.zipWith([1, 2], [10, 20], [100, 200], function(a, b, c) {
-
-
-### `_.prototype.reverse()`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L6169 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.reverse "See the npm package")
-
-Reverses `array` so that the first element becomes the last, the second
-element becomes the second to last, and so on.
-
-
-**Note:** This method mutates `array` and is based on
-[`Array#reverse`](https://mdn.io/Array/reverse).
-
-#### Returns
-*(Array)*: Returns `array`.
-
-#### Example
-```js
-var array = [1, 2, 3];
-
-_.reverse(array);
-// => [3, 2, 1]
-
-console.log(array);
-// => [3, 2, 1]
-```
-* * *
-
-
-
@@ -2152,7 +2150,7 @@ console.log(array);
### `_.countBy(collection, [iteratee=_.identity])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L7299 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.countby "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L7324 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.countby "See the npm package")
Creates an object composed of keys generated from the results of running
each element of `collection` through `iteratee`. The corresponding value
@@ -2161,7 +2159,7 @@ The iteratee is invoked with one argument: (value).
#### Arguments
1. `collection` *(Array|Object)*: The collection to iterate over.
-2. `[iteratee=_.identity]` *(Function|Object|string)*: The iteratee invoked per element.
+2. `[iteratee=_.identity]` *(Function|Object|string)*: The iteratee to transform keys.
#### Returns
*(Object)*: Returns the composed aggregate object.
@@ -2181,7 +2179,7 @@ _.countBy(['one', 'two', 'three'], 'length');
### `_.every(collection, [predicate=_.identity])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L7337 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.every "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L7362 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.every "See the npm package")
Checks if `predicate` returns truthy for **all** elements of `collection`.
Iteration is stopped once `predicate` returns falsey. The predicate is
@@ -2223,7 +2221,7 @@ _.every(users, 'active');
### `_.filter(collection, [predicate=_.identity])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L7378 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.filter "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L7403 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.filter "See the npm package")
Iterates over elements of `collection`, returning an array of all elements
`predicate` returns truthy for. The predicate is invoked with three arguments:
@@ -2265,7 +2263,7 @@ _.filter(users, 'active');
### `_.find(collection, [predicate=_.identity])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L7417 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.find "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L7442 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.find "See the npm package")
Iterates over elements of `collection`, returning the first element
`predicate` returns truthy for. The predicate is invoked with three arguments:
@@ -2308,7 +2306,7 @@ _.find(users, 'active');
### `_.findLast(collection, [predicate=_.identity])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L7443 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.findlast "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L7468 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.findlast "See the npm package")
This method is like `_.find` except that it iterates over elements of
`collection` from right to left.
@@ -2334,7 +2332,7 @@ _.findLast([1, 2, 3, 4], function(n) {
### `_.forEach(collection, [iteratee=_.identity])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L7480 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.foreach "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L7505 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.foreach "See the npm package")
Iterates over elements of `collection` invoking `iteratee` for each element.
The iteratee is invoked with three arguments: (value, index|key, collection).
@@ -2374,7 +2372,7 @@ _.forEach({ 'a': 1, 'b': 2 }, function(value, key) {
### `_.forEachRight(collection, [iteratee=_.identity])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L7504 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.foreachright "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L7529 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.foreachright "See the npm package")
This method is like `_.forEach` except that it iterates over elements of
`collection` from right to left.
@@ -2403,16 +2401,16 @@ _.forEachRight([1, 2], function(value) {
### `_.groupBy(collection, [iteratee=_.identity])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L7531 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.groupby "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L7556 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.groupby "See the npm package")
Creates an object composed of keys generated from the results of running
each element of `collection` through `iteratee`. The corresponding value
-of each key is an array of the elements responsible for generating the key.
+of each key is an array of elements responsible for generating the key.
The iteratee is invoked with one argument: (value).
#### Arguments
1. `collection` *(Array|Object)*: The collection to iterate over.
-2. `[iteratee=_.identity]` *(Function|Object|string)*: The iteratee invoked per element.
+2. `[iteratee=_.identity]` *(Function|Object|string)*: The iteratee to transform keys.
#### Returns
*(Object)*: Returns the composed aggregate object.
@@ -2433,7 +2431,7 @@ _.groupBy(['one', 'two', 'three'], 'length');
### `_.includes(collection, value, [fromIndex=0])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L7567 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.includes "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L7592 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.includes "See the npm package")
Checks if `value` is in `collection`. If `collection` is a string it's checked
for a substring of `value`, otherwise [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
@@ -2469,7 +2467,7 @@ _.includes('pebbles', 'eb');
### `_.invokeMap(collection, path, [args])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L7602 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.invokemap "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L7627 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.invokemap "See the npm package")
Invokes the method at `path` of each element in `collection`, returning
an array of the results of each invoked method. Any additional arguments
@@ -2499,7 +2497,7 @@ _.invokeMap([123, 456], String.prototype.split, '');
### `_.keyBy(collection, [iteratee=_.identity])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L7642 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.keyby "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L7667 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.keyby "See the npm package")
Creates an object composed of keys generated from the results of running
each element of `collection` through `iteratee`. The corresponding value
@@ -2508,7 +2506,7 @@ iteratee is invoked with one argument: (value).
#### Arguments
1. `collection` *(Array|Object)*: The collection to iterate over.
-2. `[iteratee=_.identity]` *(Function|Object|string)*: The iteratee invoked per element.
+2. `[iteratee=_.identity]` *(Function|Object|string)*: The iteratee to transform keys.
#### Returns
*(Object)*: Returns the composed aggregate object.
@@ -2520,13 +2518,13 @@ var keyData = [
{ 'dir': 'right', 'code': 100 }
];
-_.keyBy(keyData, 'dir');
-// => { 'left': { 'dir': 'left', 'code': 97 }, 'right': { 'dir': 'right', 'code': 100 } }
-
_.keyBy(keyData, function(o) {
return String.fromCharCode(o.code);
});
// => { 'a': { 'dir': 'left', 'code': 97 }, 'd': { 'dir': 'right', 'code': 100 } }
+
+_.keyBy(keyData, 'dir');
+// => { 'left': { 'dir': 'left', 'code': 97 }, 'right': { 'dir': 'right', 'code': 100 } }
```
* * *
@@ -2535,7 +2533,7 @@ _.keyBy(keyData, function(o) {
### `_.map(collection, [iteratee=_.identity])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L7687 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.map "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L7712 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.map "See the npm package")
Creates an array of values by running each element in `collection` through
`iteratee`. The iteratee is invoked with three arguments:
@@ -2565,11 +2563,11 @@ function square(n) {
return n * n;
}
-_.map([1, 2], square);
-// => [3, 6]
+_.map([4, 8], square);
+// => [16, 64]
-_.map({ 'a': 1, 'b': 2 }, square);
-// => [3, 6] (iteration order is not guaranteed)
+_.map({ 'a': 4, 'b': 8 }, square);
+// => [16, 64] (iteration order is not guaranteed)
var users = [
{ 'user': 'barney' },
@@ -2587,7 +2585,7 @@ _.map(users, 'user');
### `_.orderBy(collection, [iteratees=[_.identity]], [orders])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L7719 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.orderby "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L7744 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.orderby "See the npm package")
This method is like `_.sortBy` except that it allows specifying the sort
orders of the iteratees to sort by. If `orders` is unspecified, all values
@@ -2622,12 +2620,12 @@ _.orderBy(users, ['user', 'age'], ['asc', 'desc']);
### `_.partition(collection, [predicate=_.identity])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L7768 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.partition "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L7793 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.partition "See the npm package")
Creates an array of elements split into two groups, the first of which
-contains elements `predicate` returns truthy for, while the second of which
-contains elements `predicate` returns falsey for. The predicate is invoked
-with three arguments: (value, index|key, collection).
+contains elements `predicate` returns truthy for, the second of which
+contains elements `predicate` returns falsey for. The predicate is
+invoked with one argument: (value).
#### Arguments
1. `collection` *(Array|Object)*: The collection to iterate over.
@@ -2666,7 +2664,7 @@ _.partition(users, 'active');
### `_.reduce(collection, [iteratee=_.identity], [accumulator])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L7807 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.reduce "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L7832 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.reduce "See the npm package")
Reduces `collection` to a value which is the accumulated result of running
each element in `collection` through `iteratee`, where each successive
@@ -2712,7 +2710,7 @@ _.reduce({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {
### `_.reduceRight(collection, [iteratee=_.identity], [accumulator])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L7834 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.reduceright "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L7859 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.reduceright "See the npm package")
This method is like `_.reduce` except that it iterates over elements of
`collection` from right to left.
@@ -2741,7 +2739,7 @@ _.reduceRight(array, function(flattened, other) {
### `_.reject(collection, [predicate=_.identity])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L7873 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.reject "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L7898 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.reject "See the npm package")
The opposite of `_.filter`; this method returns the elements of `collection`
that `predicate` does **not** return truthy for.
@@ -2782,7 +2780,7 @@ _.reject(users, 'active');
### `_.sample(collection)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L7894 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.sample "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L7919 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.sample "See the npm package")
Gets a random element from `collection`.
@@ -2804,9 +2802,10 @@ _.sample([1, 2, 3, 4]);
### `_.sampleSize(collection, [n=0])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L7915 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.samplesize "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L7944 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.samplesize "See the npm package")
-Gets `n` random elements from `collection`.
+Gets `n` random elements at unique keys from `collection` up to the
+size of `collection`.
#### Arguments
1. `collection` *(Array|Object)*: The collection to sample.
@@ -2817,8 +2816,11 @@ Gets `n` random elements from `collection`.
#### Example
```js
-_.sampleSize([1, 2, 3, 4], 2);
+_.sampleSize([1, 2, 3], 2);
// => [3, 1]
+
+_.sampleSize([1, 2, 3], 4);
+// => [2, 3, 1]
```
* * *
@@ -2827,7 +2829,7 @@ _.sampleSize([1, 2, 3, 4], 2);
### `_.shuffle(collection)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L7947 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.shuffle "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L7976 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.shuffle "See the npm package")
Creates an array of shuffled values, using a version of the
[Fisher-Yates shuffle](https://en.wikipedia.org/wiki/Fisher-Yates_shuffle).
@@ -2850,7 +2852,7 @@ _.shuffle([1, 2, 3, 4]);
### `_.size(collection)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L7971 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.size "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L8000 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.size "See the npm package")
Gets the size of `collection` by returning its length for array-like
values or the number of own enumerable properties for objects.
@@ -2879,7 +2881,7 @@ _.size('pebbles');
### `_.some(collection, [predicate=_.identity])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L8016 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.some "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L8045 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.some "See the npm package")
Checks if `predicate` returns truthy for **any** element of `collection`.
Iteration is stopped once `predicate` returns truthy. The predicate is
@@ -2921,7 +2923,7 @@ _.some(users, 'active');
### `_.sortBy(collection, [iteratees=[_.identity]])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L8057 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.sortby "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L8086 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.sortby "See the npm package")
Creates an array of elements, sorted in ascending order by the results of
running each element in a collection through each iteratee. This method
@@ -2968,7 +2970,7 @@ _.sortBy(users, 'user', function(o) {
### `_.now()`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L8088 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.now "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L8117 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.now "See the npm package")
Gets the timestamp of the number of milliseconds that have elapsed since
the Unix epoch (1 January 1970 00:00:00 UTC).
@@ -2996,7 +2998,7 @@ _.defer(function(stamp) {
### `_.after(n, func)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L8115 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.after "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L8144 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.after "See the npm package")
The opposite of `_.before`; this method creates a function that invokes
`func` once it's called `n` or more times.
@@ -3028,7 +3030,7 @@ _.forEach(saves, function(type) {
### `_.ary(func, [n=func.length])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L8143 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.ary "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L8172 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.ary "See the npm package")
Creates a function that accepts up to `n` arguments, ignoring any
additional arguments.
@@ -3052,7 +3054,7 @@ _.map(['6', '8', '10'], _.ary(parseInt, 1));
### `_.before(n, func)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L8165 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.before "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L8194 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.before "See the npm package")
Creates a function that invokes `func`, with the `this` binding and arguments
of the created function, while it's called less than `n` times. Subsequent
@@ -3077,7 +3079,7 @@ jQuery(element).on('click', _.before(5, addContactToList));
### `_.bind(func, thisArg, [partials])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L8217 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.bind "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L8246 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.bind "See the npm package")
Creates a function that invokes `func` with the `this` binding of `thisArg`
and prepends any additional `_.bind` arguments to those provided to the
@@ -3123,7 +3125,7 @@ bound('hi');
### `_.bindKey(object, key, [partials])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L8270 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.bindkey "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L8299 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.bindkey "See the npm package")
Creates a function that invokes the method at `object[key]` and prepends
any additional `_.bindKey` arguments to those provided to the bound function.
@@ -3178,7 +3180,7 @@ bound('hi');
### `_.curry(func, [arity=func.length])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L8319 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.curry "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L8348 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.curry "See the npm package")
Creates a function that accepts arguments of `func` and either invokes
`func` returning its result, if at least `arity` number of arguments have
@@ -3228,7 +3230,7 @@ curried(1)(_, 3)(2);
### `_.curryRight(func, [arity=func.length])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L8363 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.curryright "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L8392 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.curryright "See the npm package")
This method is like `_.curry` except that arguments are applied to `func`
in the manner of `_.partialRight` instead of `_.partial`.
@@ -3275,7 +3277,7 @@ curried(3)(1, _)(2);
### `_.debounce(func, [wait=0], [options])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L8419 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.debounce "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L8448 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.debounce "See the npm package")
Creates a debounced function that delays invoking `func` until after `wait`
milliseconds have elapsed since the last time the debounced function was
@@ -3332,7 +3334,7 @@ jQuery(window).on('popstate', debounced.cancel);
### `_.defer(func, [args])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L8551 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.defer "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L8580 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.defer "See the npm package")
Defers invoking the `func` until the current call stack has cleared. Any
additional arguments are provided to `func` when it's invoked.
@@ -3358,7 +3360,7 @@ _.defer(function(text) {
### `_.delay(func, wait, [args])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L8573 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.delay "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L8602 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.delay "See the npm package")
Invokes `func` after `wait` milliseconds. Any additional arguments are
provided to `func` when it's invoked.
@@ -3385,7 +3387,7 @@ _.delay(function(text) {
### `_.flip(func)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L8594 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.flip "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L8623 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.flip "See the npm package")
Creates a function that invokes `func` with arguments reversed.
@@ -3411,7 +3413,7 @@ flipped('a', 'b', 'c', 'd');
### `_.memoize(func, [resolver])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L8640 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.memoize "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L8669 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.memoize "See the npm package")
Creates a function that memoizes the result of `func`. If `resolver` is
provided it determines the cache key for storing the result based on the
@@ -3463,7 +3465,7 @@ _.memoize.Cache = WeakMap;
### `_.negate(predicate)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L8679 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.negate "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L8708 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.negate "See the npm package")
Creates a function that negates the result of the predicate `func`. The
`func` predicate is invoked with the `this` binding and arguments of the
@@ -3491,7 +3493,7 @@ _.filter([1, 2, 3, 4, 5, 6], _.negate(isEven));
### `_.once(func)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L8705 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.once "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L8734 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.once "See the npm package")
Creates a function that is restricted to invoking `func` once. Repeat calls
to the function return the value of the first invocation. The `func` is
@@ -3517,7 +3519,7 @@ initialize();
### `_.overArgs(func, [transforms])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L8740 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.overargs "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L8769 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.overargs "See the npm package")
Creates a function that invokes `func` with arguments transformed by
corresponding `transforms`.
@@ -3556,7 +3558,7 @@ func(10, 5);
### `_.partial(func, [partials])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L8787 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.partial "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L8816 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.partial "See the npm package")
Creates a function that invokes `func` with `partial` arguments prepended
to those provided to the new function. This method is like `_.bind` except
@@ -3599,7 +3601,7 @@ greetFred('hi');
### `_.partialRight(func, [partials])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L8823 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.partialright "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L8852 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.partialright "See the npm package")
This method is like `_.partial` except that partially applied arguments
are appended to those provided to the new function.
@@ -3641,7 +3643,7 @@ sayHelloTo('fred');
### `_.rearg(func, indexes)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L8850 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.rearg "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L8879 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.rearg "See the npm package")
Creates a function that invokes `func` with arguments arranged according
to the specified indexes where the argument value at the first index is
@@ -3671,7 +3673,7 @@ rearged('b', 'c', 'a')
### `_.rest(func, [start=func.length-1])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L8876 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.rest "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L8905 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.rest "See the npm package")
Creates a function that invokes `func` with the `this` binding of the
created function and arguments from `start` and beyond provided as an array.
@@ -3703,7 +3705,7 @@ say('hello', 'fred', 'barney', 'pebbles');
### `_.spread(func)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L8936 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.spread "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L8965 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.spread "See the npm package")
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).
@@ -3744,7 +3746,7 @@ numbers.then(_.spread(function(x, y) {
### `_.throttle(func, [wait=0], [options])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L8985 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.throttle "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L9014 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.throttle "See the npm package")
Creates a throttled function that only invokes `func` at most once per
every `wait` milliseconds. The throttled function comes with a `cancel`
@@ -3793,7 +3795,7 @@ jQuery(window).on('popstate', throttled.cancel);
### `_.unary(func)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L9013 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.unary "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L9042 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.unary "See the npm package")
Creates a function that accepts up to one argument, ignoring any
additional arguments.
@@ -3816,7 +3818,7 @@ _.map(['6', '8', '10'], _.unary(parseInt));
### `_.wrap(value, wrapper)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L9038 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.wrap "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L9067 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.wrap "See the npm package")
Creates a function that provides `value` to the wrapper function as its
first argument. Any additional arguments provided to the function are
@@ -3852,7 +3854,7 @@ p('fred, barney, & pebbles');
### `_.clone(value)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L9069 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.clone "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L9098 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.clone "See the npm package")
Creates a shallow clone of `value`.
@@ -3886,7 +3888,7 @@ console.log(shallow[0] === objects[0]);
### `_.cloneDeep(value)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L9122 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.clonedeep "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L9151 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.clonedeep "See the npm package")
This method is like `_.clone` except that it recursively clones `value`.
@@ -3911,7 +3913,7 @@ console.log(deep[0] === objects[0]);
### `_.cloneDeepWith(value, [customizer])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L9152 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.clonedeepwith "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L9181 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.clonedeepwith "See the npm package")
This method is like `_.cloneWith` except that it recursively clones `value`.
@@ -3930,7 +3932,7 @@ function customizer(value) {
}
}
-var el = _.cloneDeep(document.body, customizer);
+var el = _.cloneDeepWith(document.body, customizer);
console.log(el === document.body);
// => false
@@ -3946,12 +3948,12 @@ console.log(el.childNodes.length);
### `_.cloneWith(value, [customizer])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L9102 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.clonewith "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L9131 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.clonewith "See the npm package")
This method is like `_.clone` except that it accepts `customizer` which
is invoked to produce the cloned value. If `customizer` returns `undefined`
cloning is handled by the method instead. The `customizer` is invoked with
-up to five arguments; (value [, index|key, object, stack]).
+up to four arguments; (value [, index|key, object, stack]).
#### Arguments
1. `value` *(*)*: The value to clone.
@@ -3968,7 +3970,7 @@ function customizer(value) {
}
}
-var el = _.clone(document.body, customizer);
+var el = _.cloneWith(document.body, customizer);
console.log(el === document.body);
// => false
@@ -3984,7 +3986,7 @@ console.log(el.childNodes.length);
### `_.eq(value, other)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L9186 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.eq "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L9215 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.eq "See the npm package")
Performs a [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)
comparison between two values to determine if they are equivalent.
@@ -4023,7 +4025,7 @@ _.eq(NaN, NaN);
### `_.gt(value, other)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L9210 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.gt "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L9239 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.gt "See the npm package")
Checks if `value` is greater than `other`.
@@ -4052,7 +4054,7 @@ _.gt(1, 3);
### `_.gte(value, other)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L9234 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.gte "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L9263 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.gte "See the npm package")
Checks if `value` is greater than or equal to `other`.
@@ -4081,7 +4083,7 @@ _.gte(1, 3);
### `_.isArguments(value)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L9254 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.isarguments "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L9283 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.isarguments "See the npm package")
Checks if `value` is likely an `arguments` object.
@@ -4106,7 +4108,7 @@ _.isArguments([1, 2, 3]);
### `_.isArray(value)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L9283 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.isarray "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L9312 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.isarray "See the npm package")
Checks if `value` is classified as an `Array` object.
@@ -4137,7 +4139,7 @@ _.isArray(_.noop);
### `_.isArrayLike(value)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L9310 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.isarraylike "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L9339 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.isarraylike "See the npm package")
Checks if `value` is array-like. A value is considered array-like if it's
not a function and has a `value.length` that's an integer greater than or
@@ -4170,7 +4172,7 @@ _.isArrayLike(_.noop);
### `_.isArrayLikeObject(value)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L9339 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.isarraylikeobject "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L9368 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.isarraylikeobject "See the npm package")
This method is like `_.isArrayLike` except that it also checks if `value`
is an object.
@@ -4202,7 +4204,7 @@ _.isArrayLikeObject(_.noop);
### `_.isBoolean(value)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L9359 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.isboolean "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L9388 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.isboolean "See the npm package")
Checks if `value` is classified as a boolean primitive or object.
@@ -4227,7 +4229,7 @@ _.isBoolean(null);
### `_.isDate(value)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L9380 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.isdate "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L9409 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.isdate "See the npm package")
Checks if `value` is classified as a `Date` object.
@@ -4252,7 +4254,7 @@ _.isDate('Mon April 23 2012');
### `_.isElement(value)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L9400 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.iselement "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L9429 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.iselement "See the npm package")
Checks if `value` is likely a DOM element.
@@ -4277,7 +4279,7 @@ _.isElement('');
### `_.isEmpty(value)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L9431 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.isempty "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L9460 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.isempty "See the npm package")
Checks if `value` is empty. A value is considered empty unless it's an
`arguments` object, array, string, or jQuery-like collection with a length
@@ -4313,7 +4315,7 @@ _.isEmpty({ 'a': 1 });
### `_.isEqual(value, other)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L9464 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.isequal "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L9493 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.isequal "See the npm package")
Performs a deep comparison between two values to determine if they are
equivalent.
@@ -4350,11 +4352,11 @@ object === other;
### `_.isEqualWith(value, other, [customizer])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L9499 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.isequalwith "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L9528 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.isequalwith "See the npm package")
This method is like `_.isEqual` except that it accepts `customizer` which is
invoked to compare values. If `customizer` returns `undefined` comparisons are
-handled by the method instead. The `customizer` is invoked with up to seven arguments:
+handled by the method instead. The `customizer` is invoked with up to six arguments:
(objValue, othValue [, index|key, object, other, stack]).
#### Arguments
@@ -4390,7 +4392,7 @@ _.isEqualWith(array, other, customizer);
### `_.isError(value)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L9522 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.iserror "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L9551 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.iserror "See the npm package")
Checks if `value` is an `Error`, `EvalError`, `RangeError`, `ReferenceError`,
`SyntaxError`, `TypeError`, or `URIError` object.
@@ -4416,7 +4418,7 @@ _.isError(Error);
### `_.isFinite(value)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L9551 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.isfinite "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L9580 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.isfinite "See the npm package")
Checks if `value` is a finite primitive number.
@@ -4450,7 +4452,7 @@ _.isFinite(Infinity);
### `_.isFunction(value)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L9571 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.isfunction "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L9600 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.isfunction "See the npm package")
Checks if `value` is classified as a `Function` object.
@@ -4475,7 +4477,7 @@ _.isFunction(/abc/);
### `_.isInteger(value)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L9603 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.isinteger "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L9632 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.isinteger "See the npm package")
Checks if `value` is an integer.
@@ -4509,7 +4511,7 @@ _.isInteger('3');
### `_.isLength(value)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L9631 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.islength "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L9660 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.islength "See the npm package")
Checks if `value` is a valid array-like length.
@@ -4543,7 +4545,7 @@ _.isLength('3');
### `_.isMatch(object, source)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L9714 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.ismatch "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L9743 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.ismatch "See the npm package")
Performs a deep comparison between `object` and `source` to determine if
`object` contains equivalent property values.
@@ -4575,11 +4577,11 @@ _.isMatch(object, { 'age': 36 });
### `_.isMatchWith(object, source, [customizer])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L9749 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.ismatchwith "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L9778 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.ismatchwith "See the npm package")
This method is like `_.isMatch` except that it accepts `customizer` which
is invoked to compare values. If `customizer` returns `undefined` comparisons
-are handled by the method instead. The `customizer` is invoked with three
+are handled by the method instead. The `customizer` is invoked with five
arguments: (objValue, srcValue, index|key, object, source).
#### Arguments
@@ -4615,7 +4617,7 @@ _.isMatchWith(object, source, customizer);
### `_.isNaN(value)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L9779 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.isnan "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L9808 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.isnan "See the npm package")
Checks if `value` is `NaN`.
@@ -4650,7 +4652,7 @@ _.isNaN(undefined);
### `_.isNative(value)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L9801 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.isnative "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L9830 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.isnative "See the npm package")
Checks if `value` is a native function.
@@ -4675,7 +4677,7 @@ _.isNative(_);
### `_.isNil(value)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L9851 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.isnil "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L9880 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.isnil "See the npm package")
Checks if `value` is `null` or `undefined`.
@@ -4703,7 +4705,7 @@ _.isNil(NaN);
### `_.isNull(value)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L9828 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.isnull "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L9857 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.isnull "See the npm package")
Checks if `value` is `null`.
@@ -4728,7 +4730,7 @@ _.isNull(void 0);
### `_.isNumber(value)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L9880 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.isnumber "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L9909 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.isnumber "See the npm package")
Checks if `value` is classified as a `Number` primitive or object.
@@ -4763,7 +4765,7 @@ _.isNumber('3');
### `_.isObject(value)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L9658 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.isobject "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L9687 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.isobject "See the npm package")
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('')`)
@@ -4795,7 +4797,7 @@ _.isObject(null);
### `_.isObjectLike(value)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L9688 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.isobjectlike "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L9717 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.isobjectlike "See the npm package")
Checks if `value` is object-like. A value is object-like if it's not `null`
and has a `typeof` result of "object".
@@ -4827,7 +4829,7 @@ _.isObjectLike(null);
### `_.isPlainObject(value)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L9912 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.isplainobject "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L9941 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.isplainobject "See the npm package")
Checks if `value` is a plain object, that is, an object created by the
`Object` constructor or one with a `[[Prototype]]` of `null`.
@@ -4863,7 +4865,7 @@ _.isPlainObject(Object.create(null));
### `_.isRegExp(value)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L9944 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.isregexp "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L9973 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.isregexp "See the npm package")
Checks if `value` is classified as a `RegExp` object.
@@ -4888,7 +4890,7 @@ _.isRegExp('/abc/');
### `_.isSafeInteger(value)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L9973 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.issafeinteger "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L10002 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.issafeinteger "See the npm package")
Checks if `value` is a safe integer. An integer is safe if it's an IEEE-754
double precision number which isn't the result of a rounded unsafe integer.
@@ -4923,7 +4925,7 @@ _.isSafeInteger('3');
### `_.isString(value)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L9993 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.isstring "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L10022 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.isstring "See the npm package")
Checks if `value` is classified as a `String` primitive or object.
@@ -4948,7 +4950,7 @@ _.isString(1);
### `_.isSymbol(value)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L10014 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.issymbol "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L10043 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.issymbol "See the npm package")
Checks if `value` is classified as a `Symbol` primitive or object.
@@ -4973,7 +4975,7 @@ _.isSymbol('abc');
### `_.isTypedArray(value)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L10035 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.istypedarray "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L10064 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.istypedarray "See the npm package")
Checks if `value` is classified as a typed array.
@@ -4998,7 +5000,7 @@ _.isTypedArray([]);
### `_.isUndefined(value)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L10055 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.isundefined "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L10084 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.isundefined "See the npm package")
Checks if `value` is `undefined`.
@@ -5023,7 +5025,7 @@ _.isUndefined(null);
### `_.lt(value, other)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L10079 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.lt "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L10108 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.lt "See the npm package")
Checks if `value` is less than `other`.
@@ -5052,7 +5054,7 @@ _.lt(3, 1);
### `_.lte(value, other)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L10103 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.lte "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L10132 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.lte "See the npm package")
Checks if `value` is less than or equal to `other`.
@@ -5081,7 +5083,7 @@ _.lte(3, 1);
### `_.toArray(value)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L10129 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.toarray "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L10158 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.toarray "See the npm package")
Converts `value` to an array.
@@ -5112,7 +5114,7 @@ _.toArray(null);
### `_.toInteger(value)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L10169 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.tointeger "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L10198 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.tointeger "See the npm package")
Converts `value` to an integer.
@@ -5146,7 +5148,7 @@ _.toInteger('3');
### `_.toLength(value)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L10207 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.tolength "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L10236 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.tolength "See the npm package")
Converts `value` to an integer suitable for use as the length of an
array-like object.
@@ -5157,6 +5159,9 @@ array-like object.
#### Arguments
1. `value` *(*)*: The value to convert.
+#### Returns
+*(number)*: Returns the converted integer.
+
#### Example
```js
_.toLength(3);
@@ -5178,7 +5183,7 @@ _.toLength('3');
### `_.toNumber(value)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L10233 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.tonumber "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L10262 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.tonumber "See the npm package")
Converts `value` to a number.
@@ -5209,7 +5214,7 @@ _.toNumber('3');
### `_.toPlainObject(value)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L10271 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.toplainobject "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L10300 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.toplainobject "See the npm package")
Converts `value` to a plain object flattening inherited enumerable
properties of `value` to own properties of the plain object.
@@ -5241,7 +5246,7 @@ _.assign({ 'a': 1 }, _.toPlainObject(new Foo));
### `_.toSafeInteger(value)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L10298 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.tosafeinteger "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L10327 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.tosafeinteger "See the npm package")
Converts `value` to a safe integer. A safe integer can be compared and
represented correctly.
@@ -5273,7 +5278,7 @@ _.toSafeInteger('3');
### `_.toString(value)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L10322 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.tostring "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L10351 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.tostring "See the npm package")
Converts `value` to a string if it's not one. An empty string is returned
for `null` and `undefined` values. The sign of `-0` is preserved.
@@ -5308,7 +5313,7 @@ _.toString([1, 2, 3]);
### `_.add(augend, addend)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L13547 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.add "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L13577 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.add "See the npm package")
Adds two numbers.
@@ -5331,7 +5336,7 @@ _.add(6, 4);
### `_.ceil(number, [precision=0])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L13578 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.ceil "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L13608 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.ceil "See the npm package")
Computes `number` rounded up to `precision`.
@@ -5360,7 +5365,7 @@ _.ceil(6040, -2);
### `_.floor(number, [precision=0])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L13600 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.floor "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L13630 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.floor "See the npm package")
Computes `number` rounded down to `precision`.
@@ -5389,7 +5394,7 @@ _.floor(4060, -2);
### `_.max(array)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L13619 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.max "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L13649 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.max "See the npm package")
Computes the maximum value of `array`. If `array` is empty or falsey
`undefined` is returned.
@@ -5415,7 +5420,7 @@ _.max([]);
### `_.maxBy(array, [iteratee=_.identity])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L13647 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.maxby "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L13677 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.maxby "See the npm package")
This method is like `_.max` except that it accepts `iteratee` which is
invoked for each element in `array` to generate the criterion by which
@@ -5432,7 +5437,7 @@ the value is ranked. The iteratee is invoked with one argument: (value).
```js
var objects = [{ 'n': 1 }, { 'n': 2 }];
-_.maxBy(objects, function(o) { return o.a; });
+_.maxBy(objects, function(o) { return o.n; });
// => { 'n': 2 }
// using the `_.property` iteratee shorthand
@@ -5446,7 +5451,7 @@ _.maxBy(objects, 'n');
### `_.mean(array)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L13666 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.mean "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L13696 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.mean "See the npm package")
Computes the mean of the values in `array`.
@@ -5468,7 +5473,7 @@ _.mean([4, 2, 8, 6]);
### `_.min(array)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L13687 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.min "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L13717 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.min "See the npm package")
Computes the minimum value of `array`. If `array` is empty or falsey
`undefined` is returned.
@@ -5494,7 +5499,7 @@ _.min([]);
### `_.minBy(array, [iteratee=_.identity])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L13715 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.minby "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L13745 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.minby "See the npm package")
This method is like `_.min` except that it accepts `iteratee` which is
invoked for each element in `array` to generate the criterion by which
@@ -5511,7 +5516,7 @@ the value is ranked. The iteratee is invoked with one argument: (value).
```js
var objects = [{ 'n': 1 }, { 'n': 2 }];
-_.minBy(objects, function(o) { return o.a; });
+_.minBy(objects, function(o) { return o.n; });
// => { 'n': 1 }
// using the `_.property` iteratee shorthand
@@ -5525,7 +5530,7 @@ _.minBy(objects, 'n');
### `_.round(number, [precision=0])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L13741 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.round "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L13771 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.round "See the npm package")
Computes `number` rounded to `precision`.
@@ -5554,7 +5559,7 @@ _.round(4060, -2);
### `_.subtract(minuend, subtrahend)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L13757 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.subtract "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L13787 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.subtract "See the npm package")
Subtract two numbers.
@@ -5577,7 +5582,7 @@ _.subtract(6, 4);
### `_.sum(array)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L13781 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.sum "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L13811 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.sum "See the npm package")
Computes the sum of the values in `array`.
@@ -5599,7 +5604,7 @@ _.sum([4, 2, 8, 6]);
### `_.sumBy(array, [iteratee=_.identity])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L13809 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.sumby "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L13839 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.sumby "See the npm package")
This method is like `_.sum` except that it accepts `iteratee` which is
invoked for each element in `array` to generate the value to be summed.
@@ -5636,7 +5641,7 @@ _.sumBy(objects, 'n');
### `_.clamp(number, [lower], upper)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L11575 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.clamp "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L11604 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.clamp "See the npm package")
Clamps `number` within the inclusive `lower` and `upper` bounds.
@@ -5663,7 +5668,7 @@ _.clamp(10, -5, 5);
### `_.inRange(number, [start=0], end)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L11627 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.inrange "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L11656 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.inrange "See the npm package")
Checks if `n` is between `start` and up to but not including, `end`. If
`end` is not specified it's set to `start` with `start` then set to `0`.
@@ -5708,7 +5713,7 @@ _.inRange(-3, -2, -6);
### `_.random([lower=0], [upper=1], [floating])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L11669 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.random "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L11698 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.random "See the npm package")
Produces a random number between the inclusive `lower` and `upper` bounds.
If only one argument is provided a number between `0` and the given number
@@ -5754,7 +5759,7 @@ _.random(1.2, 5.2);
### `_.assign(object, [sources])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L10369 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.assign "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L10398 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.assign "See the npm package")
Assigns own enumerable properties of source objects to the destination
object. Source objects are applied from left to right. Subsequent sources
@@ -5794,7 +5799,7 @@ _.assign({ 'a': 1 }, new Foo, new Bar);
### `_.assignIn(object, [sources])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L10402 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.assignin "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L10431 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.assignin "See the npm package")
This method is like `_.assign` except that it iterates over own and
inherited source properties.
@@ -5835,7 +5840,7 @@ _.assignIn({ 'a': 1 }, new Foo, new Bar);
### `_.assignInWith(object, sources, [customizer])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L10433 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.assigninwith "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L10462 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.assigninwith "See the npm package")
This method is like `_.assignIn` except that it accepts `customizer` which
is invoked to produce the assigned values. If `customizer` returns `undefined`
@@ -5874,7 +5879,7 @@ defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
### `_.assignWith(object, sources, [customizer])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L10463 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.assignwith "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L10492 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.assignwith "See the npm package")
This method is like `_.assign` except that it accepts `customizer` which
is invoked to produce the assigned values. If `customizer` returns `undefined`
@@ -5910,7 +5915,7 @@ defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
### `_.at(object, [paths])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L10487 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.at "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L10516 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.at "See the npm package")
Creates an array of values corresponding to `paths` of `object`.
@@ -5938,7 +5943,7 @@ _.at(['a', 'b', 'c'], 0, 2);
### `_.create(prototype, [properties])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L10523 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.create "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L10552 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.create "See the npm package")
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.
@@ -5979,7 +5984,7 @@ circle instanceof Shape;
### `_.defaults(object, [sources])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L10547 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.defaults "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L10576 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.defaults "See the npm package")
Assigns own and inherited enumerable properties of source objects to the
destination object for all destination properties that resolve to `undefined`.
@@ -6008,7 +6013,7 @@ _.defaults({ 'user': 'barney' }, { 'age': 36 }, { 'user': 'fred' });
### `_.defaultsDeep(object, [sources])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L10570 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.defaultsdeep "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L10599 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.defaultsdeep "See the npm package")
This method is like `_.defaults` except that it recursively assigns
default properties.
@@ -6035,7 +6040,7 @@ _.defaultsDeep({ 'user': { 'name': 'barney' } }, { 'user': { 'name': 'fred', 'ag
### `_.findKey(object, [predicate=_.identity])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L10608 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.findkey "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L10637 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.findkey "See the npm package")
This method is like `_.find` except that it returns the key of the first
element `predicate` returns truthy for instead of the element itself.
@@ -6077,7 +6082,7 @@ _.findKey(users, 'active');
### `_.findLastKey(object, [predicate=_.identity])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L10645 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.findlastkey "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L10674 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.findlastkey "See the npm package")
This method is like `_.findKey` except that it iterates over elements of
a collection in the opposite order.
@@ -6119,7 +6124,7 @@ _.findLastKey(users, 'active');
### `_.forIn(object, [iteratee=_.identity])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L10675 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.forin "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L10704 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.forin "See the npm package")
Iterates over own and inherited enumerable properties of an object invoking
`iteratee` for each property. The iteratee is invoked with three arguments:
@@ -6154,7 +6159,7 @@ _.forIn(new Foo, function(value, key) {
### `_.forInRight(object, [iteratee=_.identity])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L10703 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.forinright "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L10732 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.forinright "See the npm package")
This method is like `_.forIn` except that it iterates over properties of
`object` in the opposite order.
@@ -6187,7 +6192,7 @@ _.forInRight(new Foo, function(value, key) {
### `_.forOwn(object, [iteratee=_.identity])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L10733 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.forown "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L10762 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.forown "See the npm package")
Iterates over own enumerable properties of an object invoking `iteratee`
for each property. The iteratee is invoked with three arguments:
@@ -6222,7 +6227,7 @@ _.forOwn(new Foo, function(value, key) {
### `_.forOwnRight(object, [iteratee=_.identity])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L10761 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.forownright "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L10790 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.forownright "See the npm package")
This method is like `_.forOwn` except that it iterates over properties of
`object` in the opposite order.
@@ -6255,7 +6260,7 @@ _.forOwnRight(new Foo, function(value, key) {
### `_.functions(object)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L10786 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.functions "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L10815 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.functions "See the npm package")
Creates an array of function property names from own enumerable properties
of `object`.
@@ -6285,7 +6290,7 @@ _.functions(new Foo);
### `_.functionsIn(object)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L10811 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.functionsin "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L10840 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.functionsin "See the npm package")
Creates an array of function property names from own and inherited
enumerable properties of `object`.
@@ -6315,7 +6320,7 @@ _.functionsIn(new Foo);
### `_.get(object, path, [defaultValue])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L10839 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.get "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L10868 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.get "See the npm package")
Gets the value at `path` of `object`. If the resolved value is
`undefined` the `defaultValue` is used in its place.
@@ -6348,7 +6353,7 @@ _.get(object, 'a.b.c', 'default');
### `_.has(object, path)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L10870 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.has "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L10899 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.has "See the npm package")
Checks if `path` is a direct property of `object`.
@@ -6383,7 +6388,7 @@ _.has(other, 'a');
### `_.hasIn(object, path)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L10899 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.hasin "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L10928 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.hasin "See the npm package")
Checks if `path` is a direct or inherited property of `object`.
@@ -6417,7 +6422,7 @@ _.hasIn(object, 'b');
### `_.invert(object, [multiVal])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L10926 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.invert "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L10955 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.invert "See the npm package")
Creates an object composed of the inverted keys and values of `object`.
If `object` contains duplicate values, subsequent values overwrite property
@@ -6448,7 +6453,7 @@ _.invert(object, true);
### `_.invoke(object, path, [args])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L10960 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.invoke "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L10989 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.invoke "See the npm package")
Invokes the method at `path` of `object`.
@@ -6474,7 +6479,7 @@ _.invoke(object, 'a[0].b.c.slice', 1, 3);
### `_.keys(object)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L10989 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.keys "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L11018 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.keys "See the npm package")
Creates an array of the own enumerable property names of `object`.
@@ -6511,7 +6516,7 @@ _.keys('hi');
### `_.keysIn(object)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L11031 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.keysin "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L11060 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.keysin "See the npm package")
Creates an array of the own and inherited enumerable property names of `object`.
@@ -6543,7 +6548,7 @@ _.keysIn(new Foo);
### `_.mapKeys(object, [iteratee=_.identity])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L11069 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.mapkeys "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L11098 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.mapkeys "See the npm package")
The opposite of `_.mapValues`; this method creates an object with the
same values as `object` and keys generated by running each own enumerable
@@ -6570,7 +6575,7 @@ _.mapKeys({ 'a': 1, 'b': 2 }, function(value, key) {
### `_.mapValues(object, [iteratee=_.identity])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L11104 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.mapvalues "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L11133 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.mapvalues "See the npm package")
Creates an object with the same keys as `object` and values generated by
running each own enumerable property of `object` through `iteratee`. The
@@ -6604,7 +6609,7 @@ _.mapValues(users, 'age');
### `_.merge(object, [sources])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L11143 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.merge "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L11172 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.merge "See the npm package")
Recursively merges own and inherited enumerable properties of source
objects into the destination object, skipping source properties that resolve
@@ -6643,7 +6648,7 @@ _.merge(users, ages);
### `_.mergeWith(object, sources, customizer)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L11182 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.mergewith "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L11211 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.mergewith "See the npm package")
This method is like `_.merge` except that it accepts `customizer` which
is invoked to produce the merged values of the destination and source
@@ -6687,7 +6692,7 @@ _.mergeWith(object, other, customizer);
### `_.omit(object, [props])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L11204 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.omit "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L11233 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.omit "See the npm package")
The opposite of `_.pick`; this method creates an object composed of the
own and inherited enumerable properties of `object` that are not omitted.
@@ -6713,7 +6718,7 @@ _.omit(object, ['a', 'c']);
### `_.omitBy(object, [predicate=_.identity])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L11230 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.omitby "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L11259 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.omitby "See the npm package")
The opposite of `_.pickBy`; this method creates an object composed of the
own and inherited enumerable properties of `object` that `predicate`
@@ -6740,7 +6745,7 @@ _.omitBy(object, _.isNumber);
### `_.pick(object, [props])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L11254 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.pick "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L11283 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.pick "See the npm package")
Creates an object composed of the picked `object` properties.
@@ -6765,7 +6770,7 @@ _.pick(object, ['a', 'c']);
### `_.pickBy(object, [predicate=_.identity])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L11275 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.pickby "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L11304 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.pickby "See the npm package")
Creates an object composed of the `object` properties `predicate` returns
truthy for. The predicate is invoked with one argument: (value).
@@ -6791,7 +6796,7 @@ _.pickBy(object, _.isNumber);
### `_.result(object, path, [defaultValue])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L11307 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.result "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L11336 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.result "See the npm package")
This method is like `_.get` except that if the resolved value is a function
it's invoked with the `this` binding of its parent object and its result
@@ -6828,7 +6833,7 @@ _.result(object, 'a[0].b.c3', _.constant('default'));
### `_.set(object, path, value)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L11346 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.set "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L11375 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.set "See the npm package")
Sets the value at `path` of `object`. If a portion of `path` doesn't exist
it's created. Arrays are created for missing index properties while objects
@@ -6862,7 +6867,7 @@ console.log(object.x[0].y.z);
### `_.setWith(object, path, value, [customizer])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L11369 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.setwith "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L11398 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.setwith "See the npm package")
This method is like `_.set` except that it accepts `customizer` which is
invoked to produce the objects of `path`. If `customizer` returns `undefined`
@@ -6890,7 +6895,7 @@ _.setWith({ '0': { 'length': 2 } }, '[0][1][2]', 3, Object);
### `_.toPairs(object)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L11394 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.topairs "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L11423 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.topairs "See the npm package")
Creates an array of own enumerable key-value pairs for `object`.
@@ -6919,7 +6924,7 @@ _.toPairs(new Foo);
### `_.toPairsIn(object)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L11418 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.topairsin "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L11447 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.topairsin "See the npm package")
Creates an array of own and inherited enumerable key-value pairs for `object`.
@@ -6948,7 +6953,7 @@ _.toPairsIn(new Foo);
### `_.transform(object, [iteratee=_.identity], [accumulator])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L11450 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.transform "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L11479 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.transform "See the npm package")
An alternative to `_.reduce`; this method transforms `object` to a new
`accumulator` object which is the result of running each of its own enumerable
@@ -6985,7 +6990,7 @@ _.transform({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {
### `_.unset(object, path)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L11496 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.unset "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L11525 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.unset "See the npm package")
Removes the property at `path` of `object`.
@@ -7018,7 +7023,7 @@ console.log(object);
### `_.values(object)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L11525 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.values "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L11554 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.values "See the npm package")
Creates an array of the own enumerable property values of `object`.
@@ -7053,7 +7058,7 @@ _.values('hi');
### `_.valuesIn(object)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L11551 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.valuesin "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L11580 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.valuesin "See the npm package")
Creates an array of the own and inherited enumerable property values of `object`.
@@ -7091,7 +7096,7 @@ _.valuesIn(new Foo);
### `_(value)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L1439 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L1445 "View in source") [Ⓣ][1]
Creates a `lodash` object which wraps `value` to enable implicit method
chaining. Methods that operate on and return arrays, collections, and
@@ -7142,13 +7147,12 @@ The wrapper methods that support shortcut fusion are:
The chainable wrapper methods are:
`after`, `ary`, `assign`, `assignIn`, `assignInWith`, `assignWith`,
`at`, `before`, `bind`, `bindAll`, `bindKey`, `chain`, `chunk`, `commit`,
-`compact`, `concat`, `conforms`, `constant`, `countBy`, `create`, `curry`,
+`compact`, `concat`, `conforms`, `constant`, `countBy`, `create`, `curry`,
`debounce`, `defaults`, `defaultsDeep`, `defer`, `delay`, `difference`,
-`differenceBy`, `differenceWith`, `drop`, `dropRight`, `dropRightWhile`,
+`differenceBy`, `differenceWith`, `drop`, `dropRight`, `dropRightWhile`,
`dropWhile`, `fill`, `filter`, `flatten`, `flattenDeep`, `flip`, `flow`,
-`flowRight`, `forEach`, `forEachRight`, `forIn`, `forInRight`, `forOwn`,
-`forOwnRight`, `fromPairs`, `functions`, `functionsIn`, `groupBy`, `initial`,
-`intersection`, `intersectionBy`, `intersectionWith`, invert`, `invokeMap`,
+`flowRight`, `fromPairs`, `functions`, `functionsIn`, `groupBy`, `initial`,
+`intersection`, `intersectionBy`, `intersectionWith`, `invert`, `invokeMap`,
`iteratee`, `keyBy`, `keys`, `keysIn`, `map`, `mapKeys`, `mapValues`,
`matches`, `matchesProperty`, `memoize`, `merge`, `mergeWith`, `method`,
`methodOf`, `mixin`, `negate`, `nthArg`, `omit`, `omitBy`, `once`, `orderBy`,
@@ -7168,22 +7172,23 @@ The wrapper methods that are **not** chainable by default are:
`add`, `attempt`, `camelCase`, `capitalize`, `ceil`, `clamp`, `clone`,
`cloneDeep`, `cloneDeepWith`, `cloneWith`, `deburr`, `endsWith`, `eq`,
`escape`, `escapeRegExp`, `every`, `find`, `findIndex`, `findKey`,
-`findLast`, `findLastIndex`, `findLastKey`, `floor`, `get`, `gt`, `gte`,
-`has`, `hasIn`, `head`, `identity`, `includes`, `indexOf`, `inRange`,
-`invoke`, `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`, `isUndefined`, `isTypedArray`, `join`, `kebabCase`, `last`,
-`lastIndexOf`, `lowerCase`, `lowerFirst`, `lt`, `lte`, `max`, `maxBy`,
-`mean`, `min`, `minBy`, `noConflict`, `noop`, `now`, `pad`, `padEnd`,
-`padStart`, `parseInt`, `pop`, `random`, `reduce`, `reduceRight`, `repeat`,
-`result`, `round`, `runInContext`, `sample`, `shift`, `size`, `snakeCase`,
-`some`, `sortedIndex`, `sortedIndexBy`, `sortedLastIndex`, `sortedLastIndexBy`,
-`startCase`, `startsWith`, `subtract`, `sum`, sumBy`, `template`, `times`,
-`toLower`, `toInteger`, `toLength`, `toNumber`, `toSafeInteger`, toString`,
-`toUpper`, `trim`, `trimEnd`, `trimStart`, `truncate`, `unescape`, `uniqueId`,
+`findLast`, `findLastIndex`, `findLastKey`, `floor`, `forEach`, `forEachRight`,
+`forIn`, `forInRight`, `forOwn`, `forOwnRight`, `get`, `gt`, `gte`, `has`,
+`hasIn`, `head`, `identity`, `includes`, `indexOf`, `inRange`, `invoke`,
+`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`, `isUndefined`,
+`isTypedArray`, `join`, `kebabCase`, `last`, `lastIndexOf`, `lowerCase`,
+`lowerFirst`, `lt`, `lte`, `max`, `maxBy`, `mean`, `min`, `minBy`,
+`noConflict`, `noop`, `now`, `pad`, `padEnd`, `padStart`, `parseInt`,
+`pop`, `random`, `reduce`, `reduceRight`, `repeat`, `result`, `round`,
+`runInContext`, `sample`, `shift`, `size`, `snakeCase`, `some`, `sortedIndex`,
+`sortedIndexBy`, `sortedLastIndex`, `sortedLastIndexBy`, `startCase`,
+`startsWith`, `subtract`, `sum`, `sumBy`, `template`, `times`, `toLower`,
+`toInteger`, `toLength`, `toNumber`, `toSafeInteger`, `toString`, `toUpper`,
+`trim`, `trimEnd`, `trimStart`, `truncate`, `unescape`, `uniqueId`,
`upperCase`, `upperFirst`, `value`, and `words`
#### Arguments
@@ -7220,7 +7225,7 @@ _.isArray(squares.value());
### `_.chain(value)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L6956 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L6981 "View in source") [Ⓣ][1]
Creates a `lodash` object that wraps `value` with explicit method chaining enabled.
The result of such method chaining must be unwrapped with `_#value`.
@@ -7256,7 +7261,7 @@ var youngest = _
### `_.tap(value, interceptor)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L6984 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L7009 "View in source") [Ⓣ][1]
This method invokes `interceptor` and returns `value`. The interceptor is
invoked with one argument; (value). The purpose of this method is to "tap into"
@@ -7287,7 +7292,7 @@ _([1, 2, 3])
### `_.thru(value, interceptor)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L7009 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L7034 "View in source") [Ⓣ][1]
This method is like `_.tap` except that it returns the result of `interceptor`.
@@ -7315,34 +7320,8 @@ _(' abc ')
-### `_.wrapperFlatMap([iteratee=_.identity])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L7128 "View in source") [Ⓣ][1]
-
-This method is the wrapper version of `_.flatMap`.
-
-#### Arguments
-1. `[iteratee=_.identity]` *(Function|Object|string)*: The function invoked per iteration.
-
-#### Returns
-*(Object)*: Returns the new `lodash` wrapper instance.
-
-#### Example
-```js
-function duplicate(n) {
- return [n, n];
-}
-
-_([1, 2]).flatMap(duplicate).value();
-// => [1, 1, 2, 2]
-```
-* * *
-
-
-
-
-
### `_.prototype[Symbol.iterator]()`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L7180 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L7205 "View in source") [Ⓣ][1]
Enables the wrapper to be iterable.
@@ -7366,7 +7345,7 @@ Array.from(wrapped);
### `_.prototype.at([paths])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L7032 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L7057 "View in source") [Ⓣ][1]
This method is the wrapper version of `_.at`.
@@ -7393,7 +7372,7 @@ _(['a', 'b', 'c']).at(0, 2).value();
### `_.prototype.chain()`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L7078 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L7103 "View in source") [Ⓣ][1]
Enables explicit method chaining on the wrapper object.
@@ -7426,7 +7405,7 @@ _(users)
### `_.prototype.commit()`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L7107 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L7132 "View in source") [Ⓣ][1]
Executes the chained sequence and returns the wrapped result.
@@ -7457,8 +7436,34 @@ console.log(array);
+### `_.prototype.flatMap([iteratee=_.identity])`
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L7153 "View in source") [Ⓣ][1]
+
+This method is the wrapper version of `_.flatMap`.
+
+#### Arguments
+1. `[iteratee=_.identity]` *(Function|Object|string)*: The function invoked per iteration.
+
+#### Returns
+*(Object)*: Returns the new `lodash` wrapper instance.
+
+#### Example
+```js
+function duplicate(n) {
+ return [n, n];
+}
+
+_([1, 2]).flatMap(duplicate).value();
+// => [1, 1, 2, 2]
+```
+* * *
+
+
+
+
+
### `_.prototype.next()`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L7153 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L7178 "View in source") [Ⓣ][1]
Gets the next value on a wrapped object following the
[iterator protocol](https://mdn.io/iteration_protocols#iterator).
@@ -7486,7 +7491,7 @@ wrapped.next();
### `_.prototype.plant(value)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L7207 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L7232 "View in source") [Ⓣ][1]
Creates a clone of the chained sequence planting `value` as the wrapped value.
@@ -7518,7 +7523,7 @@ wrapped.value();
### `_.prototype.reverse()`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L7246 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L7271 "View in source") [Ⓣ][1]
This method is the wrapper version of `_.reverse`.
@@ -7545,12 +7550,12 @@ console.log(array);
### `_.prototype.value()`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L7273 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L7298 "View in source") [Ⓣ][1]
Executes the chained sequence to extract the unwrapped value.
#### Aliases
-*_.prototype.run, _.prototype.toJSON, _.prototype.valueOf*
+*_.prototype.toJSON, _.prototype.valueOf*
#### Returns
*(*)*: Returns the resolved unwrapped value.
@@ -7573,7 +7578,7 @@ _([1, 2, 3]).value();
### `_.camelCase([string=''])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L11729 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.camelcase "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L11758 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.camelcase "See the npm package")
Converts `string` to [camel case](https://en.wikipedia.org/wiki/CamelCase).
@@ -7601,7 +7606,7 @@ _.camelCase('__foo_bar__');
### `_.capitalize([string=''])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L11748 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.capitalize "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L11777 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.capitalize "See the npm package")
Converts the first character of `string` to upper case and the remaining
to lower case.
@@ -7624,7 +7629,7 @@ _.capitalize('FRED');
### `_.deburr([string=''])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L11766 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.deburr "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L11795 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.deburr "See the npm package")
Deburrs `string` by converting [latin-1 supplementary letters](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table)
to basic latin letters and removing [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks).
@@ -7647,7 +7652,7 @@ _.deburr('déjà vu');
### `_.endsWith([string=''], [target], [position=string.length])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L11792 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.endswith "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L11821 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.endswith "See the npm package")
Checks if `string` ends with the given target string.
@@ -7677,7 +7682,7 @@ _.endsWith('abc', 'b', 2);
### `_.escape([string=''])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L11837 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.escape "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L11866 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.escape "See the npm package")
Converts the characters "&", "<", ">", '"', "'", and "\`" in `string` to
their corresponding HTML entities.
@@ -7722,7 +7727,7 @@ _.escape('fred, barney, & pebbles');
### `_.escapeRegExp([string=''])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L11858 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.escaperegexp "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L11887 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.escaperegexp "See the npm package")
Escapes the `RegExp` special characters "^", "$", "\", ".", "*", "+",
"?", "(", ")", "[", "]", "{", "}", and "|" in `string`.
@@ -7745,7 +7750,7 @@ _.escapeRegExp('[lodash](https://lodash.com/)');
### `_.kebabCase([string=''])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L11884 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.kebabcase "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L11913 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.kebabcase "See the npm package")
Converts `string` to [kebab case](https://en.wikipedia.org/wiki/Letter_case#Special_case_styles).
@@ -7773,7 +7778,7 @@ _.kebabCase('__foo_bar__');
### `_.lowerCase([string=''])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L11907 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.lowercase "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L11936 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.lowercase "See the npm package")
Converts `string`, as space separated words, to lower case.
@@ -7801,7 +7806,7 @@ _.lowerCase('__FOO_BAR__');
### `_.lowerFirst([string=''])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L11927 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.lowerfirst "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L11956 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.lowerfirst "See the npm package")
Converts the first character of `string` to lower case.
@@ -7826,7 +7831,7 @@ _.lowerFirst('FRED');
### `_.pad([string=''], [length=0], [chars=' '])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L11969 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.pad "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L11998 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.pad "See the npm package")
Pads `string` on the left and right sides if it's shorter than `length`.
Padding characters are truncated if they can't be evenly divided by `length`.
@@ -7857,7 +7862,7 @@ _.pad('abc', 3);
### `_.padEnd([string=''], [length=0], [chars=' '])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L12006 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.padend "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L12035 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.padend "See the npm package")
Pads `string` on the right side if it's shorter than `length`. Padding
characters are truncated if they exceed `length`.
@@ -7888,7 +7893,7 @@ _.padEnd('abc', 3);
### `_.padStart([string=''], [length=0], [chars=' '])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L12033 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.padstart "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L12062 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.padstart "See the npm package")
Pads `string` on the left side if it's shorter than `length`. Padding
characters are truncated if they exceed `length`.
@@ -7919,14 +7924,14 @@ _.padStart('abc', 3);
### `_.parseInt(string, [radix])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L12061 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.parseint "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L12090 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.parseint "See the npm package")
Converts `string` to an integer of the specified radix. If `radix` is
`undefined` or `0`, a `radix` of `10` is used unless `value` is a hexadecimal,
in which case a `radix` of `16` is used.
-**Note:** This method aligns with the [ES5 implementation](https://es5.github.io/#E)
+**Note:** This method aligns with the [ES5 implementation](https://es5.github.io/#x15.1.2.2)
of `parseInt`.
#### Arguments
@@ -7951,7 +7956,7 @@ _.map(['6', '08', '10'], _.parseInt);
### `_.repeat([string=''], [n=0])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L12093 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.repeat "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L12122 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.repeat "See the npm package")
Repeats the given string `n` times.
@@ -7980,7 +7985,7 @@ _.repeat('abc', 0);
### `_.replace([string=''], pattern, replacement)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L12131 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.replace "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L12160 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.replace "See the npm package")
Replaces matches for `pattern` in `string` with `replacement`.
@@ -8007,7 +8012,7 @@ _.replace('Hi Fred', 'Fred', 'Barney');
### `_.snakeCase([string=''])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L12157 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.snakecase "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L12186 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.snakecase "See the npm package")
Converts `string` to [snake case](https://en.wikipedia.org/wiki/Snake_case).
@@ -8035,7 +8040,7 @@ _.snakeCase('--foo-bar');
### `_.split([string=''], separator, [limit])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L12178 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.split "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L12207 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.split "See the npm package")
Splits `string` by `separator`.
@@ -8062,7 +8067,7 @@ _.split('a-b-c', '-', 2);
### `_.startCase([string=''])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L12201 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.startcase "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L12230 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.startcase "See the npm package")
Converts `string` to [start case](https://en.wikipedia.org/wiki/Letter_case#Stylistic_or_specialised_usage).
@@ -8090,7 +8095,7 @@ _.startCase('__foo_bar__');
### `_.startsWith([string=''], [target], [position=0])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L12226 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.startswith "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L12255 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.startswith "See the npm package")
Checks if `string` starts with the given target string.
@@ -8120,7 +8125,7 @@ _.startsWith('abc', 'b', 1);
### `_.template([string=''], [options])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L12328 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.template "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L12357 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.template "See the npm package")
Creates a compiled template function that can interpolate data properties
in "interpolate" delimiters, HTML-escape interpolated data properties in
@@ -8227,7 +8232,7 @@ fs.writeFileSync(path.join(cwd, 'jst.js'), '\
### `_.toLower([string=''])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L12453 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.tolower "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L12482 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.tolower "See the npm package")
Converts `string`, as a whole, to lower case.
@@ -8255,7 +8260,7 @@ _.toLower('__FOO_BAR__');
### `_.toUpper([string=''])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L12476 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.toupper "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L12505 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.toupper "See the npm package")
Converts `string`, as a whole, to upper case.
@@ -8283,7 +8288,7 @@ _.toUpper('__foo_bar__');
### `_.trim([string=''], [chars=whitespace])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L12501 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.trim "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L12530 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.trim "See the npm package")
Removes leading and trailing whitespace or specified characters from `string`.
@@ -8312,7 +8317,7 @@ _.map([' foo ', ' bar '], _.trim);
### `_.trimEnd([string=''], [chars=whitespace])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L12537 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.trimend "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L12566 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.trimend "See the npm package")
Removes trailing whitespace or specified characters from `string`.
@@ -8338,7 +8343,7 @@ _.trimEnd('-_-abc-_-', '_-');
### `_.trimStart([string=''], [chars=whitespace])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L12571 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.trimstart "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L12600 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.trimstart "See the npm package")
Removes leading whitespace or specified characters from `string`.
@@ -8364,7 +8369,7 @@ _.trimStart('-_-abc-_-', '_-');
### `_.truncate([string=''], [options])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L12623 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.truncate "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L12652 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.truncate "See the npm package")
Truncates `string` if it's longer than the given maximum string length.
The last characters of the truncated string are replaced with the omission
@@ -8409,7 +8414,7 @@ _.truncate('hi-diddly-ho there, neighborino', {
### `_.unescape([string=''])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L12697 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.unescape "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L12726 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.unescape "See the npm package")
The inverse of `_.escape`; this method converts the HTML entities
`&`, `<`, `>`, `"`, `'`, and ``` in `string` to their
@@ -8437,7 +8442,7 @@ _.unescape('fred, barney, & pebbles');
### `_.upperCase([string=''])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L12723 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.uppercase "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L12752 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.uppercase "See the npm package")
Converts `string`, as space separated words, to upper case.
@@ -8465,7 +8470,7 @@ _.upperCase('__foo_bar__');
### `_.upperFirst([string=''])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L11945 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.upperfirst "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L11974 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.upperfirst "See the npm package")
Converts the first character of `string` to upper case.
@@ -8490,7 +8495,7 @@ _.upperFirst('FRED');
### `_.words([string=''], [pattern])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L12745 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.words "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L12774 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.words "See the npm package")
Splits `string` into an array of its words.
@@ -8522,7 +8527,7 @@ _.words('fred, barney, & pebbles', /[^, ]+/g);
### `_.attempt(func)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L12777 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.attempt "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L12806 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.attempt "See the npm package")
Attempts to invoke `func`, returning either the result or the caught error
object. Any additional arguments are provided to `func` when it's invoked.
@@ -8551,7 +8556,7 @@ if (_.isError(elements)) {
### `_.bindAll(object, methodNames)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L12811 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.bindall "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L12840 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.bindall "See the npm package")
Binds methods of an object to the object itself, overwriting the existing
method.
@@ -8586,7 +8591,7 @@ jQuery(element).on('click', view.onClick);
### `_.cond(pairs)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L12846 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.cond "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L12875 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.cond "See the npm package")
Creates a function that iterates over `pairs` invoking the corresponding
function of the first predicate to return truthy. The predicate-function
@@ -8605,7 +8610,7 @@ var func = _.cond([
[_.matches({ 'a': 1 }), _.constant('matches A')],
[_.conforms({ 'b': _.isNumber }), _.constant('matches B')],
[_.constant(true), _.constant('no match')]
-])
+]);
func({ 'a': 1, 'b': 2 });
// => 'matches A'
@@ -8623,7 +8628,7 @@ func({ 'a': '1', 'b': '2' });
### `_.conforms(source)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L12888 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.conforms "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L12917 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.conforms "See the npm package")
Creates a function that invokes the predicate properties of `source` with
the corresponding property values of a given object, returning `true` if
@@ -8652,7 +8657,7 @@ _.filter(users, _.conforms({ 'age': _.partial(_.gt, _, 38) }));
### `_.constant(value)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L12908 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.constant "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L12937 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.constant "See the npm package")
Creates a function that returns `value`.
@@ -8677,7 +8682,7 @@ getter() === object;
### `_.flow([funcs])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L12934 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.flow "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L12963 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.flow "See the npm package")
Creates a function that returns the result of invoking the provided
functions with the `this` binding of the created function, where each
@@ -8706,7 +8711,7 @@ addSquare(1, 2);
### `_.flowRight([funcs])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L12955 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.flowright "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L12984 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.flowright "See the npm package")
This method is like `_.flow` except that it creates a function that
invokes the provided functions from right to left.
@@ -8734,7 +8739,7 @@ addSquare(1, 2);
### `_.identity(value)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L12972 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.identity "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L13001 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.identity "See the npm package")
This method returns the first argument provided to it.
@@ -8758,7 +8763,7 @@ _.identity(object) === object;
### `_.iteratee([func=_.identity])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L13005 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.iteratee "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L13034 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.iteratee "See the npm package")
Creates a function that invokes `func` with the arguments of the created
function. If `func` is a property name the created callback returns the
@@ -8796,7 +8801,7 @@ _.filter(users, 'age > 36');
### `_.matches(source)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L13033 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.matches "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L13062 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.matches "See the npm package")
Creates a function that performs a deep partial comparison between a given
object and `source`, returning `true` if the given object has equivalent
@@ -8828,7 +8833,7 @@ _.filter(users, _.matches({ 'age': 40, 'active': false }));
### `_.matchesProperty(path, srcValue)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L13060 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.matchesproperty "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L13089 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.matchesproperty "See the npm package")
Creates a function that performs a deep partial comparison between the
value at `path` of a given object to `srcValue`, returning `true` if the
@@ -8861,7 +8866,7 @@ _.find(users, _.matchesProperty('user', 'fred'));
### `_.method(path, [args])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L13087 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.method "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L13116 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.method "See the npm package")
Creates a function that invokes the method at `path` of a given object.
Any additional arguments are provided to the invoked method.
@@ -8893,7 +8898,7 @@ _.invokeMap(_.sortBy(objects, _.method(['a', 'b', 'c'])), 'a.b.c');
### `_.methodOf(object, [args])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L13115 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.methodof "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L13144 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.methodof "See the npm package")
The opposite of `_.method`; this method creates a function that invokes
the method at a given path of `object`. Any additional arguments are
@@ -8924,7 +8929,7 @@ _.map([['a', '2'], ['c', '0']], _.methodOf(object));
### `_.mixin([object=lodash], source, [options])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L13157 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.mixin "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L13186 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.mixin "See the npm package")
Adds all own enumerable function properties of a source object to the
destination object. If `object` is a function then methods are added to
@@ -8969,7 +8974,7 @@ _('fred').vowels();
### `_.noConflict()`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L13205 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.noconflict "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L13234 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.noconflict "See the npm package")
Reverts the `_` variable to its previous value and returns a reference to
the `lodash` function.
@@ -8988,7 +8993,7 @@ var lodash = _.noConflict();
### `_.noop()`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L13224 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.noop "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L13255 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.noop "See the npm package")
A no-operation function that returns `undefined` regardless of the
arguments it receives.
@@ -9007,7 +9012,7 @@ _.noop(object) === undefined;
### `_.nthArg([n=0])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L13243 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.ntharg "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L13274 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.ntharg "See the npm package")
Creates a function that returns its nth argument.
@@ -9031,7 +9036,7 @@ func('a', 'b', 'c');
### `_.over(iteratees)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L13266 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.over "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L13297 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.over "See the npm package")
Creates a function that invokes `iteratees` with the arguments provided
to the created function and returns their results.
@@ -9056,7 +9061,7 @@ func(1, 2, 3, 4);
### `_.overEvery(predicates)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L13290 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.overevery "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L13321 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.overevery "See the npm package")
Creates a function that checks if **all** of the `predicates` return
truthy when invoked with the arguments provided to the created function.
@@ -9087,7 +9092,7 @@ func(NaN);
### `_.overSome(predicates)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L13314 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.oversome "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L13345 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.oversome "See the npm package")
Creates a function that checks if **any** of the `predicates` return
truthy when invoked with the arguments provided to the created function.
@@ -9118,7 +9123,7 @@ func(NaN);
### `_.property(path)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L13337 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.property "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L13368 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.property "See the npm package")
Creates a function that returns the value at `path` of a given object.
@@ -9148,7 +9153,7 @@ _.map(_.sortBy(objects, _.property(['a', 'b', 'c'])), 'a.b.c');
### `_.propertyOf(object)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L13361 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.propertyof "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L13392 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.propertyof "See the npm package")
The opposite of `_.property`; this method creates a function that returns
the value at a given path of `object`.
@@ -9177,13 +9182,12 @@ _.map([['a', '2'], ['c', '0']], _.propertyOf(object));
### `_.range([start=0], end, [step=1])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L13407 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.range "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L13437 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.range "See the npm package")
Creates an array of numbers (positive and/or negative) progressing from
`start` up to, but not including, `end`. A step of `-1` is used if a negative
`start` is specified without an `end` or `step`. If `end` is not specified
-it's set to `start` with `start` then set to `0`. If `end` is less than
-`start` a zero-length range is created unless a negative `step` is specified.
+it's set to `start` with `start` then set to `0`.
**Note:** JavaScript follows the IEEE-754 standard for resolving
@@ -9227,7 +9231,7 @@ _.range(0);
### `_.rangeRight([start=0], end, [step=1])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L13443 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.rangeright "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L13473 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.rangeright "See the npm package")
This method is like `_.range` except that it populates values in
descending order.
@@ -9270,7 +9274,7 @@ _.rangeRight(0);
### `_.runInContext([context=root])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L1240 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.runincontext "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L1246 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.runincontext "See the npm package")
Create a new pristine `lodash` function using the `context` object.
@@ -9314,7 +9318,7 @@ var defer = _.runInContext({ 'setTimeout': setImmediate }).defer;
### `_.times(n, [iteratee=_.identity])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L13463 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.times "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L13493 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.times "See the npm package")
Invokes the iteratee function `n` times, returning an array of the results
of each invocation. The iteratee is invoked with one argument; (index).
@@ -9341,7 +9345,7 @@ _.times(3, String);
### `_.toPath(value)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L13506 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.topath "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L13536 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.topath "See the npm package")
Converts `value` to a property path array.
@@ -9375,7 +9379,7 @@ console.log(path === newPath);
### `_.uniqueId([prefix])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L13526 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.uniqueid "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L13556 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.uniqueid "See the npm package")
Generates a unique ID. If `prefix` is provided the ID is appended to it.
@@ -9401,46 +9405,12 @@ _.uniqueId();
-## `Methods`
-
-
-
-### `_.templateSettings.imports._`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L1532 "View in source") [Ⓣ][1]
-
-A reference to the `lodash` function.
-
-* * *
-
-
-
-
-
-### `stringSize(string)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L1170 "View in source") [Ⓣ][1]
-
-Gets the number of symbols in `string`.
-
-#### Arguments
-1. `string` *(string)*: The string to inspect.
-
-#### Returns
-*(number)*: Returns the string size.
-
-* * *
-
-
-
-
-
-
-
## `Properties`
### `_.VERSION`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L14157 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L14187 "View in source") [Ⓣ][1]
(string): The semantic version number.
@@ -9451,7 +9421,7 @@ Gets the number of symbols in `string`.
### `_.templateSettings`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L1484 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.templatesettings "See the npm package")
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L1490 "View in source") [Ⓣ][1] [Ⓝ](https://www.npmjs.com/package/lodash.templatesettings "See the npm package")
(Object): By default, the template delimiters used by lodash are like those in
embedded Ruby (ERB). Change the following template settings to use
@@ -9464,7 +9434,7 @@ alternative delimiters.
### `_.templateSettings.escape`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L1492 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L1498 "View in source") [Ⓣ][1]
(RegExp): Used to detect `data` property values to be HTML-escaped.
@@ -9475,7 +9445,7 @@ alternative delimiters.
### `_.templateSettings.evaluate`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L1500 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L1506 "View in source") [Ⓣ][1]
(RegExp): Used to detect code to be evaluated.
@@ -9486,7 +9456,7 @@ alternative delimiters.
### `_.templateSettings.imports`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L1524 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L1530 "View in source") [Ⓣ][1]
(Object): Used to import variables into the compiled template.
@@ -9497,7 +9467,7 @@ alternative delimiters.
### `_.templateSettings.interpolate`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L1508 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L1514 "View in source") [Ⓣ][1]
(RegExp): Used to detect `data` property values to inject.
@@ -9508,7 +9478,7 @@ alternative delimiters.
### `_.templateSettings.variable`
-# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.0/lodash.js#L1516 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L1522 "View in source") [Ⓣ][1]
(string): Used to reference the data object in the template text.
@@ -9518,6 +9488,23 @@ alternative delimiters.
+
+
+## `Methods`
+
+
+
+### `_.templateSettings.imports._`
+# [Ⓢ](https://github.com/lodash/lodash/blob/4.0.1/lodash.js#L1538 "View in source") [Ⓣ][1]
+
+A reference to the `lodash` function.
+
+* * *
+
+
+
+
+
[1]: #array "Jump back to the TOC."
diff --git a/lib/fp/baseConvert.js b/fp/_baseConvert.js
similarity index 76%
rename from lib/fp/baseConvert.js
rename to fp/_baseConvert.js
index f43ee62403..10a7d70bc1 100644
--- a/lib/fp/baseConvert.js
+++ b/fp/_baseConvert.js
@@ -1,5 +1,6 @@
-var mapping = require('./mapping.js'),
- mutateMap = mapping.mutateMap;
+var mapping = require('./_mapping'),
+ mutateMap = mapping.mutate,
+ placeholder = {};
/**
* The base implementation of `convert` which accepts a `util` object of methods
@@ -39,21 +40,16 @@ function baseConvert(util, name, func) {
keys = _.keys,
rearg = _.rearg;
- var baseAry = function(func, n) {
- return function() {
- var args = arguments,
- length = Math.min(args.length, n);
+ var baseArity = function(func, n) {
+ return n == 2
+ ? function(a, b) { return func.apply(undefined, arguments); }
+ : function(a) { return func.apply(undefined, arguments); };
+ };
- switch (length) {
- case 1: return func(args[0]);
- case 2: return func(args[0], args[1]);
- }
- args = Array(length);
- while (length--) {
- args[length] = arguments[length];
- }
- return func.apply(undefined, args);
- };
+ var baseAry = function(func, n) {
+ return n == 2
+ ? function(a, b) { return func(a, b); }
+ : function(a) { return func(a); };
};
var cloneArray = function(array) {
@@ -82,6 +78,13 @@ function baseConvert(util, name, func) {
});
};
+ var iterateeRearg = function(func, indexes) {
+ return overArg(func, function(func) {
+ var n = indexes.length;
+ return baseArity(rearg(baseAry(func, n), indexes), n);
+ });
+ };
+
var overArg = function(func, iteratee, retArg) {
return function() {
var length = arguments.length,
@@ -98,7 +101,10 @@ function baseConvert(util, name, func) {
var wrappers = {
'iteratee': function(iteratee) {
- return function(func, arity) {
+ return function() {
+ var func = arguments[0],
+ arity = arguments[1];
+
arity = arity > 2 ? (arity - 2) : 1;
func = iteratee(func);
var length = func.length;
@@ -158,14 +164,18 @@ function baseConvert(util, name, func) {
}
var result;
each(mapping.caps, function(cap) {
- each(mapping.aryMethodMap[cap], function(otherName) {
+ each(mapping.aryMethod[cap], function(otherName) {
if (name == otherName) {
+ var indexes = mapping.iterateeRearg[name],
+ n = !isLib && mapping.aryIteratee[name];
+
result = ary(func, cap);
- if (cap > 1 && !mapping.skipReargMap[name]) {
- result = rearg(result, mapping.methodReargMap[name] || mapping.aryReargMap[cap]);
+ if (cap > 1 && !mapping.skipRearg[name]) {
+ result = rearg(result, mapping.methodRearg[name] || mapping.aryRearg[cap]);
}
- var n = !isLib && mapping.aryIterateeMap[name];
- if (n) {
+ if (indexes) {
+ result = iterateeRearg(result, indexes);
+ } else if (n) {
result = iterateeAry(result, n);
}
if (cap > 1) {
@@ -176,7 +186,12 @@ function baseConvert(util, name, func) {
});
return !result;
});
- return result || func;
+
+ result || (result = func);
+ if (mapping.placeholder[name]) {
+ result.placeholder = placeholder;
+ }
+ return result;
};
if (!isLib) {
@@ -185,8 +200,8 @@ function baseConvert(util, name, func) {
// Iterate over methods for the current ary cap.
var pairs = [];
each(mapping.caps, function(cap) {
- each(mapping.aryMethodMap[cap], function(key) {
- var func = _[mapping.keyMap[key] || key];
+ each(mapping.aryMethod[cap], function(key) {
+ var func = _[mapping.key[key] || key];
if (func) {
pairs.push([key, wrap(key, func)]);
}
@@ -200,7 +215,7 @@ function baseConvert(util, name, func) {
// Wrap the lodash method and its aliases.
each(keys(_), function(key) {
- each(mapping.aliasMap[key] || [], function(alias) {
+ each(mapping.alias[key] || [], function(alias) {
_[alias] = _[key];
});
});
diff --git a/fp/_convertBrowser.js b/fp/_convertBrowser.js
new file mode 100644
index 0000000000..b076778a4a
--- /dev/null
+++ b/fp/_convertBrowser.js
@@ -0,0 +1,13 @@
+var baseConvert = require('./_baseConvert');
+
+/**
+ * Converts `lodash` to an immutable auto-curried iteratee-first data-last version.
+ *
+ * @param {Function} lodash The lodash function.
+ * @returns {Function} Returns the converted `lodash`.
+ */
+function browserConvert(lodash) {
+ return baseConvert(lodash, lodash);
+}
+
+module.exports = browserConvert;
diff --git a/fp/_mapping.js b/fp/_mapping.js
new file mode 100644
index 0000000000..4f1e607ee0
--- /dev/null
+++ b/fp/_mapping.js
@@ -0,0 +1,202 @@
+module.exports = {
+
+ /** Used to map method names to their aliases. */
+ 'alias': {
+ 'ary': ['nAry'],
+ 'assignIn': ['extend'],
+ 'assignInWith': ['extendWith'],
+ 'filter': ['whereEq'],
+ 'flatten': ['unnest'],
+ 'flow': ['pipe'],
+ 'flowRight': ['compose'],
+ 'forEach': ['each'],
+ 'forEachRight': ['eachRight'],
+ 'get': ['path', 'prop'],
+ 'getOr': ['pathOr', 'propOr'],
+ 'head': ['first'],
+ 'includes': ['contains'],
+ 'initial': ['init'],
+ 'isEqual': ['equals'],
+ 'mapValues': ['mapObj'],
+ 'matchesProperty': ['pathEq'],
+ 'omit': ['dissoc', 'omitAll'],
+ 'overArgs': ['useWith'],
+ 'overEvery': ['allPass'],
+ 'overSome': ['somePass'],
+ 'pick': ['pickAll'],
+ 'propertyOf': ['propOf'],
+ 'rest': ['unapply'],
+ 'some': ['all'],
+ 'spread': ['apply'],
+ 'zipObject': ['zipObj']
+ },
+
+ /** Used to map method names to their iteratee ary. */
+ 'aryIteratee': {
+ 'assignWith': 2,
+ 'assignInWith': 2,
+ 'cloneDeepWith': 1,
+ 'cloneWith': 1,
+ 'dropRightWhile': 1,
+ 'dropWhile': 1,
+ 'every': 1,
+ 'filter': 1,
+ 'find': 1,
+ 'findIndex': 1,
+ 'findKey': 1,
+ 'findLast': 1,
+ 'findLastIndex': 1,
+ 'findLastKey': 1,
+ 'flatMap': 1,
+ 'forEach': 1,
+ 'forEachRight': 1,
+ 'forIn': 1,
+ 'forInRight': 1,
+ 'forOwn': 1,
+ 'forOwnRight': 1,
+ 'isEqualWith': 2,
+ 'isMatchWith': 2,
+ 'map': 1,
+ 'mapKeys': 1,
+ 'mapValues': 1,
+ 'partition': 1,
+ 'reduce': 2,
+ 'reduceRight': 2,
+ 'reject': 1,
+ 'remove': 1,
+ 'some': 1,
+ 'takeRightWhile': 1,
+ 'takeWhile': 1,
+ 'times': 1,
+ 'transform': 2
+ },
+
+ /** Used to map ary to method names. */
+ 'aryMethod': {
+ 1:[
+ 'attempt', 'ceil', 'create', 'curry', 'curryRight', 'floor', 'fromPairs',
+ 'invert', 'iteratee', 'memoize', 'method', 'methodOf', 'mixin', 'over',
+ 'overEvery', 'overSome', 'rest', 'reverse', 'round', 'runInContext',
+ 'template', 'trim', 'trimEnd', 'trimStart', 'uniqueId', 'words'
+ ],
+ 2:[
+ 'add', 'after', 'ary', 'assign', 'at', 'before', 'bind', 'bindKey',
+ 'chunk', 'cloneDeepWith', 'cloneWith', 'concat', 'countBy', 'curryN',
+ 'curryRightN', 'debounce', 'defaults', 'defaultsDeep', 'delay', 'difference',
+ 'drop', 'dropRight', 'dropRightWhile', 'dropWhile', 'endsWith', 'eq',
+ 'every', 'extend', 'filter', 'find', 'find', 'findIndex', 'findKey',
+ 'findLast', 'findLastIndex', 'findLastKey', 'flatMap', 'forEach',
+ 'forEachRight', 'forIn', 'forInRight', 'forOwn', 'forOwnRight', 'get',
+ 'groupBy', 'gt', 'gte', 'has', 'hasIn', 'includes', 'indexOf', 'intersection',
+ 'invoke', 'invokeMap', 'isEqual', 'isMatch', 'join', 'keyBy', 'lastIndexOf',
+ 'lt', 'lte', 'map', 'mapKeys', 'mapValues', 'matchesProperty', 'maxBy',
+ 'merge', 'minBy', 'omit', 'omitBy', 'orderBy', 'overArgs', 'pad', 'padEnd',
+ 'padStart', 'parseInt', 'partition', 'pick', 'pickBy', 'pull', 'pullAll',
+ 'pullAt', 'random', 'range', 'rangeRight', 'rearg', 'reject', 'remove',
+ 'repeat', 'result', 'sampleSize', 'some', 'sortBy', 'sortedIndex',
+ 'sortedIndexOf', 'sortedLastIndex', 'sortedLastIndexOf', 'sortedUniqBy',
+ 'split', 'startsWith', 'subtract', 'sumBy', 'take', 'takeRight', 'takeRightWhile',
+ 'takeWhile', 'tap', 'throttle', 'thru', 'times', 'truncate', 'union', 'uniqBy',
+ 'uniqWith', 'unset', 'unzipWith', 'without', 'wrap', 'xor', 'zip', 'zipObject'
+ ],
+ 3:[
+ 'assignInWith', 'assignWith', 'clamp', 'differenceBy', 'differenceWith',
+ 'getOr', 'inRange', 'intersectionBy', 'intersectionWith', 'isEqualWith',
+ 'isMatchWith', 'mergeWith', 'pullAllBy', 'reduce', 'reduceRight', 'replace',
+ 'set', 'slice', 'sortedIndexBy', 'sortedLastIndexBy', 'transform', 'unionBy',
+ 'unionWith', 'xorBy', 'xorWith', 'zipWith'
+ ],
+ 4:[
+ 'fill', 'setWith'
+ ]
+ },
+
+ /** Used to map ary to rearg configs. */
+ 'aryRearg': {
+ 2: [1, 0],
+ 3: [2, 1, 0],
+ 4: [3, 2, 0, 1]
+ },
+
+ /** Used to map method names to iteratee rearg configs. */
+ 'iterateeRearg': {
+ 'findKey': [1],
+ 'findLastKey': [1],
+ 'mapKeys': [1]
+ },
+
+ /** Used to map method names to rearg configs. */
+ 'methodRearg': {
+ 'clamp': [2, 0, 1],
+ 'reduce': [2, 0, 1],
+ 'reduceRight': [2, 0, 1],
+ 'set': [2, 0, 1],
+ 'setWith': [3, 1, 2, 0],
+ 'slice': [2, 0, 1],
+ 'transform': [2, 0, 1]
+ },
+
+ /** Used to iterate `mapping.aryMethod` keys. */
+ 'caps': [1, 2, 3, 4],
+
+ /** Used to map keys to other keys. */
+ 'key': {
+ 'curryN': 'curry',
+ 'curryRightN': 'curryRight',
+ 'getOr': 'get'
+ },
+
+ /** Used to identify methods which mutate arrays or objects. */
+ 'mutate': {
+ 'array': {
+ 'fill': true,
+ 'pull': true,
+ 'pullAll': true,
+ 'pullAllBy': true,
+ 'pullAt': true,
+ 'remove': true,
+ 'reverse': true
+ },
+ 'object': {
+ 'assign': true,
+ 'assignIn': true,
+ 'assignInWith': true,
+ 'assignWith': true,
+ 'defaults': true,
+ 'defaultsDeep': true,
+ 'merge': true,
+ 'mergeWith': true
+ },
+ 'set': {
+ 'set': true,
+ 'setWith': true
+ }
+ },
+
+ /** Used to track methods with placeholder support */
+ 'placeholder': {
+ 'bind': true,
+ 'bindKey': true,
+ 'curry': true,
+ 'curryRight': true,
+ 'partial': true,
+ 'partialRight': true
+ },
+
+ /** Used to track methods that skip `_.rearg`. */
+ 'skipRearg': {
+ 'assign': true,
+ 'assignIn': true,
+ 'concat': true,
+ 'defaults': true,
+ 'defaultsDeep': true,
+ 'difference': true,
+ 'matchesProperty': true,
+ 'merge': true,
+ 'random': true,
+ 'range': true,
+ 'rangeRight': true,
+ 'zip': true,
+ 'zipObject': true
+ }
+};
diff --git a/lib/fp/build.js b/lib/fp/build-dist.js
similarity index 87%
rename from lib/fp/build.js
rename to lib/fp/build-dist.js
index db3fbe40bd..c88dd4e5c2 100644
--- a/lib/fp/build.js
+++ b/lib/fp/build-dist.js
@@ -2,7 +2,6 @@
var _ = require('lodash'),
async = require('async'),
- fs = require('fs-extra'),
path = require('path'),
webpack = require('webpack');
@@ -10,10 +9,11 @@ var minify = require('../common/minify.js');
var basePath = path.join(__dirname, '..', '..'),
distPath = path.join(basePath, 'dist'),
+ fpPath = path.join(basePath, 'fp'),
filename = 'lodash.fp.js';
var fpConfig = {
- 'entry': path.join(__dirname, 'convert.browser.js'),
+ 'entry': path.join(fpPath, '_convertBrowser.js'),
'output': {
'path': distPath,
'filename': filename,
@@ -27,7 +27,7 @@ var fpConfig = {
};
var mappingConfig = {
- 'entry': path.join(__dirname, 'mapping.js'),
+ 'entry': path.join(fpPath, '_mapping.js'),
'output': {
'path': distPath,
'filename': 'mapping.fp.js',
diff --git a/lib/fp/convert.browser.js b/lib/fp/convert.browser.js
deleted file mode 100644
index 6855f34f8a..0000000000
--- a/lib/fp/convert.browser.js
+++ /dev/null
@@ -1,13 +0,0 @@
-var baseConvert = require('./baseConvert.js');
-
-/**
- * Converts `lodash` to an auto-curried iteratee-first data-last version.
- *
- * @param {Function} lodash The lodash function.
- * @returns {Function} Returns the converted lodash function.
- */
-function browserConvert(lodash) {
- return baseConvert(lodash, lodash);
-}
-
-module.exports = browserConvert;
diff --git a/lib/fp/convert.js b/lib/fp/convert.js
deleted file mode 100644
index 09626d8ebf..0000000000
--- a/lib/fp/convert.js
+++ /dev/null
@@ -1,21 +0,0 @@
-var _ = require('lodash'),
- baseConvert = require('./baseConvert.js'),
- util = require('./util.js');
-
-/**
- * Converts `func` of `name` to an auto-curried iteratee-first data-last version.
- * If `name` is an object, the methods on it will be converted and the object returned.
- *
- * @param {string} [name] The name of the function to wrap.
- * @param {Function} [func] The function to wrap.
- * @returns {Function|Object} Returns the converted function or object.
- */
-function convert() {
- var args = arguments,
- name = args.length ? args[0] : _.noConflict().runInContext(),
- func = args[1];
-
- return baseConvert(util, name, func);
-}
-
-module.exports = convert;
diff --git a/lib/fp/convert.node.js b/lib/fp/convert.node.js
deleted file mode 100644
index ef26d5cbfe..0000000000
--- a/lib/fp/convert.node.js
+++ /dev/null
@@ -1,16 +0,0 @@
-var baseConvert = require('./baseConvert.js'),
- util = require('./util.js');
-
-/**
- * Converts `func` of `name` to an auto-curried iteratee-first data-last version.
- * If `name` is an object, the methods on it will be converted and the object returned.
- *
- * @param {string} name The name of the function to wrap.
- * @param {Function} func The function to wrap.
- * @returns {Function|Object} Returns the converted function or object.
- */
-function nodeConvert(name, func) {
- return baseConvert(util, name, func);
-}
-
-module.exports = nodeConvert;
diff --git a/lib/fp/mapping.js b/lib/fp/mapping.js
deleted file mode 100644
index 4c76e4289a..0000000000
--- a/lib/fp/mapping.js
+++ /dev/null
@@ -1,164 +0,0 @@
-module.exports = {
-
- /** Used to map method names to their aliases. */
- 'aliasMap': {
- 'ary': ['nAry'],
- 'overEvery': ['allPass'],
- 'overSome': ['somePass'],
- 'filter': ['whereEq'],
- 'flatten': ['unnest'],
- 'flow': ['pipe'],
- 'flowRight': ['compose'],
- 'forEach': ['each'],
- 'forEachRight': ['eachRight'],
- 'get': ['path'],
- 'getOr': ['pathOr'],
- 'head': ['first'],
- 'includes': ['contains'],
- 'initial': ['init'],
- 'isEqual': ['equals'],
- 'mapValues': ['mapObj'],
- 'matchesProperty': ['pathEq'],
- 'overArgs': ['useWith'],
- 'omit': ['dissoc', 'omitAll'],
- 'pick': ['pickAll'],
- 'property': ['prop'],
- 'propertyOf': ['propOf'],
- 'rest': ['unapply'],
- 'some': ['all'],
- 'spread': ['apply'],
- 'zipObject': ['zipObj']
- },
-
- /** Used to map method names to their iteratee ary. */
- 'aryIterateeMap': {
- 'assignWith': 2,
- 'cloneDeepWith': 1,
- 'cloneWith': 1,
- 'dropRightWhile': 1,
- 'dropWhile': 1,
- 'every': 1,
- 'extendWith': 2,
- 'filter': 1,
- 'find': 1,
- 'findIndex': 1,
- 'findKey': 1,
- 'findLast': 1,
- 'findLastIndex': 1,
- 'findLastKey': 1,
- 'flatMap': 1,
- 'forEach': 1,
- 'forEachRight': 1,
- 'forIn': 1,
- 'forInRight': 1,
- 'forOwn': 1,
- 'forOwnRight': 1,
- 'isEqualWith': 2,
- 'isMatchWith': 2,
- 'map': 1,
- 'mapKeys': 1,
- 'mapValues': 1,
- 'partition': 1,
- 'reduce': 2,
- 'reduceRight': 2,
- 'reject': 1,
- 'remove': 1,
- 'some': 1,
- 'takeRightWhile': 1,
- 'takeWhile': 1,
- 'times': 1,
- 'transform': 2
- },
-
- /** Used to map ary to method names. */
- 'aryMethodMap': {
- 1: (
- 'attempt,ceil,create,curry,curryRight,floor,fromPairs,iteratee,invert,over,' +
- 'overEvery,overSome,memoize,method,methodOf,mixin,rest,reverse,round,' +
- 'runInContext,template,trim,trimLeft,trimRight,uniqueId,words').split(','),
- 2: (
- 'add,ary,assign,at,bind,bindKey,cloneDeepWith,cloneWith,concat,countBy,curryN,' +
- 'curryRightN,debounce,defaults,defaultsDeep,delay,difference,drop,dropRight,' +
- 'dropRightWhile,dropWhile,endsWith,eq,every,extend,filter,find,find,findIndex,' +
- 'findKey,findLast,findLastIndex,findLastKey,flatMap,forEach,forEachRight,' +
- 'forIn,forInRight,forOwn,forOwnRight,get,groupBy,includes,indexBy,indexOf,' +
- 'intersection,invoke,invokeMap,isMatch,lastIndexOf,map,mapKeys,mapValues,' +
- 'matchesProperty,maxBy,mean,minBy,merge,omit,orderBy,overArgs,pad,padLeft,' +
- 'padRight,parseInt,partition,pick,pull,pullAll,pullAt,random,range,rangeRight,' +
- 'rearg,reject,remove,repeat,result,sampleSize,some,sortBy,sortedIndexBy,' +
- 'sortedLastIndexBy,sortedUniqBy,startsWith,subtract,sumBy,take,takeRight,' +
- 'takeRightWhile,takeWhile,throttle,times,truncate,union,uniqBy,without,wrap,' +
- 'xor,zip,zipObject').split(','),
- 3: (
- 'assignWith,clamp,differenceBy,extendWith,getOr,inRange,intersectionBy,' +
- 'isEqualWith,isMatchWith,mergeWith,omitBy,pickBy,pullAllBy,reduce,' +
- 'reduceRight,set,slice,transform,unionBy,xorBy,zipWith').split(','),
- 4:
- ['fill', 'setWith']
- },
-
- /** Used to map ary to rearg configs by method ary. */
- 'aryReargMap': {
- 2: [1, 0],
- 3: [2, 1, 0],
- 4: [3, 2, 0, 1]
- },
-
- /** Used to map ary to rearg configs by method names. */
- 'methodReargMap': {
- 'clamp': [2, 0, 1],
- 'reduce': [2, 0, 1],
- 'reduceRight': [2, 0, 1],
- 'setWith': [3, 2, 1, 0],
- 'slice': [2, 0, 1],
- 'transform': [2, 0, 1]
- },
-
- /** Used to iterate `mapping.aryMethodMap` keys. */
- 'caps': [1, 2, 3, 4],
-
- /** Used to map keys to other keys. */
- 'keyMap': {
- 'curryN': 'curry',
- 'curryRightN': 'curryRight',
- 'getOr': 'get'
- },
-
- /** Used to identify methods which mutate arrays or objects. */
- 'mutateMap': {
- 'array': {
- 'fill': true,
- 'pull': true,
- 'pullAll': true,
- 'pullAllBy': true,
- 'pullAt': true,
- 'remove': true,
- 'reverse': true
- },
- 'object': {
- 'assign': true,
- 'assignWith': true,
- 'defaults': true,
- 'defaultsDeep': true,
- 'extend': true,
- 'extendWith': true,
- 'merge': true,
- 'mergeWith': true
- },
- 'set': {
- 'set': true,
- 'setWith': true
- }
- },
-
- /** Used to track methods that skip `_.rearg`. */
- 'skipReargMap': {
- 'difference': true,
- 'matchesProperty': true,
- 'random': true,
- 'range': true,
- 'rangeRight': true,
- 'zip': true,
- 'zipObject': true
- }
-};
diff --git a/lib/fp/template/_util.jst b/lib/fp/template/_util.jst
new file mode 100644
index 0000000000..1fb05e435b
--- /dev/null
+++ b/lib/fp/template/_util.jst
@@ -0,0 +1,10 @@
+module.exports = {
+ 'ary': require('../ary'),
+ 'cloneDeep': require('../cloneDeep'),
+ 'curry': require('../curry'),
+ 'forEach': require('../internal/arrayEach'),
+ 'isFunction': require('../isFunction'),
+ 'iteratee': require('../iteratee'),
+ 'keys': require('../internal/baseKeys'),
+ 'rearg': require('../rearg')
+};
diff --git a/lib/fp/template/convert.jst b/lib/fp/template/convert.jst
new file mode 100644
index 0000000000..85f3b7535e
--- /dev/null
+++ b/lib/fp/template/convert.jst
@@ -0,0 +1,16 @@
+var baseConvert = require('./_baseConvert'),
+ util = require('./_util');
+
+/**
+ * Converts `func` of `name` to an immutable auto-curried iteratee-first data-last
+ * version. If `name` is an object its methods will be converted.
+ *
+ * @param {string} name The name of the function to wrap.
+ * @param {Function} [func] The function to wrap.
+ * @returns {Function|Object} Returns the converted function or object.
+ */
+function convert(name, func) {
+ return baseConvert(util, name, func);
+}
+
+module.exports = convert;
diff --git a/lib/fp/util.js b/lib/fp/util.js
deleted file mode 100644
index 1ba696938d..0000000000
--- a/lib/fp/util.js
+++ /dev/null
@@ -1,10 +0,0 @@
-module.exports = {
- 'ary': require('lodash/ary'),
- 'cloneDeep': require('lodash/cloneDeep'),
- 'curry': require('lodash/curry'),
- 'forEach': require('lodash/internal/arrayEach'),
- 'isFunction': require('lodash/isFunction'),
- 'iteratee': require('lodash/iteratee'),
- 'keys': require('lodash/internal/baseKeys'),
- 'rearg': require('lodash/rearg')
-};
diff --git a/lib/main/build.js b/lib/main/build-dist.js
similarity index 100%
rename from lib/main/build.js
rename to lib/main/build-dist.js
diff --git a/lodash.js b/lodash.js
index e20df38848..95aef79608 100644
--- a/lodash.js
+++ b/lodash.js
@@ -1,6 +1,6 @@
/**
* @license
- * lodash 4.0.0 (Custom Build)