-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L6757 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.chunk "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L6817 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.chunk "See the npm package") [Ⓣ][1]
Creates an array of elements split into groups the length of `size`.
If `array` can't be split evenly, the final chunk will be the remaining
@@ -445,7 +445,7 @@ _.chunk(['a', 'b', 'c', 'd'], 3);
_.compact(array)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L6792 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.compact "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L6852 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.compact "See the npm package") [Ⓣ][1]
Creates an array with all falsey values removed. The values `false`, `null`,
`0`, `""`, `undefined`, and `NaN` are falsey.
@@ -470,7 +470,7 @@ _.compact([0, 1, false, 2, '', 3]);
_.concat(array, [values])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L6829 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.concat "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L6889 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.concat "See the npm package") [Ⓣ][1]
Creates a new array concatenating `array` with any additional arrays
and/or values.
@@ -502,7 +502,7 @@ console.log(array);
_.difference(array, [values])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L6865 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.difference "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L6925 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.difference "See the npm package") [Ⓣ][1]
Creates an array of `array` values not included in the other given arrays
using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
@@ -533,7 +533,7 @@ _.difference([2, 1], [2, 3]);
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L6897 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.differenceby "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L6957 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.differenceby "See the npm package") [Ⓣ][1]
This method is like `_.difference` except that it accepts `iteratee` which
is invoked for each element of `array` and `values` to generate the criterion
@@ -570,7 +570,7 @@ _.differenceBy([{ 'x': 2 }, { 'x': 1 }], [{ 'x': 1 }], 'x');
_.differenceWith(array, [values], [comparator])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L6930 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.differencewith "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L6990 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.differencewith "See the npm package") [Ⓣ][1]
This method is like `_.difference` except that it accepts `comparator`
which is invoked to compare elements of `array` to `values`. The order and
@@ -604,7 +604,7 @@ _.differenceWith(objects, [{ 'x': 1, 'y': 2 }], _.isEqual);
_.drop(array, [n=1])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L6965 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.drop "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L7025 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.drop "See the npm package") [Ⓣ][1]
Creates a slice of `array` with `n` elements dropped from the beginning.
@@ -638,7 +638,7 @@ _.drop([1, 2, 3], 0);
_.dropRight(array, [n=1])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L6999 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.dropright "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L7059 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.dropright "See the npm package") [Ⓣ][1]
Creates a slice of `array` with `n` elements dropped from the end.
@@ -672,7 +672,7 @@ _.dropRight([1, 2, 3], 0);
_.dropRightWhile(array, [predicate=_.identity])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L7044 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.droprightwhile "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L7104 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.droprightwhile "See the npm package") [Ⓣ][1]
Creates a slice of `array` excluding elements dropped from the end.
Elements are dropped until `predicate` returns falsey. The predicate is
@@ -717,7 +717,7 @@ _.dropRightWhile(users, 'active');
_.dropWhile(array, [predicate=_.identity])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L7086 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.dropwhile "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L7145 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.dropwhile "See the npm package") [Ⓣ][1]
Creates a slice of `array` excluding elements dropped from the beginning.
Elements are dropped until `predicate` returns falsey. The predicate is
@@ -762,7 +762,7 @@ _.dropWhile(users, 'active');
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L7121 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.fill "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L7180 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.fill "See the npm package") [Ⓣ][1]
Fills elements of `array` with `value` from `start` up to, but not
including, `end`.
@@ -802,7 +802,7 @@ _.fill([4, 6, 8, 10], '*', 1, 3);
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L7169 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.findindex "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L7227 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.findindex "See the npm package") [Ⓣ][1]
This method is like `_.find` except that it returns the index of the first
element `predicate` returns truthy for instead of the element itself.
@@ -847,7 +847,7 @@ _.findIndex(users, 'active');
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L7217 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.findlastindex "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L7274 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.findlastindex "See the npm package") [Ⓣ][1]
This method is like `_.findIndex` except that it iterates over elements
of `collection` from right to left.
@@ -892,7 +892,7 @@ _.findLastIndex(users, 'active');
_.flatten(array)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L7246 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.flatten "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L7303 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.flatten "See the npm package") [Ⓣ][1]
Flattens `array` a single level deep.
@@ -916,7 +916,7 @@ _.flatten([1, [2, [3, [4]], 5]]);
_.flattenDeep(array)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L7265 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.flattendeep "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L7322 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.flattendeep "See the npm package") [Ⓣ][1]
Recursively flattens `array`.
@@ -940,7 +940,7 @@ _.flattenDeep([1, [2, [3, [4]], 5]]);
_.flattenDepth(array, [depth=1])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L7290 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.flattendepth "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L7347 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.flattendepth "See the npm package") [Ⓣ][1]
Recursively flatten `array` up to `depth` times.
@@ -970,7 +970,7 @@ _.flattenDepth(array, 2);
_.fromPairs(pairs)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L7314 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.frompairs "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L7371 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.frompairs "See the npm package") [Ⓣ][1]
The inverse of `_.toPairs`; this method returns an object composed
from key-value `pairs`.
@@ -995,7 +995,7 @@ _.fromPairs([['a', 1], ['b', 2]]);
_.head(array)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L7344 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.head "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L7401 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.head "See the npm package") [Ⓣ][1]
Gets the first element of `array`.
@@ -1025,7 +1025,7 @@ _.head([]);
_.indexOf(array, value, [fromIndex=0])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L7371 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.indexof "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L7428 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.indexof "See the npm package") [Ⓣ][1]
Gets the index at which the first occurrence of `value` is found in `array`
using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
@@ -1058,7 +1058,7 @@ _.indexOf([1, 2, 1, 2], 2, 2);
_.initial(array)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L7397 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.initial "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L7454 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.initial "See the npm package") [Ⓣ][1]
Gets all but the last element of `array`.
@@ -1082,7 +1082,7 @@ _.initial([1, 2, 3]);
_.intersection([arrays])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L7419 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.intersection "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L7476 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.intersection "See the npm package") [Ⓣ][1]
Creates an array of unique values that are included in all given arrays
using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
@@ -1109,7 +1109,7 @@ _.intersection([2, 1], [2, 3]);
_.intersectionBy([arrays], [iteratee=_.identity])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L7449 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.intersectionby "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L7506 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.intersectionby "See the npm package") [Ⓣ][1]
This method is like `_.intersection` except that it accepts `iteratee`
which is invoked for each element of each `arrays` to generate the criterion
@@ -1142,7 +1142,7 @@ _.intersectionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');
_.intersectionWith([arrays], [comparator])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L7484 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.intersectionwith "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L7541 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.intersectionwith "See the npm package") [Ⓣ][1]
This method is like `_.intersection` except that it accepts `comparator`
which is invoked to compare elements of `arrays`. The order and references
@@ -1173,7 +1173,7 @@ _.intersectionWith(objects, others, _.isEqual);
_.join(array, [separator=','])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L7513 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.join "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L7569 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.join "See the npm package") [Ⓣ][1]
Converts all elements in `array` into a string separated by `separator`.
@@ -1198,7 +1198,7 @@ _.join(['a', 'b', 'c'], '~');
_.last(array)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L7531 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.last "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L7587 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.last "See the npm package") [Ⓣ][1]
Gets the last element of `array`.
@@ -1222,7 +1222,7 @@ _.last([1, 2, 3]);
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L7557 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.lastindexof "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L7613 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.lastindexof "See the npm package") [Ⓣ][1]
This method is like `_.indexOf` except that it iterates over elements of
`array` from right to left.
@@ -1253,7 +1253,7 @@ _.lastIndexOf([1, 2, 1, 2], 2, 2);
_.nth(array, [n=0])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L7593 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.nth "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L7649 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.nth "See the npm package") [Ⓣ][1]
Gets the element at index `n` of `array`. If `n` is negative, the nth
element from the end is returned.
@@ -1284,7 +1284,7 @@ _.nth(array, -2);
_.pull(array, [values])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L7620 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.pull "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L7676 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.pull "See the npm package") [Ⓣ][1]
Removes all given values from `array` using
[`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
@@ -1318,7 +1318,7 @@ console.log(array);
_.pullAll(array, values)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L7642 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.pullall "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L7698 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.pullall "See the npm package") [Ⓣ][1]
This method is like `_.pull` except that it accepts an array of values to remove.
@@ -1349,7 +1349,7 @@ console.log(array);
_.pullAllBy(array, values, [iteratee=_.identity])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L7672 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.pullallby "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L7727 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.pullallby "See the npm package") [Ⓣ][1]
This method is like `_.pullAll` except that it accepts `iteratee` which is
invoked for each element of `array` and `values` to generate the criterion
@@ -1383,7 +1383,7 @@ console.log(array);
_.pullAllWith(array, values, [comparator])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L7701 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.pullallwith "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L7756 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.pullallwith "See the npm package") [Ⓣ][1]
This method is like `_.pullAll` except that it accepts `comparator` which
is invoked to compare elements of `array` to `values`. The comparator is
@@ -1417,7 +1417,7 @@ console.log(array);
_.pullAt(array, [indexes])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L7731 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.pullat "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L7786 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.pullat "See the npm package") [Ⓣ][1]
Removes elements from `array` corresponding to `indexes` and returns an
array of removed elements.
@@ -1452,7 +1452,7 @@ console.log(pulled);
_.remove(array, [predicate=_.identity])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L7771 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.remove "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L7825 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.remove "See the npm package") [Ⓣ][1]
Removes all elements from `array` that `predicate` returns truthy for
and returns an array of the removed elements. The predicate is invoked
@@ -1491,7 +1491,7 @@ console.log(evens);
_.reverse(array)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L7815 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.reverse "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L7869 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.reverse "See the npm package") [Ⓣ][1]
Reverses `array` so that the first element becomes the last, the second
element becomes the second to last, and so on.
@@ -1525,7 +1525,7 @@ console.log(array);
_.slice(array, [start=0], [end=array.length])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L7835 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.slice "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L7889 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.slice "See the npm package") [Ⓣ][1]
Creates a slice of `array` from `start` up to, but not including, `end`.
@@ -1551,7 +1551,7 @@ returned.
_.sortedIndex(array, value)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L7868 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.sortedindex "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L7922 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.sortedindex "See the npm package") [Ⓣ][1]
Uses a binary search to determine the lowest index at which `value`
should be inserted into `array` in order to maintain its sort order.
@@ -1577,7 +1577,7 @@ _.sortedIndex([30, 50], 40);
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L7898 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.sortedindexby "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L7951 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.sortedindexby "See the npm package") [Ⓣ][1]
This method is like `_.sortedIndex` except that it accepts `iteratee`
which is invoked for `value` and each element of `array` to compute their
@@ -1611,7 +1611,7 @@ _.sortedIndexBy(objects, { 'x': 4 }, 'x');
_.sortedIndexOf(array, value)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L7918 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.sortedindexof "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L7971 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.sortedindexof "See the npm package") [Ⓣ][1]
This method is like `_.indexOf` except that it performs a binary
search on a sorted `array`.
@@ -1637,7 +1637,7 @@ _.sortedIndexOf([4, 5, 5, 5, 6], 5);
_.sortedLastIndex(array, value)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L7947 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.sortedlastindex "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L8000 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.sortedlastindex "See the npm package") [Ⓣ][1]
This method is like `_.sortedIndex` except that it returns the highest
index at which `value` should be inserted into `array` in order to
@@ -1664,7 +1664,7 @@ _.sortedLastIndex([4, 5, 5, 5, 6], 5);
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L7977 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.sortedlastindexby "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L8029 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.sortedlastindexby "See the npm package") [Ⓣ][1]
This method is like `_.sortedLastIndex` except that it accepts `iteratee`
which is invoked for `value` and each element of `array` to compute their
@@ -1698,7 +1698,7 @@ _.sortedLastIndexBy(objects, { 'x': 4 }, 'x');
_.sortedLastIndexOf(array, value)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L7997 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.sortedlastindexof "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L8049 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.sortedlastindexof "See the npm package") [Ⓣ][1]
This method is like `_.lastIndexOf` except that it performs a binary
search on a sorted `array`.
@@ -1724,7 +1724,7 @@ _.sortedLastIndexOf([4, 5, 5, 5, 6], 5);
_.sortedUniq(array)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L8023 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.sorteduniq "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L8075 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.sorteduniq "See the npm package") [Ⓣ][1]
This method is like `_.uniq` except that it's designed and optimized
for sorted arrays.
@@ -1749,7 +1749,7 @@ _.sortedUniq([1, 1, 2]);
_.sortedUniqBy(array, [iteratee])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L8045 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.sorteduniqby "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L8097 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.sorteduniqby "See the npm package") [Ⓣ][1]
This method is like `_.uniqBy` except that it's designed and optimized
for sorted arrays.
@@ -1775,7 +1775,7 @@ _.sortedUniqBy([1.1, 1.2, 2.3, 2.4], Math.floor);
_.tail(array)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L8065 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.tail "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L8117 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.tail "See the npm package") [Ⓣ][1]
Gets all but the first element of `array`.
@@ -1799,7 +1799,7 @@ _.tail([1, 2, 3]);
_.take(array, [n=1])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L8095 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.take "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L8147 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.take "See the npm package") [Ⓣ][1]
Creates a slice of `array` with `n` elements taken from the beginning.
@@ -1833,7 +1833,7 @@ _.take([1, 2, 3], 0);
_.takeRight(array, [n=1])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L8128 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.takeright "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L8180 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.takeright "See the npm package") [Ⓣ][1]
Creates a slice of `array` with `n` elements taken from the end.
@@ -1867,7 +1867,7 @@ _.takeRight([1, 2, 3], 0);
_.takeRightWhile(array, [predicate=_.identity])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L8174 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.takerightwhile "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L8225 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.takerightwhile "See the npm package") [Ⓣ][1]
Creates a slice of `array` with elements taken from the end. Elements are
taken until `predicate` returns falsey. The predicate is invoked with
@@ -1912,7 +1912,7 @@ _.takeRightWhile(users, 'active');
_.takeWhile(array, [predicate=_.identity])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L8216 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.takewhile "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L8266 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.takewhile "See the npm package") [Ⓣ][1]
Creates a slice of `array` with elements taken from the beginning. Elements
are taken until `predicate` returns falsey. The predicate is invoked with
@@ -1957,7 +1957,7 @@ _.takeWhile(users, 'active');
_.union([arrays])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L8238 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.union "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L8288 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.union "See the npm package") [Ⓣ][1]
Creates an array of unique values, in order, from all given arrays using
[`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
@@ -1983,7 +1983,7 @@ _.union([2], [1, 2]);
_.unionBy([arrays], [iteratee=_.identity])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L8266 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.unionby "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L8315 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.unionby "See the npm package") [Ⓣ][1]
This method is like `_.union` except that it accepts `iteratee` which is
invoked for each element of each `arrays` to generate the criterion by
@@ -2016,7 +2016,7 @@ _.unionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');
_.unionWith([arrays], [comparator])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L8295 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.unionwith "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L8344 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.unionwith "See the npm package") [Ⓣ][1]
This method is like `_.union` except that it accepts `comparator` which
is invoked to compare elements of `arrays`. Result values are chosen from
@@ -2047,7 +2047,7 @@ _.unionWith(objects, others, _.isEqual);
_.uniq(array)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L8321 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.uniq "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L8368 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.uniq "See the npm package") [Ⓣ][1]
Creates a duplicate-free version of an array, using
[`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
@@ -2075,7 +2075,7 @@ _.uniq([2, 1, 2]);
_.uniqBy(array, [iteratee=_.identity])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L8351 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.uniqby "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L8395 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.uniqby "See the npm package") [Ⓣ][1]
This method is like `_.uniq` except that it accepts `iteratee` which is
invoked for each element in `array` to generate the criterion by which
@@ -2108,7 +2108,7 @@ _.uniqBy([{ 'x': 1 }, { 'x': 2 }, { 'x': 1 }], 'x');
_.uniqWith(array, [comparator])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L8377 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.uniqwith "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L8419 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.uniqwith "See the npm package") [Ⓣ][1]
This method is like `_.uniq` except that it accepts `comparator` which
is invoked to compare elements of `array`. The order of result values is
@@ -2138,7 +2138,7 @@ _.uniqWith(objects, _.isEqual);
_.unzip(array)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L8402 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.unzip "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L8443 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.unzip "See the npm package") [Ⓣ][1]
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
@@ -2167,7 +2167,7 @@ _.unzip(zipped);
_.unzipWith(array, [iteratee=_.identity])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L8439 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.unzipwith "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L8480 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.unzipwith "See the npm package") [Ⓣ][1]
This method is like `_.unzip` except that it accepts `iteratee` to specify
how regrouped values should be combined. The iteratee is invoked with the
@@ -2197,7 +2197,7 @@ _.unzipWith(zipped, _.add);
_.without(array, [values])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L8472 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.without "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L8513 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.without "See the npm package") [Ⓣ][1]
Creates an array excluding all given values using
[`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
@@ -2227,7 +2227,7 @@ _.without([2, 1, 2, 3], 1, 2);
_.xor([arrays])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L8496 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.xor "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L8537 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.xor "See the npm package") [Ⓣ][1]
Creates an array of unique values that is the
[symmetric difference](https://en.wikipedia.org/wiki/Symmetric_difference)
@@ -2254,7 +2254,7 @@ _.xor([2, 1], [2, 3]);
_.xorBy([arrays], [iteratee=_.identity])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L8524 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.xorby "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L8564 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.xorby "See the npm package") [Ⓣ][1]
This method is like `_.xor` except that it accepts `iteratee` which is
invoked for each element of each `arrays` to generate the criterion by
@@ -2287,7 +2287,7 @@ _.xorBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');
_.xorWith([arrays], [comparator])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L8553 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.xorwith "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L8593 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.xorwith "See the npm package") [Ⓣ][1]
This method is like `_.xor` except that it accepts `comparator` which is
invoked to compare elements of `arrays`. The order of result values is
@@ -2318,7 +2318,7 @@ _.xorWith(objects, others, _.isEqual);
_.zip([arrays])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L8577 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.zip "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L8615 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.zip "See the npm package") [Ⓣ][1]
Creates an array of grouped elements, the first of which contains the
first elements of the given arrays, the second of which contains the
@@ -2344,7 +2344,7 @@ _.zip(['a', 'b'], [1, 2], [true, false]);
_.zipObject([props=[]], [values=[]])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L8595 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.zipobject "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L8633 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.zipobject "See the npm package") [Ⓣ][1]
This method is like `_.fromPairs` except that it accepts two arrays,
one of property identifiers and one of corresponding values.
@@ -2370,7 +2370,7 @@ _.zipObject(['a', 'b'], [1, 2]);
_.zipObjectDeep([props=[]], [values=[]])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L8614 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.zipobjectdeep "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L8652 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.zipobjectdeep "See the npm package") [Ⓣ][1]
This method is like `_.zipObject` except that it supports property paths.
@@ -2395,7 +2395,7 @@ _.zipObjectDeep(['a.b[0].c', 'a.b[1].d'], [1, 2]);
_.zipWith([arrays], [iteratee=_.identity])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L8637 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.zipwith "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L8676 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.zipwith "See the npm package") [Ⓣ][1]
This method is like `_.zip` except that it accepts `iteratee` to specify
how grouped values should be combined. The iteratee is invoked with the
@@ -2430,7 +2430,7 @@ _.zipWith([1, 2], [10, 20], [100, 200], function(a, b, c) {
_.countBy(collection, [iteratee=_.identity])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L9017 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.countby "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L9055 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.countby "See the npm package") [Ⓣ][1]
Creates an object composed of keys generated from the results of running
each element of `collection` thru `iteratee`. The corresponding value of
@@ -2462,7 +2462,7 @@ _.countBy(['one', 'two', 'three'], 'length');
_.every(collection, [predicate=_.identity])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L9067 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.every "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L9104 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.every "See the npm package") [Ⓣ][1]
Checks if `predicate` returns truthy for **all** elements of `collection`.
Iteration is stopped once `predicate` returns falsey. The predicate is
@@ -2512,7 +2512,7 @@ _.every(users, 'active');
_.filter(collection, [predicate=_.identity])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L9113 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.filter "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L9149 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.filter "See the npm package") [Ⓣ][1]
Iterates over elements of `collection`, returning an array of all elements
`predicate` returns truthy for. The predicate is invoked with three
@@ -2559,7 +2559,7 @@ _.filter(users, 'active');
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L9155 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.find "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L9190 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.find "See the npm package") [Ⓣ][1]
Iterates over elements of `collection`, returning the first element
`predicate` returns truthy for. The predicate is invoked with three
@@ -2605,7 +2605,7 @@ _.find(users, 'active');
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L9177 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.findlast "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L9211 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.findlast "See the npm package") [Ⓣ][1]
This method is like `_.find` except that it iterates over elements of
`collection` from right to left.
@@ -2634,7 +2634,7 @@ _.findLast([1, 2, 3, 4], function(n) {
_.flatMap(collection, [iteratee=_.identity])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L9201 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.flatmap "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L9234 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.flatmap "See the npm package") [Ⓣ][1]
Creates a flattened array of values by running each element in `collection`
thru `iteratee` and flattening the mapped results. The iteratee is invoked
@@ -2665,7 +2665,7 @@ _.flatMap([1, 2], duplicate);
_.flatMapDeep(collection, [iteratee=_.identity])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L9226 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.flatmapdeep "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L9258 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.flatmapdeep "See the npm package") [Ⓣ][1]
This method is like `_.flatMap` except that it recursively flattens the
mapped results.
@@ -2695,7 +2695,7 @@ _.flatMapDeep([1, 2], duplicate);
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L9252 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.flatmapdepth "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L9283 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.flatmapdepth "See the npm package") [Ⓣ][1]
This method is like `_.flatMap` except that it recursively flattens the
mapped results up to `depth` times.
@@ -2726,7 +2726,7 @@ _.flatMapDepth([1, 2], duplicate, 2);
_.forEach(collection, [iteratee=_.identity])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L9287 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.foreach "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L9318 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.foreach "See the npm package") [Ⓣ][1]
Iterates over elements of `collection` and invokes `iteratee` for each element.
The iteratee is invoked with three arguments: *(value, index|key, collection)*.
@@ -2768,7 +2768,7 @@ _.forEach({ 'a': 1, 'b': 2 }, function(value, key) {
_.forEachRight(collection, [iteratee=_.identity])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L9312 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.foreachright "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L9343 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.foreachright "See the npm package") [Ⓣ][1]
This method is like `_.forEach` except that it iterates over elements of
`collection` from right to left.
@@ -2799,7 +2799,7 @@ _.forEachRight([1, 2], function(value) {
_.groupBy(collection, [iteratee=_.identity])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L9341 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.groupby "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L9371 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.groupby "See the npm package") [Ⓣ][1]
Creates an object composed of keys generated from the results of running
each element of `collection` thru `iteratee`. The order of grouped values
@@ -2832,7 +2832,7 @@ _.groupBy(['one', 'two', 'three'], 'length');
_.includes(collection, value, [fromIndex=0])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L9379 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.includes "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L9409 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.includes "See the npm package") [Ⓣ][1]
Checks if `value` is in `collection`. If `collection` is a string, it's
checked for a substring of `value`, otherwise
@@ -2871,7 +2871,7 @@ _.includes('abcd', 'bc');
_.invokeMap(collection, path, [args])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L9415 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.invokemap "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L9445 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.invokemap "See the npm package") [Ⓣ][1]
Invokes the method at `path` of each element in `collection`, returning
an array of the results of each invoked method. Any additional arguments
@@ -2903,7 +2903,7 @@ _.invokeMap([123, 456], String.prototype.split, '');
_.keyBy(collection, [iteratee=_.identity])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L9457 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.keyby "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L9486 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.keyby "See the npm package") [Ⓣ][1]
Creates an object composed of keys generated from the results of running
each element of `collection` thru `iteratee`. The corresponding value of
@@ -2941,7 +2941,7 @@ _.keyBy(array, 'dir');
_.map(collection, [iteratee=_.identity])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L9503 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.map "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L9532 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.map "See the npm package") [Ⓣ][1]
Creates an array of values by running each element in `collection` thru
`iteratee`. The iteratee is invoked with three arguments:
@@ -2995,7 +2995,7 @@ _.map(users, 'user');
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L9537 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.orderby "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L9566 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.orderby "See the npm package") [Ⓣ][1]
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
@@ -3032,7 +3032,7 @@ _.orderBy(users, ['user', 'age'], ['asc', 'desc']);
_.partition(collection, [predicate=_.identity])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L9587 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.partition "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L9616 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.partition "See the npm package") [Ⓣ][1]
Creates an array of elements split into two groups, the first of which
contains elements `predicate` returns truthy for, the second of which
@@ -3078,7 +3078,7 @@ _.partition(users, 'active');
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L9628 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.reduce "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L9657 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.reduce "See the npm package") [Ⓣ][1]
Reduces `collection` to a value which is the accumulated result of running
each element in `collection` thru `iteratee`, where each successive
@@ -3126,7 +3126,7 @@ _.reduce({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L9657 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.reduceright "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L9686 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.reduceright "See the npm package") [Ⓣ][1]
This method is like `_.reduce` except that it iterates over elements of
`collection` from right to left.
@@ -3157,7 +3157,7 @@ _.reduceRight(array, function(flattened, other) {
_.reject(collection, [predicate=_.identity])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L9698 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.reject "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L9727 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.reject "See the npm package") [Ⓣ][1]
The opposite of `_.filter`; this method returns the elements of `collection`
that `predicate` does **not** return truthy for.
@@ -3200,7 +3200,7 @@ _.reject(users, 'active');
_.sample(collection)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L9717 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.sample "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L9746 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.sample "See the npm package") [Ⓣ][1]
Gets a random element from `collection`.
@@ -3224,7 +3224,7 @@ _.sample([1, 2, 3, 4]);
_.sampleSize(collection, [n=1])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L9742 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.samplesize "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L9771 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.samplesize "See the npm package") [Ⓣ][1]
Gets `n` random elements at unique keys from `collection` up to the
size of `collection`.
@@ -3253,7 +3253,7 @@ _.sampleSize([1, 2, 3], 4);
_.shuffle(collection)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L9767 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.shuffle "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L9796 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.shuffle "See the npm package") [Ⓣ][1]
Creates an array of shuffled values, using a version of the
[Fisher-Yates shuffle](https://en.wikipedia.org/wiki/Fisher-Yates_shuffle).
@@ -3278,7 +3278,7 @@ _.shuffle([1, 2, 3, 4]);
_.size(collection)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L9793 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.size "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L9822 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.size "See the npm package") [Ⓣ][1]
Gets the size of `collection` by returning its length for array-like
values or the number of own enumerable string keyed properties for objects.
@@ -3309,7 +3309,7 @@ _.size('pebbles');
_.some(collection, [predicate=_.identity])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L9843 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.some "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L9872 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.some "See the npm package") [Ⓣ][1]
Checks if `predicate` returns truthy for **any** element of `collection`.
Iteration is stopped once `predicate` returns truthy. The predicate is
@@ -3353,7 +3353,7 @@ _.some(users, 'active');
_.sortBy(collection, [iteratees=[_.identity]])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L9880 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.sortby "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L9909 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.sortby "See the npm package") [Ⓣ][1]
Creates an array of elements, sorted in ascending order by the results of
running each element in a collection thru each iteratee. This method
@@ -3397,7 +3397,7 @@ _.sortBy(users, ['user', 'age']);
_.now()
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L9911 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.now "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L9940 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.now "See the npm package") [Ⓣ][1]
Gets the timestamp of the number of milliseconds that have elapsed since
the Unix epoch *(1 January `1970 00`:00:00 UTC)*.
@@ -3427,7 +3427,7 @@ _.defer(function(stamp) {
_.after(n, func)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L9941 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.after "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L9970 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.after "See the npm package") [Ⓣ][1]
The opposite of `_.before`; this method creates a function that invokes
`func` once it's called `n` or more times.
@@ -3461,7 +3461,7 @@ _.forEach(saves, function(type) {
_.ary(func, [n=func.length])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L9970 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.ary "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L9999 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.ary "See the npm package") [Ⓣ][1]
Creates a function that invokes `func`, with up to `n` arguments,
ignoring any additional arguments.
@@ -3487,7 +3487,7 @@ _.map(['6', '8', '10'], _.ary(parseInt, 1));
_.before(n, func)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L9993 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.before "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L10022 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.before "See the npm package") [Ⓣ][1]
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
@@ -3514,7 +3514,7 @@ jQuery(element).on('click', _.before(5, addContactToList));
_.bind(func, thisArg, [partials])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L10045 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.bind "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L10074 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.bind "See the npm package") [Ⓣ][1]
Creates a function that invokes `func` with the `this` binding of `thisArg`
and `partials` prepended to the arguments it receives.
@@ -3561,7 +3561,7 @@ bound('hi');
_.bindKey(object, key, [partials])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L10099 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.bindkey "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L10128 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.bindkey "See the npm package") [Ⓣ][1]
Creates a function that invokes the method at `object[key]` with `partials`
prepended to the arguments it receives.
@@ -3618,7 +3618,7 @@ bound('hi');
_.curry(func, [arity=func.length])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L10149 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.curry "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L10178 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.curry "See the npm package") [Ⓣ][1]
Creates a function that accepts arguments of `func` and either invokes
`func` returning its result, if at least `arity` number of arguments have
@@ -3670,7 +3670,7 @@ curried(1)(_, 3)(2);
_.curryRight(func, [arity=func.length])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L10194 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.curryright "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L10223 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.curryright "See the npm package") [Ⓣ][1]
This method is like `_.curry` except that arguments are applied to `func`
in the manner of `_.partialRight` instead of `_.partial`.
@@ -3719,7 +3719,7 @@ curried(3)(1, _)(2);
_.debounce(func, [wait=0], [options={}])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L10255 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.debounce "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L10284 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.debounce "See the npm package") [Ⓣ][1]
Creates a debounced function that delays invoking `func` until after `wait`
milliseconds have elapsed since the last time the debounced function was
@@ -3783,7 +3783,7 @@ jQuery(window).on('popstate', debounced.cancel);
_.defer(func, [args])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L10395 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.defer "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L10424 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.defer "See the npm package") [Ⓣ][1]
Defers invoking the `func` until the current call stack has cleared. Any
additional arguments are provided to `func` when it's invoked.
@@ -3811,7 +3811,7 @@ _.defer(function(text) {
_.delay(func, wait, [args])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L10418 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.delay "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L10447 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.delay "See the npm package") [Ⓣ][1]
Invokes `func` after `wait` milliseconds. Any additional arguments are
provided to `func` when it's invoked.
@@ -3840,7 +3840,7 @@ _.delay(function(text) {
_.flip(func)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L10440 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.flip "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L10469 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.flip "See the npm package") [Ⓣ][1]
Creates a function that invokes `func` with arguments reversed.
@@ -3868,7 +3868,7 @@ flipped('a', 'b', 'c', 'd');
_.memoize(func, [resolver])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L10488 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.memoize "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L10517 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.memoize "See the npm package") [Ⓣ][1]
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
@@ -3881,7 +3881,7 @@ is invoked with the `this` binding of the memoized function.
function. Its creation may be customized by replacing the `_.memoize.Cache`
constructor with one whose instances implement the
[`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
-method interface of `delete`, `get`, `has`, and `set`.
+method interface of `clear`, `delete`, `get`, `has`, and `set`.
#### Since
0.1.0
@@ -3923,7 +3923,7 @@ _.memoize.Cache = WeakMap;
_.negate(predicate)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L10531 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.negate "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L10560 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.negate "See the npm package") [Ⓣ][1]
Creates a function that negates the result of the predicate `func`. The
`func` predicate is invoked with the `this` binding and arguments of the
@@ -3953,7 +3953,7 @@ _.filter([1, 2, 3, 4, 5, 6], _.negate(isEven));
_.once(func)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L10565 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.once "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L10594 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.once "See the npm package") [Ⓣ][1]
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
@@ -3981,7 +3981,7 @@ initialize();
_.overArgs(func, [transforms=[_.identity]])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L10600 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.overargs "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L10629 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.overargs "See the npm package") [Ⓣ][1]
Creates a function that invokes `func` with its arguments transformed.
@@ -4021,7 +4021,7 @@ func(10, 5);
_.partial(func, [partials])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L10650 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.partial "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L10679 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.partial "See the npm package") [Ⓣ][1]
Creates a function that invokes `func` with `partials` prepended to the
arguments it receives. This method is like `_.bind` except it does **not**
@@ -4066,7 +4066,7 @@ greetFred('hi');
_.partialRight(func, [partials])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L10687 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.partialright "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L10716 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.partialright "See the npm package") [Ⓣ][1]
This method is like `_.partial` except that partially applied arguments
are appended to the arguments it receives.
@@ -4110,7 +4110,7 @@ sayHelloTo('fred');
_.rearg(func, indexes)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L10714 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.rearg "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L10743 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.rearg "See the npm package") [Ⓣ][1]
Creates a function that invokes `func` with arguments arranged according
to the specified `indexes` where the argument value at the first index is
@@ -4142,7 +4142,7 @@ rearged('b', 'c', 'a')
_.rest(func, [start=func.length-1])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L10743 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.rest "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L10772 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.rest "See the npm package") [Ⓣ][1]
Creates a function that invokes `func` with the `this` binding of the
created function and arguments from `start` and beyond provided as
@@ -4178,7 +4178,7 @@ say('hello', 'fred', 'barney', 'pebbles');
_.spread(func, [start=0])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L10785 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.spread "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L10814 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.spread "See the npm package") [Ⓣ][1]
Creates a function that invokes `func` with the `this` binding of the
create function and an array of arguments much like
@@ -4223,7 +4223,7 @@ numbers.then(_.spread(function(x, y) {
_.throttle(func, [wait=0], [options={}])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L10845 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.throttle "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L10874 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.throttle "See the npm package") [Ⓣ][1]
Creates a throttled function that only invokes `func` at most once per
every `wait` milliseconds. The throttled function comes with a `cancel`
@@ -4278,7 +4278,7 @@ jQuery(window).on('popstate', throttled.cancel);
_.unary(func)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L10878 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.unary "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L10907 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.unary "See the npm package") [Ⓣ][1]
Creates a function that accepts up to one argument, ignoring any
additional arguments.
@@ -4303,7 +4303,7 @@ _.map(['6', '8', '10'], _.unary(parseInt));
_.wrap(value, [wrapper=identity])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L10904 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.wrap "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L10933 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.wrap "See the npm package") [Ⓣ][1]
Creates a function that provides `value` to `wrapper` as its first
argument. Any additional arguments provided to the function are appended
@@ -4341,7 +4341,7 @@ p('fred, barney, & pebbles');
_.castArray(value)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L10944 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.castarray "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L10972 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.castarray "See the npm package") [Ⓣ][1]
Casts `value` as an array if it's not one.
@@ -4384,7 +4384,7 @@ console.log(_.castArray(array) === array);
_.clone(value)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L10978 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.clone "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L11006 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.clone "See the npm package") [Ⓣ][1]
Creates a shallow clone of `value`.
@@ -4420,7 +4420,7 @@ console.log(shallow[0] === objects[0]);
_.cloneDeep(value)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L11035 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.clonedeep "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L11064 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.clonedeep "See the npm package") [Ⓣ][1]
This method is like `_.clone` except that it recursively clones `value`.
@@ -4447,7 +4447,7 @@ console.log(deep[0] === objects[0]);
_.cloneDeepWith(value, [customizer])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L11067 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.clonedeepwith "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L11096 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.clonedeepwith "See the npm package") [Ⓣ][1]
This method is like `_.cloneWith` except that it recursively clones `value`.
@@ -4484,7 +4484,7 @@ console.log(el.childNodes.length);
_.cloneWith(value, [customizer])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L11013 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.clonewith "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L11041 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.clonewith "See the npm package") [Ⓣ][1]
This method is like `_.clone` except that it accepts `customizer` which
is invoked to produce the cloned value. If `customizer` returns `undefined`,
@@ -4524,7 +4524,7 @@ console.log(el.childNodes.length);
_.conformsTo(object, source)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L11095 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.conformsto "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L11125 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.conformsto "See the npm package") [Ⓣ][1]
Checks if `object` conforms to `source` by invoking the predicate
properties of `source` with the corresponding property values of `object`.
@@ -4559,7 +4559,7 @@ _.conformsTo(object, { 'b': function(n) { return n > 2; } });
_.eq(value, other)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L11131 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.eq "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L11161 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.eq "See the npm package") [Ⓣ][1]
Performs a
[`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
@@ -4601,7 +4601,7 @@ _.eq(NaN, NaN);
_.gt(value, other)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L11158 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.gt "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L11188 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.gt "See the npm package") [Ⓣ][1]
Checks if `value` is greater than `other`.
@@ -4632,7 +4632,7 @@ _.gt(1, 3);
_.gte(value, other)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L11183 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.gte "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L11213 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.gte "See the npm package") [Ⓣ][1]
Checks if `value` is greater than or equal to `other`.
@@ -4663,7 +4663,7 @@ _.gte(1, 3);
_.isArguments(value)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L11205 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.isarguments "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L11235 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.isarguments "See the npm package") [Ⓣ][1]
Checks if `value` is likely an `arguments` object.
@@ -4690,7 +4690,7 @@ _.isArguments([1, 2, 3]);
_.isArray(value)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L11233 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.isarray "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L11263 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.isarray "See the npm package") [Ⓣ][1]
Checks if `value` is classified as an `Array` object.
@@ -4723,7 +4723,7 @@ _.isArray(_.noop);
_.isArrayBuffer(value)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L11252 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.isarraybuffer "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L11282 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.isarraybuffer "See the npm package") [Ⓣ][1]
Checks if `value` is classified as an `ArrayBuffer` object.
@@ -4750,7 +4750,7 @@ _.isArrayBuffer(new Array(2));
_.isArrayLike(value)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L11279 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.isarraylike "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L11309 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.isarraylike "See the npm package") [Ⓣ][1]
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
@@ -4785,7 +4785,7 @@ _.isArrayLike(_.noop);
_.isArrayLikeObject(value)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L11308 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.isarraylikeobject "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L11338 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.isarraylikeobject "See the npm package") [Ⓣ][1]
This method is like `_.isArrayLike` except that it also checks if `value`
is an object.
@@ -4819,7 +4819,7 @@ _.isArrayLikeObject(_.noop);
_.isBoolean(value)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L11329 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.isboolean "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L11359 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.isboolean "See the npm package") [Ⓣ][1]
Checks if `value` is classified as a boolean primitive or object.
@@ -4846,7 +4846,7 @@ _.isBoolean(null);
_.isBuffer(value)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L11351 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.isbuffer "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L11381 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.isbuffer "See the npm package") [Ⓣ][1]
Checks if `value` is a buffer.
@@ -4873,7 +4873,7 @@ _.isBuffer(new Uint8Array(2));
_.isDate(value)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L11370 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.isdate "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L11400 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.isdate "See the npm package") [Ⓣ][1]
Checks if `value` is classified as a `Date` object.
@@ -4900,7 +4900,7 @@ _.isDate('Mon April 23 2012');
_.isElement(value)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L11389 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.iselement "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L11419 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.iselement "See the npm package") [Ⓣ][1]
Checks if `value` is likely a DOM element.
@@ -4927,7 +4927,7 @@ _.isElement('');
_.isEmpty(value)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L11426 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.isempty "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L11456 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.isempty "See the npm package") [Ⓣ][1]
Checks if `value` is an empty object, collection, map, or set.
@@ -4972,7 +4972,7 @@ _.isEmpty({ 'a': 1 });
_.isEqual(value, other)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L11475 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.isequal "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L11508 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.isequal "See the npm package") [Ⓣ][1]
Performs a deep comparison between two values to determine if they are
equivalent.
@@ -5011,7 +5011,7 @@ object === other;
_.isEqualWith(value, other, [customizer])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L11511 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.isequalwith "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L11544 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.isequalwith "See the npm package") [Ⓣ][1]
This method is like `_.isEqual` except that it accepts `customizer` which
is invoked to compare values. If `customizer` returns `undefined`, comparisons
@@ -5053,7 +5053,7 @@ _.isEqualWith(array, other, customizer);
_.isError(value)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L11535 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.iserror "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L11568 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.iserror "See the npm package") [Ⓣ][1]
Checks if `value` is an `Error`, `EvalError`, `RangeError`, `ReferenceError`,
`SyntaxError`, `TypeError`, or `URIError` object.
@@ -5081,7 +5081,7 @@ _.isError(Error);
_.isFinite(value)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L11569 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.isfinite "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L11603 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.isfinite "See the npm package") [Ⓣ][1]
Checks if `value` is a finite primitive number.
@@ -5118,7 +5118,7 @@ _.isFinite('3');
_.isFunction(value)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L11590 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.isfunction "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L11624 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.isfunction "See the npm package") [Ⓣ][1]
Checks if `value` is classified as a `Function` object.
@@ -5145,7 +5145,7 @@ _.isFunction(/abc/);
_.isInteger(value)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L11623 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.isinteger "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L11660 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.isinteger "See the npm package") [Ⓣ][1]
Checks if `value` is an integer.
@@ -5182,7 +5182,7 @@ _.isInteger('3');
_.isLength(value)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L11653 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.islength "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L11690 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.islength "See the npm package") [Ⓣ][1]
Checks if `value` is a valid array-like length.
@@ -5219,7 +5219,7 @@ _.isLength('3');
_.isMap(value)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L11733 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.ismap "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L11770 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.ismap "See the npm package") [Ⓣ][1]
Checks if `value` is classified as a `Map` object.
@@ -5246,7 +5246,7 @@ _.isMap(new WeakMap);
_.isMatch(object, source)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L11763 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.ismatch "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L11800 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.ismatch "See the npm package") [Ⓣ][1]
Performs a partial deep comparison between `object` and `source` to
determine if `object` contains equivalent property values.
@@ -5286,7 +5286,7 @@ _.isMatch(object, { 'b': 1 });
_.isMatchWith(object, source, [customizer])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L11799 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.ismatchwith "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L11836 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.ismatchwith "See the npm package") [Ⓣ][1]
This method is like `_.isMatch` except that it accepts `customizer` which
is invoked to compare values. If `customizer` returns `undefined`, comparisons
@@ -5328,7 +5328,7 @@ _.isMatchWith(object, source, customizer);
_.isNaN(value)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L11832 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.isnan "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L11869 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.isnan "See the npm package") [Ⓣ][1]
Checks if `value` is `NaN`.
@@ -5367,7 +5367,7 @@ _.isNaN(undefined);
_.isNative(value)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L11865 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.isnative "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L11902 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.isnative "See the npm package") [Ⓣ][1]
Checks if `value` is a pristine native function.
@@ -5403,7 +5403,7 @@ _.isNative(_);
_.isNil(value)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L11913 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.isnil "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L11950 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.isnil "See the npm package") [Ⓣ][1]
Checks if `value` is `null` or `undefined`.
@@ -5433,7 +5433,7 @@ _.isNil(NaN);
_.isNull(value)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L11889 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.isnull "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L11926 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.isnull "See the npm package") [Ⓣ][1]
Checks if `value` is `null`.
@@ -5460,7 +5460,7 @@ _.isNull(void 0);
_.isNumber(value)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L11943 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.isnumber "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L11980 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.isnumber "See the npm package") [Ⓣ][1]
Checks if `value` is classified as a `Number` primitive or object.
@@ -5497,7 +5497,7 @@ _.isNumber('3');
_.isObject(value)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L11683 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.isobject "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L11720 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.isobject "See the npm package") [Ⓣ][1]
Checks if `value` is the
[language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
@@ -5532,7 +5532,7 @@ _.isObject(null);
_.isObjectLike(value)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L11712 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.isobjectlike "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L11749 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.isobjectlike "See the npm package") [Ⓣ][1]
Checks if `value` is object-like. A value is object-like if it's not `null`
and has a `typeof` result of "object".
@@ -5566,7 +5566,7 @@ _.isObjectLike(null);
_.isPlainObject(value)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L11976 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.isplainobject "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L12013 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.isplainobject "See the npm package") [Ⓣ][1]
Checks if `value` is a plain object, that is, an object created by the
`Object` constructor or one with a `[[Prototype]]` of `null`.
@@ -5604,7 +5604,7 @@ _.isPlainObject(Object.create(null));
_.isRegExp(value)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L12006 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.isregexp "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L12043 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.isregexp "See the npm package") [Ⓣ][1]
Checks if `value` is classified as a `RegExp` object.
@@ -5631,7 +5631,7 @@ _.isRegExp('/abc/');
_.isSafeInteger(value)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L12035 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.issafeinteger "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L12072 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.issafeinteger "See the npm package") [Ⓣ][1]
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.
@@ -5669,7 +5669,7 @@ _.isSafeInteger('3');
_.isSet(value)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L12056 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.isset "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L12093 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.isset "See the npm package") [Ⓣ][1]
Checks if `value` is classified as a `Set` object.
@@ -5696,7 +5696,7 @@ _.isSet(new WeakSet);
_.isString(value)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L12075 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.isstring "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L12112 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.isstring "See the npm package") [Ⓣ][1]
Checks if `value` is classified as a `String` primitive or object.
@@ -5723,7 +5723,7 @@ _.isString(1);
_.isSymbol(value)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L12097 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.issymbol "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L12134 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.issymbol "See the npm package") [Ⓣ][1]
Checks if `value` is classified as a `Symbol` primitive or object.
@@ -5750,7 +5750,7 @@ _.isSymbol('abc');
_.isTypedArray(value)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L12119 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.istypedarray "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L12156 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.istypedarray "See the npm package") [Ⓣ][1]
Checks if `value` is classified as a typed array.
@@ -5777,7 +5777,7 @@ _.isTypedArray([]);
_.isUndefined(value)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L12138 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.isundefined "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L12175 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.isundefined "See the npm package") [Ⓣ][1]
Checks if `value` is `undefined`.
@@ -5804,7 +5804,7 @@ _.isUndefined(null);
_.isWeakMap(value)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L12159 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.isweakmap "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L12196 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.isweakmap "See the npm package") [Ⓣ][1]
Checks if `value` is classified as a `WeakMap` object.
@@ -5831,7 +5831,7 @@ _.isWeakMap(new Map);
_.isWeakSet(value)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L12180 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.isweakset "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L12217 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.isweakset "See the npm package") [Ⓣ][1]
Checks if `value` is classified as a `WeakSet` object.
@@ -5858,7 +5858,7 @@ _.isWeakSet(new Set);
_.lt(value, other)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L12207 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.lt "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L12244 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.lt "See the npm package") [Ⓣ][1]
Checks if `value` is less than `other`.
@@ -5889,7 +5889,7 @@ _.lt(3, 1);
_.lte(value, other)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L12232 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.lte "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L12269 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.lte "See the npm package") [Ⓣ][1]
Checks if `value` is less than or equal to `other`.
@@ -5920,7 +5920,7 @@ _.lte(3, 1);
_.toArray(value)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L12259 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.toarray "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L12296 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.toarray "See the npm package") [Ⓣ][1]
Converts `value` to an array.
@@ -5953,7 +5953,7 @@ _.toArray(null);
_.toFinite(value)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L12298 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.tofinite "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L12335 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.tofinite "See the npm package") [Ⓣ][1]
Converts `value` to a finite number.
@@ -5986,7 +5986,7 @@ _.toFinite('3.2');
_.toInteger(value)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L12336 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.tointeger "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L12373 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.tointeger "See the npm package") [Ⓣ][1]
Converts `value` to an integer.
@@ -6023,7 +6023,7 @@ _.toInteger('3.2');
_.toLength(value)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L12370 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.tolength "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L12407 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.tolength "See the npm package") [Ⓣ][1]
Converts `value` to an integer suitable for use as the length of an
array-like object.
@@ -6061,7 +6061,7 @@ _.toLength('3.2');
_.toNumber(value)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L12397 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.tonumber "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L12434 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.tonumber "See the npm package") [Ⓣ][1]
Converts `value` to a number.
@@ -6094,7 +6094,7 @@ _.toNumber('3.2');
_.toPlainObject(value)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L12442 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.toplainobject "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L12479 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.toplainobject "See the npm package") [Ⓣ][1]
Converts `value` to a plain object flattening inherited enumerable string
keyed properties of `value` to own properties of the plain object.
@@ -6128,7 +6128,7 @@ _.assign({ 'a': 1 }, _.toPlainObject(new Foo));
_.toSafeInteger(value)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L12470 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.tosafeinteger "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L12507 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.tosafeinteger "See the npm package") [Ⓣ][1]
Converts `value` to a safe integer. A safe integer can be compared and
represented correctly.
@@ -6162,7 +6162,7 @@ _.toSafeInteger('3.2');
_.toString(value)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L12495 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.tostring "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L12532 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.tostring "See the npm package") [Ⓣ][1]
Converts `value` to a string. An empty string is returned for `null`
and `undefined` values. The sign of `-0` is preserved.
@@ -6199,7 +6199,7 @@ _.toString([1, 2, 3]);
_.add(augend, addend)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L16062 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.add "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L16099 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.add "See the npm package") [Ⓣ][1]
Adds two numbers.
@@ -6224,7 +6224,7 @@ _.add(6, 4);
_.ceil(number, [precision=0])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L16087 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.ceil "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L16124 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.ceil "See the npm package") [Ⓣ][1]
Computes `number` rounded up to `precision`.
@@ -6255,7 +6255,7 @@ _.ceil(6040, -2);
_.divide(dividend, divisor)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L16104 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.divide "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L16141 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.divide "See the npm package") [Ⓣ][1]
Divide two numbers.
@@ -6280,7 +6280,7 @@ _.divide(6, 4);
_.floor(number, [precision=0])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L16129 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.floor "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L16166 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.floor "See the npm package") [Ⓣ][1]
Computes `number` rounded down to `precision`.
@@ -6311,7 +6311,7 @@ _.floor(4060, -2);
_.max(array)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L16149 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.max "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L16186 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.max "See the npm package") [Ⓣ][1]
Computes the maximum value of `array`. If `array` is empty or falsey,
`undefined` is returned.
@@ -6339,7 +6339,7 @@ _.max([]);
_.maxBy(array, [iteratee=_.identity])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L16178 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.maxby "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L16215 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.maxby "See the npm package") [Ⓣ][1]
This method is like `_.max` except that it accepts `iteratee` which is
invoked for each element in `array` to generate the criterion by which
@@ -6372,7 +6372,7 @@ _.maxBy(objects, 'n');
_.mean(array)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L16198 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.mean "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L16235 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.mean "See the npm package") [Ⓣ][1]
Computes the mean of the values in `array`.
@@ -6396,7 +6396,7 @@ _.mean([4, 2, 8, 6]);
_.meanBy(array, [iteratee=_.identity])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L16225 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.meanby "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L16262 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.meanby "See the npm package") [Ⓣ][1]
This method is like `_.mean` except that it accepts `iteratee` which is
invoked for each element in `array` to generate the value to be averaged.
@@ -6429,7 +6429,7 @@ _.meanBy(objects, 'n');
_.min(array)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L16247 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.min "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L16284 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.min "See the npm package") [Ⓣ][1]
Computes the minimum value of `array`. If `array` is empty or falsey,
`undefined` is returned.
@@ -6457,7 +6457,7 @@ _.min([]);
_.minBy(array, [iteratee=_.identity])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L16276 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.minby "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L16313 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.minby "See the npm package") [Ⓣ][1]
This method is like `_.min` except that it accepts `iteratee` which is
invoked for each element in `array` to generate the criterion by which
@@ -6490,7 +6490,7 @@ _.minBy(objects, 'n');
_.multiply(multiplier, multiplicand)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L16297 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.multiply "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L16334 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.multiply "See the npm package") [Ⓣ][1]
Multiply two numbers.
@@ -6515,7 +6515,7 @@ _.multiply(6, 4);
_.round(number, [precision=0])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L16322 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.round "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L16359 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.round "See the npm package") [Ⓣ][1]
Computes `number` rounded to `precision`.
@@ -6546,7 +6546,7 @@ _.round(4060, -2);
_.subtract(minuend, subtrahend)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L16339 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.subtract "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L16376 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.subtract "See the npm package") [Ⓣ][1]
Subtract two numbers.
@@ -6571,7 +6571,7 @@ _.subtract(6, 4);
_.sum(array)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L16357 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.sum "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L16394 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.sum "See the npm package") [Ⓣ][1]
Computes the sum of the values in `array`.
@@ -6595,7 +6595,7 @@ _.sum([4, 2, 8, 6]);
_.sumBy(array, [iteratee=_.identity])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L16386 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.sumby "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L16423 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.sumby "See the npm package") [Ⓣ][1]
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.
@@ -6634,7 +6634,7 @@ _.sumBy(objects, 'n');
_.clamp(number, [lower], upper)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L13859 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.clamp "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L13896 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.clamp "See the npm package") [Ⓣ][1]
Clamps `number` within the inclusive `lower` and `upper` bounds.
@@ -6663,7 +6663,7 @@ _.clamp(10, -5, 5);
_.inRange(number, [start=0], end)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L13913 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.inrange "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L13950 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.inrange "See the npm package") [Ⓣ][1]
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`.
@@ -6710,7 +6710,7 @@ _.inRange(-3, -2, -6);
_.random([lower=0], [upper=1], [floating])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L13956 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.random "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L13993 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.random "See the npm package") [Ⓣ][1]
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
@@ -6758,7 +6758,7 @@ _.random(1.2, 5.2);
_.assign(object, [sources])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L12533 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.assign "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L12570 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.assign "See the npm package") [Ⓣ][1]
Assigns own enumerable string keyed properties of source objects to the
destination object. Source objects are applied from left to right.
@@ -6800,7 +6800,7 @@ _.assign({ 'a': 0 }, new Foo, new Bar);
_.assignIn(object, [sources])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L12576 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.assignin "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L12613 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.assignin "See the npm package") [Ⓣ][1]
This method is like `_.assign` except that it iterates over own and
inherited source properties.
@@ -6843,7 +6843,7 @@ _.assignIn({ 'a': 0 }, new Foo, new Bar);
_.assignInWith(object, sources, [customizer])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L12609 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.assigninwith "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L12646 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.assigninwith "See the npm package") [Ⓣ][1]
This method is like `_.assignIn` except that it accepts `customizer`
which is invoked to produce the assigned values. If `customizer` returns
@@ -6884,7 +6884,7 @@ defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
_.assignWith(object, sources, [customizer])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L12641 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.assignwith "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L12678 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.assignwith "See the npm package") [Ⓣ][1]
This method is like `_.assign` except that it accepts `customizer`
which is invoked to produce the assigned values. If `customizer` returns
@@ -6922,7 +6922,7 @@ defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
_.at(object, [paths])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L12662 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.at "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L12699 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.at "See the npm package") [Ⓣ][1]
Creates an array of values corresponding to `paths` of `object`.
@@ -6949,7 +6949,7 @@ _.at(object, ['a[0].b.c', 'a[1]']);
_.create(prototype, [properties])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L12698 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.create "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L12735 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.create "See the npm package") [Ⓣ][1]
Creates an object that inherits from the `prototype` object. If a
`properties` object is given, its own enumerable string keyed properties
@@ -6993,7 +6993,7 @@ circle instanceof Shape;
_.defaults(object, [sources])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L12724 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.defaults "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L12761 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.defaults "See the npm package") [Ⓣ][1]
Assigns own and inherited enumerable string keyed properties of source
objects to the destination object for all destination properties that
@@ -7024,7 +7024,7 @@ _.defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
_.defaultsDeep(object, [sources])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L12748 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.defaultsdeep "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L12785 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.defaultsdeep "See the npm package") [Ⓣ][1]
This method is like `_.defaults` except that it recursively assigns
default properties.
@@ -7053,7 +7053,7 @@ _.defaultsDeep({ 'a': { 'b': 2 } }, { 'a': { 'b': 1, 'c': 3 } });
_.findKey(object, [predicate=_.identity])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L12788 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.findkey "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L12825 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.findkey "See the npm package") [Ⓣ][1]
This method is like `_.find` except that it returns the key of the first
element `predicate` returns truthy for instead of the element itself.
@@ -7097,7 +7097,7 @@ _.findKey(users, 'active');
_.findLastKey(object, [predicate=_.identity])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L12827 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.findlastkey "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L12864 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.findlastkey "See the npm package") [Ⓣ][1]
This method is like `_.findKey` except that it iterates over elements of
a collection in the opposite order.
@@ -7141,7 +7141,7 @@ _.findLastKey(users, 'active');
_.forIn(object, [iteratee=_.identity])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L12859 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.forin "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L12896 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.forin "See the npm package") [Ⓣ][1]
Iterates over own and inherited enumerable string keyed properties of an
object and invokes `iteratee` for each property. The iteratee is invoked
@@ -7178,7 +7178,7 @@ _.forIn(new Foo, function(value, key) {
_.forInRight(object, [iteratee=_.identity])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L12891 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.forinright "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L12928 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.forinright "See the npm package") [Ⓣ][1]
This method is like `_.forIn` except that it iterates over properties of
`object` in the opposite order.
@@ -7213,7 +7213,7 @@ _.forInRight(new Foo, function(value, key) {
_.forOwn(object, [iteratee=_.identity])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L12925 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.forown "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L12962 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.forown "See the npm package") [Ⓣ][1]
Iterates over own enumerable string keyed properties of an object and
invokes `iteratee` for each property. The iteratee is invoked with three
@@ -7250,7 +7250,7 @@ _.forOwn(new Foo, function(value, key) {
_.forOwnRight(object, [iteratee=_.identity])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L12955 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.forownright "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L12992 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.forownright "See the npm package") [Ⓣ][1]
This method is like `_.forOwn` except that it iterates over properties of
`object` in the opposite order.
@@ -7285,7 +7285,7 @@ _.forOwnRight(new Foo, function(value, key) {
_.functions(object)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L12982 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.functions "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L13019 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.functions "See the npm package") [Ⓣ][1]
Creates an array of function property names from own enumerable properties
of `object`.
@@ -7317,7 +7317,7 @@ _.functions(new Foo);
_.functionsIn(object)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L13009 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.functionsin "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L13046 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.functionsin "See the npm package") [Ⓣ][1]
Creates an array of function property names from own and inherited
enumerable properties of `object`.
@@ -7349,7 +7349,7 @@ _.functionsIn(new Foo);
_.get(object, path, [defaultValue])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L13038 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.get "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L13075 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.get "See the npm package") [Ⓣ][1]
Gets the value at `path` of `object`. If the resolved value is
`undefined`, the `defaultValue` is returned in its place.
@@ -7384,7 +7384,7 @@ _.get(object, 'a.b.c', 'default');
_.has(object, path)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L13070 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.has "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L13107 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.has "See the npm package") [Ⓣ][1]
Checks if `path` is a direct property of `object`.
@@ -7421,7 +7421,7 @@ _.has(other, 'a');
_.hasIn(object, path)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L13100 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.hasin "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L13137 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.hasin "See the npm package") [Ⓣ][1]
Checks if `path` is a direct or inherited property of `object`.
@@ -7457,7 +7457,7 @@ _.hasIn(object, 'b');
_.invert(object)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L13122 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.invert "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L13159 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.invert "See the npm package") [Ⓣ][1]
Creates an object composed of the inverted keys and values of `object`.
If `object` contains duplicate values, subsequent values overwrite
@@ -7485,7 +7485,7 @@ _.invert(object);
_.invertBy(object, [iteratee=_.identity])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L13152 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.invertby "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L13189 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.invertby "See the npm package") [Ⓣ][1]
This method is like `_.invert` except that the inverted object is generated
from the results of running each element of `object` thru `iteratee`. The
@@ -7521,7 +7521,7 @@ _.invertBy(object, function(value) {
_.invoke(object, path, [args])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L13178 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.invoke "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L13215 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.invoke "See the npm package") [Ⓣ][1]
Invokes the method at `path` of `object`.
@@ -7549,7 +7549,7 @@ _.invoke(object, 'a[0].b.c.slice', 1, 3);
_.keys(object)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L13208 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.keys "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L13245 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.keys "See the npm package") [Ⓣ][1]
Creates an array of the own enumerable property names of `object`.
@@ -7588,7 +7588,7 @@ _.keys('hi');
_.keysIn(object)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L13235 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.keysin "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L13272 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.keysin "See the npm package") [Ⓣ][1]
Creates an array of the own and inherited enumerable property names of `object`.
@@ -7622,7 +7622,7 @@ _.keysIn(new Foo);
_.mapKeys(object, [iteratee=_.identity])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L13260 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.mapkeys "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L13297 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.mapkeys "See the npm package") [Ⓣ][1]
The opposite of `_.mapValues`; this method creates an object with the
same values as `object` and keys generated by running each own enumerable
@@ -7652,7 +7652,7 @@ _.mapKeys({ 'a': 1, 'b': 2 }, function(value, key) {
_.mapValues(object, [iteratee=_.identity])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L13298 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.mapvalues "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L13335 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.mapvalues "See the npm package") [Ⓣ][1]
Creates an object with the same keys as `object` and values generated
by running each own enumerable string keyed property of `object` thru
@@ -7689,7 +7689,7 @@ _.mapValues(users, 'age');
_.merge(object, [sources])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L13339 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.merge "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L13376 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.merge "See the npm package") [Ⓣ][1]
This method is like `_.assign` except that it recursively merges own and
inherited enumerable string keyed properties of source objects into the
@@ -7731,7 +7731,7 @@ _.merge(object, other);
_.mergeWith(object, sources, customizer)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L13374 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.mergewith "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L13411 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.mergewith "See the npm package") [Ⓣ][1]
This method is like `_.merge` except that it accepts `customizer` which
is invoked to produce the merged values of the destination and source
@@ -7773,7 +7773,7 @@ _.mergeWith(object, other, customizer);
_.omit(object, [props])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L13397 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.omit "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L13434 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.omit "See the npm package") [Ⓣ][1]
The opposite of `_.pick`; this method creates an object composed of the
own and inherited enumerable string keyed properties of `object` that are
@@ -7802,7 +7802,7 @@ _.omit(object, ['a', 'c']);
_.omitBy(object, [predicate=_.identity])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L13425 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.omitby "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L13462 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.omitby "See the npm package") [Ⓣ][1]
The opposite of `_.pickBy`; this method creates an object composed of
the own and inherited enumerable string keyed properties of `object` that
@@ -7832,7 +7832,7 @@ _.omitBy(object, _.isNumber);
_.pick(object, [props])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L13446 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.pick "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L13483 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.pick "See the npm package") [Ⓣ][1]
Creates an object composed of the picked `object` properties.
@@ -7859,7 +7859,7 @@ _.pick(object, ['a', 'c']);
_.pickBy(object, [predicate=_.identity])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L13468 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.pickby "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L13505 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.pickby "See the npm package") [Ⓣ][1]
Creates an object composed of the `object` properties `predicate` returns
truthy for. The predicate is invoked with two arguments: *(value, key)*.
@@ -7887,7 +7887,7 @@ _.pickBy(object, _.isNumber);
_.result(object, path, [defaultValue])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L13501 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.result "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L13538 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.result "See the npm package") [Ⓣ][1]
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
@@ -7926,7 +7926,7 @@ _.result(object, 'a[0].b.c3', _.constant('default'));
_.set(object, path, value)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L13551 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.set "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L13588 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.set "See the npm package") [Ⓣ][1]
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
@@ -7965,7 +7965,7 @@ console.log(object.x[0].y.z);
_.setWith(object, path, value, [customizer])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L13579 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.setwith "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L13616 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.setwith "See the npm package") [Ⓣ][1]
This method is like `_.set` except that it accepts `customizer` which is
invoked to produce the objects of `path`. If `customizer` returns `undefined`
@@ -8000,7 +8000,7 @@ _.setWith(object, '[0][1]', 'a', Object);
_.toPairs(object)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L13608 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.topairs "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L13645 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.topairs "See the npm package") [Ⓣ][1]
Creates an array of own enumerable string keyed-value pairs for `object`
which can be consumed by `_.fromPairs`. If `object` is a map or set, its
@@ -8036,7 +8036,7 @@ _.toPairs(new Foo);
_.toPairsIn(object)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L13634 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.topairsin "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L13671 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.topairsin "See the npm package") [Ⓣ][1]
Creates an array of own and inherited enumerable string keyed-value pairs
for `object` which can be consumed by `_.fromPairs`. If `object` is a map
@@ -8072,7 +8072,7 @@ _.toPairsIn(new Foo);
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L13666 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.transform "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L13703 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.transform "See the npm package") [Ⓣ][1]
An alternative to `_.reduce`; this method transforms `object` to a new
`accumulator` object which is the result of running each of its own
@@ -8112,7 +8112,7 @@ _.transform({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {
_.unset(object, path)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L13716 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.unset "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L13753 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.unset "See the npm package") [Ⓣ][1]
Removes the property at `path` of `object`.
@@ -8150,7 +8150,7 @@ console.log(object);
_.update(object, path, updater)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L13747 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.update "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L13784 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.update "See the npm package") [Ⓣ][1]
This method is like `_.set` except that accepts `updater` to produce the
value to set. Use `_.updateWith` to customize `path` creation. The `updater`
@@ -8188,7 +8188,7 @@ console.log(object.x[0].y.z);
_.updateWith(object, path, updater, [customizer])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L13775 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.updatewith "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L13812 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.updatewith "See the npm package") [Ⓣ][1]
This method is like `_.update` except that it accepts `customizer` which is
invoked to produce the objects of `path`. If `customizer` returns `undefined`
@@ -8223,7 +8223,7 @@ _.updateWith(object, '[0][1]', _.constant('a'), Object);
_.values(object)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L13806 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.values "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L13843 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.values "See the npm package") [Ⓣ][1]
Creates an array of the own enumerable string keyed property values of `object`.
@@ -8260,7 +8260,7 @@ _.values('hi');
_.valuesIn(object)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L13834 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.valuesin "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L13871 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.valuesin "See the npm package") [Ⓣ][1]
Creates an array of the own and inherited enumerable string keyed property
values of `object`.
@@ -8301,7 +8301,7 @@ _.valuesIn(new Foo);
_(value)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L1653 "View in source") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L1662 "View in source") [Ⓣ][1]
Creates a `lodash` object which wraps `value` to enable implicit method
chain sequences. Methods that operate on and return arrays, collections,
@@ -8437,7 +8437,7 @@ _.isArray(squares.value());
_.chain(value)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L8676 "View in source") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L8715 "View in source") [Ⓣ][1]
Creates a `lodash` wrapper instance that wraps `value` with explicit method
chain sequences enabled. The result of such sequences must be unwrapped
@@ -8476,7 +8476,7 @@ var youngest = _
_.tap(value, interceptor)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L8705 "View in source") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L8744 "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
@@ -8509,7 +8509,7 @@ _([1, 2, 3])
_.thru(value, interceptor)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L8733 "View in source") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L8772 "View in source") [Ⓣ][1]
This method is like `_.tap` except that it returns the result of `interceptor`.
The purpose of this method is to "pass thru" values replacing intermediate
@@ -8542,7 +8542,7 @@ _(' abc ')
_.prototype[Symbol.iterator]()
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L8888 "View in source") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L8927 "View in source") [Ⓣ][1]
Enables the wrapper to be iterable.
@@ -8568,7 +8568,7 @@ Array.from(wrapped);
_.prototype.at([paths])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L8753 "View in source") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L8792 "View in source") [Ⓣ][1]
This method is the wrapper version of `_.at`.
@@ -8594,7 +8594,7 @@ _(object).at(['a[0].b.c', 'a[1]']).value();
_.prototype.chain()
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L8804 "View in source") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L8843 "View in source") [Ⓣ][1]
Creates a `lodash` wrapper instance with explicit method chain sequences enabled.
@@ -8629,7 +8629,7 @@ _(users)
_.prototype.commit()
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L8834 "View in source") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L8873 "View in source") [Ⓣ][1]
Executes the chain sequence and returns the wrapped result.
@@ -8663,7 +8663,7 @@ console.log(array);
_.prototype.next()
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L8860 "View in source") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L8899 "View in source") [Ⓣ][1]
Gets the next value on a wrapped object following the
[iterator protocol](https://mdn.io/iteration_protocols#iterator).
@@ -8693,7 +8693,7 @@ wrapped.next();
_.prototype.plant(value)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L8916 "View in source") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L8955 "View in source") [Ⓣ][1]
Creates a clone of the chain sequence planting `value` as the wrapped value.
@@ -8727,7 +8727,7 @@ wrapped.value();
_.prototype.reverse()
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L8956 "View in source") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L8995 "View in source") [Ⓣ][1]
This method is the wrapper version of `_.reverse`.
@@ -8756,7 +8756,7 @@ console.log(array);
_.prototype.value()
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L8988 "View in source") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L9027 "View in source") [Ⓣ][1]
Executes the chain sequence to resolve the unwrapped value.
@@ -8786,7 +8786,7 @@ _([1, 2, 3]).value();
_.camelCase([string=''])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L14017 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.camelcase "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L14054 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.camelcase "See the npm package") [Ⓣ][1]
Converts `string` to [camel case](https://en.wikipedia.org/wiki/CamelCase).
@@ -8816,7 +8816,7 @@ _.camelCase('__FOO_BAR__');
_.capitalize([string=''])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L14037 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.capitalize "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L14074 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.capitalize "See the npm package") [Ⓣ][1]
Converts the first character of `string` to upper case and the remaining
to lower case.
@@ -8841,7 +8841,7 @@ _.capitalize('FRED');
_.deburr([string=''])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L14059 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.deburr "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L14096 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.deburr "See the npm package") [Ⓣ][1]
Deburrs `string` by converting
[Latin-1 Supplement](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table)
@@ -8869,7 +8869,7 @@ _.deburr('déjà vu');
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L14087 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.endswith "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L14124 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.endswith "See the npm package") [Ⓣ][1]
Checks if `string` ends with the given target string.
@@ -8901,7 +8901,7 @@ _.endsWith('abc', 'b', 2);
_.escape([string=''])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L14129 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.escape "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L14166 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.escape "See the npm package") [Ⓣ][1]
Converts the characters "&", "<", ">", '"', and "'" in `string` to their
corresponding HTML entities.
@@ -8942,7 +8942,7 @@ _.escape('fred, barney, & pebbles');
_.escapeRegExp([string=''])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L14151 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.escaperegexp "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L14188 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.escaperegexp "See the npm package") [Ⓣ][1]
Escapes the `RegExp` special characters "^", "$", "\", ".", "*", "+",
"?", "(", ")", "[", "]", "{", "}", and "|" in `string`.
@@ -8967,7 +8967,7 @@ _.escapeRegExp('[lodash](https://lodash.com/)');
_.kebabCase([string=''])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L14179 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.kebabcase "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L14216 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.kebabcase "See the npm package") [Ⓣ][1]
Converts `string` to
[kebab case](https://en.wikipedia.org/wiki/Letter_case#Special_case_styles).
@@ -8998,7 +8998,7 @@ _.kebabCase('__FOO_BAR__');
_.lowerCase([string=''])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L14203 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.lowercase "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L14240 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.lowercase "See the npm package") [Ⓣ][1]
Converts `string`, as space separated words, to lower case.
@@ -9028,7 +9028,7 @@ _.lowerCase('__FOO_BAR__');
_.lowerFirst([string=''])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L14224 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.lowerfirst "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L14261 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.lowerfirst "See the npm package") [Ⓣ][1]
Converts the first character of `string` to lower case.
@@ -9055,7 +9055,7 @@ _.lowerFirst('FRED');
_.pad([string=''], [length=0], [chars=' '])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L14249 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.pad "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L14286 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.pad "See the npm package") [Ⓣ][1]
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`.
@@ -9088,7 +9088,7 @@ _.pad('abc', 3);
_.padEnd([string=''], [length=0], [chars=' '])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L14288 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.padend "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L14325 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.padend "See the npm package") [Ⓣ][1]
Pads `string` on the right side if it's shorter than `length`. Padding
characters are truncated if they exceed `length`.
@@ -9121,7 +9121,7 @@ _.padEnd('abc', 3);
_.padStart([string=''], [length=0], [chars=' '])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L14321 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.padstart "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L14358 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.padstart "See the npm package") [Ⓣ][1]
Pads `string` on the left side if it's shorter than `length`. Padding
characters are truncated if they exceed `length`.
@@ -9154,7 +9154,7 @@ _.padStart('abc', 3);
_.parseInt(string, [radix=10])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L14355 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.parseint "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L14392 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.parseint "See the npm package") [Ⓣ][1]
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
@@ -9188,7 +9188,7 @@ _.map(['6', '08', '10'], _.parseInt);
_.repeat([string=''], [n=1])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L14386 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.repeat "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L14423 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.repeat "See the npm package") [Ⓣ][1]
Repeats the given string `n` times.
@@ -9219,7 +9219,7 @@ _.repeat('abc', 0);
_.replace([string=''], pattern, replacement)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L14414 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.replace "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L14451 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.replace "See the npm package") [Ⓣ][1]
Replaces matches for `pattern` in `string` with `replacement`.
@@ -9249,7 +9249,7 @@ _.replace('Hi Fred', 'Fred', 'Barney');
_.snakeCase([string=''])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L14442 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.snakecase "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L14479 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.snakecase "See the npm package") [Ⓣ][1]
Converts `string` to
[snake case](https://en.wikipedia.org/wiki/Snake_case).
@@ -9280,7 +9280,7 @@ _.snakeCase('--FOO-BAR--');
_.split([string=''], separator, [limit])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L14465 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.split "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L14502 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.split "See the npm package") [Ⓣ][1]
Splits `string` by `separator`.
@@ -9310,7 +9310,7 @@ _.split('a-b-c', '-', 2);
_.startCase([string=''])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L14507 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.startcase "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L14544 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.startcase "See the npm package") [Ⓣ][1]
Converts `string` to
[start case](https://en.wikipedia.org/wiki/Letter_case#Stylistic_or_specialised_usage).
@@ -9341,7 +9341,7 @@ _.startCase('__FOO_BAR__');
_.startsWith([string=''], [target], [position=0])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L14534 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.startswith "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L14571 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.startswith "See the npm package") [Ⓣ][1]
Checks if `string` starts with the given target string.
@@ -9373,7 +9373,7 @@ _.startsWith('abc', 'b', 1);
_.template([string=''], [options={}])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L14645 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.template "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L14682 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.template "See the npm package") [Ⓣ][1]
Creates a compiled template function that can interpolate data properties
in "interpolate" delimiters, HTML-escape interpolated data properties in
@@ -9483,7 +9483,7 @@ fs.writeFileSync(path.join(process.cwd(), 'jst.js'), '\
_.toLower([string=''])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L14774 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.tolower "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L14811 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.tolower "See the npm package") [Ⓣ][1]
Converts `string`, as a whole, to lower case just like
[String#toLowerCase](https://mdn.io/toLowerCase).
@@ -9514,7 +9514,7 @@ _.toLower('__FOO_BAR__');
_.toUpper([string=''])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L14799 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.toupper "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L14836 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.toupper "See the npm package") [Ⓣ][1]
Converts `string`, as a whole, to upper case just like
[String#toUpperCase](https://mdn.io/toUpperCase).
@@ -9545,7 +9545,7 @@ _.toUpper('__foo_bar__');
_.trim([string=''], [chars=whitespace])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L14825 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.trim "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L14862 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.trim "See the npm package") [Ⓣ][1]
Removes leading and trailing whitespace or specified characters from `string`.
@@ -9576,7 +9576,7 @@ _.map([' foo ', ' bar '], _.trim);
_.trimEnd([string=''], [chars=whitespace])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L14860 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.trimend "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L14897 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.trimend "See the npm package") [Ⓣ][1]
Removes trailing whitespace or specified characters from `string`.
@@ -9604,7 +9604,7 @@ _.trimEnd('-_-abc-_-', '_-');
_.trimStart([string=''], [chars=whitespace])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L14893 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.trimstart "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L14930 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.trimstart "See the npm package") [Ⓣ][1]
Removes leading whitespace or specified characters from `string`.
@@ -9632,7 +9632,7 @@ _.trimStart('-_-abc-_-', '_-');
_.truncate([string=''], [options={}])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L14944 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.truncate "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L14981 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.truncate "See the npm package") [Ⓣ][1]
Truncates `string` if it's longer than the given maximum string length.
The last characters of the truncated string are replaced with the omission
@@ -9679,7 +9679,7 @@ _.truncate('hi-diddly-ho there, neighborino', {
_.unescape([string=''])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L15019 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.unescape "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L15056 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.unescape "See the npm package") [Ⓣ][1]
The inverse of `_.escape`; this method converts the HTML entities
`&`, `<`, `>`, `"`, and `'` in `string` to
@@ -9709,7 +9709,7 @@ _.unescape('fred, barney, & pebbles');
_.upperCase([string=''])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L15046 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.uppercase "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L15083 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.uppercase "See the npm package") [Ⓣ][1]
Converts `string`, as space separated words, to upper case.
@@ -9739,7 +9739,7 @@ _.upperCase('__foo_bar__');
_.upperFirst([string=''])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L15067 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.upperfirst "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L15104 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.upperfirst "See the npm package") [Ⓣ][1]
Converts the first character of `string` to upper case.
@@ -9766,7 +9766,7 @@ _.upperFirst('FRED');
_.words([string=''], [pattern])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L15088 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.words "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L15125 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.words "See the npm package") [Ⓣ][1]
Splits `string` into an array of its words.
@@ -9800,7 +9800,7 @@ _.words('fred, barney, & pebbles', /[^, ]+/g);
_.attempt(func, [args])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L15122 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.attempt "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L15159 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.attempt "See the npm package") [Ⓣ][1]
Attempts to invoke `func`, returning either the result or the caught error
object. Any additional arguments are provided to `func` when it's invoked.
@@ -9832,7 +9832,7 @@ if (_.isError(elements)) {
_.bindAll(object, methodNames)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L15156 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.bindall "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L15193 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.bindall "See the npm package") [Ⓣ][1]
Binds methods of an object to the object itself, overwriting the existing
method.
@@ -9869,7 +9869,7 @@ jQuery(element).on('click', view.click);
_.cond(pairs)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L15193 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.cond "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L15230 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.cond "See the npm package") [Ⓣ][1]
Creates a function that iterates over `pairs` and invokes the corresponding
function of the first predicate to return truthy. The predicate-function
@@ -9908,7 +9908,7 @@ func({ 'a': '1', 'b': '2' });
_.conforms(source)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L15239 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.conforms "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L15276 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.conforms "See the npm package") [Ⓣ][1]
Creates a function that invokes the predicate properties of `source` with
the corresponding property values of a given object, returning `true` if
@@ -9943,7 +9943,7 @@ _.filter(objects, _.conforms({ 'b': function(n) { return n > 1; } }));
_.constant(value)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L15262 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.constant "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L15299 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.constant "See the npm package") [Ⓣ][1]
Creates a function that returns `value`.
@@ -9972,7 +9972,7 @@ console.log(objects[0] === objects[1]);
_.defaultTo(value, defaultValue)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L15288 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.defaultto "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L15325 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.defaultto "See the npm package") [Ⓣ][1]
Checks `value` to determine whether a default value should be returned in
its place. The `defaultValue` is returned if `value` is `NaN`, `null`,
@@ -10002,7 +10002,7 @@ _.defaultTo(undefined, 10);
_.flow([funcs])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L15314 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.flow "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L15351 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.flow "See the npm package") [Ⓣ][1]
Creates a function that returns the result of invoking the given functions
with the `this` binding of the created function, where each successive
@@ -10033,7 +10033,7 @@ addSquare(1, 2);
_.flowRight([funcs])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L15337 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.flowright "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L15374 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.flowright "See the npm package") [Ⓣ][1]
This method is like `_.flow` except that it creates a function that
invokes the given functions from right to left.
@@ -10063,7 +10063,7 @@ addSquare(1, 2);
_.identity(value)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L15355 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.identity "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L15392 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.identity "See the npm package") [Ⓣ][1]
This method returns the first argument it receives.
@@ -10089,7 +10089,7 @@ console.log(_.identity(object) === object);
_.iteratee([func=_.identity])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L15401 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.iteratee "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L15438 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.iteratee "See the npm package") [Ⓣ][1]
Creates a function that invokes `func` with the arguments of the created
function. If `func` is a property name, the created function returns the
@@ -10141,7 +10141,7 @@ _.filter(['abc', 'def'], /ef/);
_.matches(source)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L15433 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.matches "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L15470 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.matches "See the npm package") [Ⓣ][1]
Creates a function that performs a partial deep comparison between a given
object and `source`, returning `true` if the given object has equivalent
@@ -10181,7 +10181,7 @@ _.filter(objects, _.matches({ 'a': 4, 'c': 6 }));
_.matchesProperty(path, srcValue)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L15463 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.matchesproperty "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L15500 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.matchesproperty "See the npm package") [Ⓣ][1]
Creates a function that performs a partial deep comparison between the
value at `path` of a given object to `srcValue`, returning `true` if the
@@ -10218,7 +10218,7 @@ _.find(objects, _.matchesProperty('a', 4));
_.method(path, [args])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L15491 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.method "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L15528 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.method "See the npm package") [Ⓣ][1]
Creates a function that invokes the method at `path` of a given object.
Any additional arguments are provided to the invoked method.
@@ -10252,7 +10252,7 @@ _.map(objects, _.method(['a', 'b']));
_.methodOf(object, [args])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L15520 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.methodof "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L15557 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.methodof "See the npm package") [Ⓣ][1]
The opposite of `_.method`; this method creates a function that invokes
the method at a given path of `object`. Any additional arguments are
@@ -10285,7 +10285,7 @@ _.map([['a', '2'], ['c', '0']], _.methodOf(object));
_.mixin([object=lodash], source, [options={}])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L15562 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.mixin "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L15599 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.mixin "See the npm package") [Ⓣ][1]
Adds all own enumerable string keyed function properties of a source
object to the destination object. If `object` is a function, then methods
@@ -10332,7 +10332,7 @@ _('fred').vowels();
_.noConflict()
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L15611 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.noconflict "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L15648 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.noconflict "See the npm package") [Ⓣ][1]
Reverts the `_` variable to its previous value and returns a reference to
the `lodash` function.
@@ -10353,7 +10353,7 @@ var lodash = _.noConflict();
_.noop()
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L15630 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.noop "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L15667 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.noop "See the npm package") [Ⓣ][1]
This method returns `undefined`.
@@ -10371,7 +10371,7 @@ _.times(2, _.noop);
_.nthArg([n=0])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L15654 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.ntharg "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L15691 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.ntharg "See the npm package") [Ⓣ][1]
Creates a function that gets the argument at index `n`. If `n` is negative,
the nth argument from the end is returned.
@@ -10401,7 +10401,7 @@ func('a', 'b', 'c', 'd');
_.over([iteratees=[_.identity]])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L15679 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.over "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L15716 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.over "See the npm package") [Ⓣ][1]
Creates a function that invokes `iteratees` with the arguments it receives
and returns their results.
@@ -10428,7 +10428,7 @@ func(1, 2, 3, 4);
_.overEvery([predicates=[_.identity]])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L15705 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.overevery "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L15742 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.overevery "See the npm package") [Ⓣ][1]
Creates a function that checks if **all** of the `predicates` return
truthy when invoked with the arguments it receives.
@@ -10461,7 +10461,7 @@ func(NaN);
_.overSome([predicates=[_.identity]])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L15731 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.oversome "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L15768 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.oversome "See the npm package") [Ⓣ][1]
Creates a function that checks if **any** of the `predicates` return
truthy when invoked with the arguments it receives.
@@ -10494,7 +10494,7 @@ func(NaN);
_.property(path)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L15755 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.property "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L15792 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.property "See the npm package") [Ⓣ][1]
Creates a function that returns the value at `path` of a given object.
@@ -10526,7 +10526,7 @@ _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');
_.propertyOf(object)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L15780 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.propertyof "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L15817 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.propertyof "See the npm package") [Ⓣ][1]
The opposite of `_.property`; this method creates a function that returns
the value at a given path of `object`.
@@ -10557,7 +10557,7 @@ _.map([['a', '2'], ['c', '0']], _.propertyOf(object));
_.range([start=0], end, [step=1])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L15827 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.range "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L15864 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.range "See the npm package") [Ⓣ][1]
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
@@ -10608,7 +10608,7 @@ _.range(0);
_.rangeRight([start=0], end, [step=1])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L15865 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.rangeright "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L15902 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.rangeright "See the npm package") [Ⓣ][1]
This method is like `_.range` except that it populates values in
descending order.
@@ -10653,7 +10653,7 @@ _.rangeRight(0);
_.runInContext([context=root])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L1412 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.runincontext "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L1420 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.runincontext "See the npm package") [Ⓣ][1]
Create a new pristine `lodash` function using the `context` object.
@@ -10692,7 +10692,7 @@ var defer = _.runInContext({ 'setTimeout': setImmediate }).defer;
_.stubArray()
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L15885 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.stubarray "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L15922 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.stubarray "See the npm package") [Ⓣ][1]
This method returns a new empty array.
@@ -10718,7 +10718,7 @@ console.log(arrays[0] === arrays[1]);
_.stubFalse()
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L15902 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.stubfalse "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L15939 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.stubfalse "See the npm package") [Ⓣ][1]
This method returns `false`.
@@ -10739,7 +10739,7 @@ _.times(2, _.stubFalse);
_.stubObject()
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L15924 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.stubobject "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L15961 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.stubobject "See the npm package") [Ⓣ][1]
This method returns a new empty object.
@@ -10765,7 +10765,7 @@ console.log(objects[0] === objects[1]);
_.stubString()
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L15941 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.stubstring "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L15978 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.stubstring "See the npm package") [Ⓣ][1]
This method returns an empty string.
@@ -10786,7 +10786,7 @@ _.times(2, _.stubString);
_.stubTrue()
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L15958 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.stubtrue "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L15995 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.stubtrue "See the npm package") [Ⓣ][1]
This method returns `true`.
@@ -10807,7 +10807,7 @@ _.times(2, _.stubTrue);
_.times(n, [iteratee=_.identity])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L15981 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.times "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L16018 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.times "See the npm package") [Ⓣ][1]
Invokes the iteratee `n` times, returning an array of the results of
each invocation. The iteratee is invoked with one argument; *(index)*.
@@ -10836,7 +10836,7 @@ _.times(3, String);
_.toPath(value)
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L16016 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.topath "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L16053 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.topath "See the npm package") [Ⓣ][1]
Converts `value` to a property path array.
@@ -10863,7 +10863,7 @@ _.toPath('a[0].b.c');
_.uniqueId([prefix=''])
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L16040 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.uniqueid "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L16077 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.uniqueid "See the npm package") [Ⓣ][1]
Generates a unique ID. If `prefix` is given, the ID is appended to it.
@@ -10896,7 +10896,7 @@ _.uniqueId();
_.VERSION
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L16731 "View in source") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L16768 "View in source") [Ⓣ][1]
(string): The semantic version number.
@@ -10907,7 +10907,7 @@ _.uniqueId();
_.templateSettings
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L1722 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.templatesettings "See the npm package") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L1731 "View in source") [Ⓝ](https://www.npmjs.com/package/lodash.templatesettings "See the npm package") [Ⓣ][1]
(Object): By default, the template delimiters used by lodash are like those in
embedded Ruby *(ERB)*. Change the following template settings to use
@@ -10920,7 +10920,7 @@ alternative delimiters.
_.templateSettings.escape
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L1730 "View in source") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L1739 "View in source") [Ⓣ][1]
(RegExp): Used to detect `data` property values to be HTML-escaped.
@@ -10931,7 +10931,7 @@ alternative delimiters.
_.templateSettings.evaluate
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L1738 "View in source") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L1747 "View in source") [Ⓣ][1]
(RegExp): Used to detect code to be evaluated.
@@ -10942,7 +10942,7 @@ alternative delimiters.
_.templateSettings.imports
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L1762 "View in source") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L1771 "View in source") [Ⓣ][1]
(Object): Used to import variables into the compiled template.
@@ -10953,7 +10953,7 @@ alternative delimiters.
_.templateSettings.interpolate
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L1746 "View in source") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L1755 "View in source") [Ⓣ][1]
(RegExp): Used to detect `data` property values to inject.
@@ -10964,7 +10964,7 @@ alternative delimiters.
_.templateSettings.variable
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L1754 "View in source") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L1763 "View in source") [Ⓣ][1]
(string): Used to reference the data object in the template text.
@@ -10981,7 +10981,7 @@ alternative delimiters.
_.templateSettings.imports._
-[Ⓢ](https://github.com/lodash/lodash/blob/4.16.4/lodash.js#L1770 "View in source") [Ⓣ][1]
+[Ⓢ](https://github.com/lodash/lodash/blob/4.16.5/lodash.js#L1779 "View in source") [Ⓣ][1]
A reference to the `lodash` function.
diff --git a/fp/_baseConvert.js b/fp/_baseConvert.js
index 0def5f67cb..5244985266 100644
--- a/fp/_baseConvert.js
+++ b/fp/_baseConvert.js
@@ -1,5 +1,4 @@
var mapping = require('./_mapping'),
- mutateMap = mapping.mutate,
fallbackHolder = require('./placeholder');
/**
@@ -351,13 +350,16 @@ function baseConvert(util, name, func, options) {
* @returns {Function} Returns the new converter function.
*/
function createConverter(name, func) {
- var oldOptions = options;
+ var realName = mapping.aliasToReal[name] || name,
+ methodName = mapping.remap[realName] || realName,
+ oldOptions = options;
+
return function(options) {
var newUtil = isLib ? pristine : helpers,
- newFunc = isLib ? pristine[name] : func,
+ newFunc = isLib ? pristine[methodName] : func,
newOptions = assign(assign({}, oldOptions), options);
- return baseConvert(newUtil, name, newFunc, newOptions);
+ return baseConvert(newUtil, realName, newFunc, newOptions);
};
}
@@ -428,38 +430,37 @@ function baseConvert(util, name, func, options) {
* @returns {Function} Returns the converted function.
*/
function wrap(name, func) {
- name = mapping.aliasToReal[name] || name;
-
var result,
+ realName = mapping.aliasToReal[name] || name,
wrapped = func,
- wrapper = wrappers[name];
+ wrapper = wrappers[realName];
if (wrapper) {
wrapped = wrapper(func);
}
else if (config.immutable) {
- if (mutateMap.array[name]) {
+ if (mapping.mutate.array[realName]) {
wrapped = wrapImmutable(func, cloneArray);
}
- else if (mutateMap.object[name]) {
+ else if (mapping.mutate.object[realName]) {
wrapped = wrapImmutable(func, createCloner(func));
}
- else if (mutateMap.set[name]) {
+ else if (mapping.mutate.set[realName]) {
wrapped = wrapImmutable(func, cloneByPath);
}
}
each(aryMethodKeys, function(aryKey) {
each(mapping.aryMethod[aryKey], function(otherName) {
- if (name == otherName) {
- var spreadData = mapping.methodSpread[name],
+ if (realName == otherName) {
+ var spreadData = mapping.methodSpread[realName],
afterRearg = spreadData && spreadData.afterRearg;
result = afterRearg
- ? castFixed(name, castRearg(name, wrapped, aryKey), aryKey)
- : castRearg(name, castFixed(name, wrapped, aryKey), aryKey);
+ ? castFixed(realName, castRearg(realName, wrapped, aryKey), aryKey)
+ : castRearg(realName, castFixed(realName, wrapped, aryKey), aryKey);
- result = castCap(name, result);
- result = castCurry(name, result, aryKey);
+ result = castCap(realName, result);
+ result = castCurry(realName, result, aryKey);
return false;
}
});
@@ -472,8 +473,8 @@ function baseConvert(util, name, func, options) {
return func.apply(this, arguments);
};
}
- result.convert = createConverter(name, func);
- if (mapping.placeholder[name]) {
+ result.convert = createConverter(realName, func);
+ if (mapping.placeholder[realName]) {
setPlaceholder = true;
result.placeholder = func.placeholder = placeholder;
}
diff --git a/lodash.js b/lodash.js
index 361e74d900..feabafd3be 100644
--- a/lodash.js
+++ b/lodash.js
@@ -1,7 +1,7 @@
/**
* @license
* lodash
- * Copyright jQuery Foundation and other contributors
+ * Copyright JS Foundation and other contributors
* Released under MIT license
* Based on Underscore.js 1.8.3
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
@@ -12,7 +12,7 @@
var undefined;
/** Used as the semantic version number. */
- var VERSION = '4.16.4';
+ var VERSION = '4.16.5';
/** Used as the size to enable large array optimizations. */
var LARGE_ARRAY_SIZE = 200;
@@ -51,7 +51,7 @@
DEFAULT_TRUNC_OMISSION = '...';
/** Used to detect hot functions by number of calls within a span of milliseconds. */
- var HOT_COUNT = 500,
+ var HOT_COUNT = 800,
HOT_SPAN = 16;
/** Used to indicate the type of lazy iteratees. */
@@ -86,13 +86,16 @@
/** `Object#toString` result references. */
var argsTag = '[object Arguments]',
arrayTag = '[object Array]',
+ asyncTag = '[object AsyncFunction]',
boolTag = '[object Boolean]',
dateTag = '[object Date]',
+ domExcTag = '[object DOMException]',
errorTag = '[object Error]',
funcTag = '[object Function]',
genTag = '[object GeneratorFunction]',
mapTag = '[object Map]',
numberTag = '[object Number]',
+ nullTag = '[object Null]',
objectTag = '[object Object]',
promiseTag = '[object Promise]',
proxyTag = '[object Proxy]',
@@ -100,6 +103,7 @@
setTag = '[object Set]',
stringTag = '[object String]',
symbolTag = '[object Symbol]',
+ undefinedTag = '[object Undefined]',
weakMapTag = '[object WeakMap]',
weakSetTag = '[object WeakSet]';
@@ -225,13 +229,15 @@
rsZWJ = '\\u200d';
/** Used to compose unicode regexes. */
- var rsLowerMisc = '(?:' + rsLower + '|' + rsMisc + ')',
- rsUpperMisc = '(?:' + rsUpper + '|' + rsMisc + ')',
- rsOptLowerContr = '(?:' + rsApos + '(?:d|ll|m|re|s|t|ve))?',
- rsOptUpperContr = '(?:' + rsApos + '(?:D|LL|M|RE|S|T|VE))?',
+ var rsMiscLower = '(?:' + rsLower + '|' + rsMisc + ')',
+ rsMiscUpper = '(?:' + rsUpper + '|' + rsMisc + ')',
+ rsOptContrLower = '(?:' + rsApos + '(?:d|ll|m|re|s|t|ve))?',
+ rsOptContrUpper = '(?:' + rsApos + '(?:D|LL|M|RE|S|T|VE))?',
reOptMod = rsModifier + '?',
rsOptVar = '[' + rsVarRange + ']?',
rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',
+ rsOrdLower = '\\d*(?:(?:1st|2nd|3rd|(?![123])\\dth)\\b)',
+ rsOrdUpper = '\\d*(?:(?:1ST|2ND|3RD|(?![123])\\dTH)\\b)',
rsSeq = rsOptVar + reOptMod + rsOptJoin,
rsEmoji = '(?:' + [rsDingbat, rsRegional, rsSurrPair].join('|') + ')' + rsSeq,
rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';
@@ -250,10 +256,12 @@
/** Used to match complex or compound words. */
var reUnicodeWord = RegExp([
- rsUpper + '?' + rsLower + '+' + rsOptLowerContr + '(?=' + [rsBreak, rsUpper, '$'].join('|') + ')',
- rsUpperMisc + '+' + rsOptUpperContr + '(?=' + [rsBreak, rsUpper + rsLowerMisc, '$'].join('|') + ')',
- rsUpper + '?' + rsLowerMisc + '+' + rsOptLowerContr,
- rsUpper + '+' + rsOptUpperContr,
+ rsUpper + '?' + rsLower + '+' + rsOptContrLower + '(?=' + [rsBreak, rsUpper, '$'].join('|') + ')',
+ rsMiscUpper + '+' + rsOptContrUpper + '(?=' + [rsBreak, rsUpper + rsMiscLower, '$'].join('|') + ')',
+ rsUpper + '?' + rsMiscLower + '+' + rsOptContrLower,
+ rsUpper + '+' + rsOptContrUpper,
+ rsOrdUpper,
+ rsOrdLower,
rsDigits,
rsEmoji
].join('|'), 'g');
@@ -496,7 +504,7 @@
*/
function arrayAggregator(array, setter, iteratee, accumulator) {
var index = -1,
- length = array ? array.length : 0;
+ length = array == null ? 0 : array.length;
while (++index < length) {
var value = array[index];
@@ -516,7 +524,7 @@
*/
function arrayEach(array, iteratee) {
var index = -1,
- length = array ? array.length : 0;
+ length = array == null ? 0 : array.length;
while (++index < length) {
if (iteratee(array[index], index, array) === false) {
@@ -536,7 +544,7 @@
* @returns {Array} Returns `array`.
*/
function arrayEachRight(array, iteratee) {
- var length = array ? array.length : 0;
+ var length = array == null ? 0 : array.length;
while (length--) {
if (iteratee(array[length], length, array) === false) {
@@ -558,7 +566,7 @@
*/
function arrayEvery(array, predicate) {
var index = -1,
- length = array ? array.length : 0;
+ length = array == null ? 0 : array.length;
while (++index < length) {
if (!predicate(array[index], index, array)) {
@@ -579,7 +587,7 @@
*/
function arrayFilter(array, predicate) {
var index = -1,
- length = array ? array.length : 0,
+ length = array == null ? 0 : array.length,
resIndex = 0,
result = [];
@@ -602,7 +610,7 @@
* @returns {boolean} Returns `true` if `target` is found, else `false`.
*/
function arrayIncludes(array, value) {
- var length = array ? array.length : 0;
+ var length = array == null ? 0 : array.length;
return !!length && baseIndexOf(array, value, 0) > -1;
}
@@ -617,7 +625,7 @@
*/
function arrayIncludesWith(array, value, comparator) {
var index = -1,
- length = array ? array.length : 0;
+ length = array == null ? 0 : array.length;
while (++index < length) {
if (comparator(value, array[index])) {
@@ -638,7 +646,7 @@
*/
function arrayMap(array, iteratee) {
var index = -1,
- length = array ? array.length : 0,
+ length = array == null ? 0 : array.length,
result = Array(length);
while (++index < length) {
@@ -680,7 +688,7 @@
*/
function arrayReduce(array, iteratee, accumulator, initAccum) {
var index = -1,
- length = array ? array.length : 0;
+ length = array == null ? 0 : array.length;
if (initAccum && length) {
accumulator = array[++index];
@@ -704,7 +712,7 @@
* @returns {*} Returns the accumulated value.
*/
function arrayReduceRight(array, iteratee, accumulator, initAccum) {
- var length = array ? array.length : 0;
+ var length = array == null ? 0 : array.length;
if (initAccum && length) {
accumulator = array[--length];
}
@@ -726,7 +734,7 @@
*/
function arraySome(array, predicate) {
var index = -1,
- length = array ? array.length : 0;
+ length = array == null ? 0 : array.length;
while (++index < length) {
if (predicate(array[index], index, array)) {
@@ -870,7 +878,7 @@
* @returns {number} Returns the mean.
*/
function baseMean(array, iteratee) {
- var length = array ? array.length : 0;
+ var length = array == null ? 0 : array.length;
return length ? (baseSum(array, iteratee) / length) : NAN;
}
@@ -1410,7 +1418,7 @@
* var defer = _.runInContext({ 'setTimeout': setImmediate }).defer;
*/
var runInContext = (function runInContext(context) {
- context = context ? _.defaults(root.Object(), context, _.pick(root, contextProps)) : root;
+ context = context == null ? root : _.defaults(root.Object(), context, _.pick(root, contextProps));
/** Built-in constructor references. */
var Array = context.Array,
@@ -1431,12 +1439,6 @@
/** Used to detect overreaching core-js shims. */
var coreJsData = context['__core-js_shared__'];
- /** Used to detect methods masquerading as native. */
- var maskSrcKey = (function() {
- var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
- return uid ? ('Symbol(src)_1.' + uid) : '';
- }());
-
/** Used to resolve the decompiled source of functions. */
var funcToString = funcProto.toString;
@@ -1446,15 +1448,21 @@
/** Used to generate unique IDs. */
var idCounter = 0;
- /** Used to infer the `Object` constructor. */
- var objectCtorString = funcToString.call(Object);
+ /** Used to detect methods masquerading as native. */
+ var maskSrcKey = (function() {
+ var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
+ return uid ? ('Symbol(src)_1.' + uid) : '';
+ }());
/**
* Used to resolve the
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
* of values.
*/
- var objectToString = objectProto.toString;
+ var nativeObjectToString = objectProto.toString;
+
+ /** Used to infer the `Object` constructor. */
+ var objectCtorString = funcToString.call(Object);
/** Used to restore the original `_` reference in `_.noConflict`. */
var oldDash = root._;
@@ -1471,11 +1479,12 @@
Uint8Array = context.Uint8Array,
allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined,
getPrototype = overArg(Object.getPrototypeOf, Object),
- iteratorSymbol = Symbol ? Symbol.iterator : undefined,
objectCreate = Object.create,
propertyIsEnumerable = objectProto.propertyIsEnumerable,
splice = arrayProto.splice,
- spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined;
+ spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined,
+ symIterator = Symbol ? Symbol.iterator : undefined,
+ symToStringTag = Symbol ? Symbol.toStringTag : undefined;
var defineProperty = (function() {
try {
@@ -1909,7 +1918,7 @@
*/
function Hash(entries) {
var index = -1,
- length = entries ? entries.length : 0;
+ length = entries == null ? 0 : entries.length;
this.clear();
while (++index < length) {
@@ -2013,7 +2022,7 @@
*/
function ListCache(entries) {
var index = -1,
- length = entries ? entries.length : 0;
+ length = entries == null ? 0 : entries.length;
this.clear();
while (++index < length) {
@@ -2130,7 +2139,7 @@
*/
function MapCache(entries) {
var index = -1,
- length = entries ? entries.length : 0;
+ length = entries == null ? 0 : entries.length;
this.clear();
while (++index < length) {
@@ -2234,7 +2243,7 @@
*/
function SetCache(values) {
var index = -1,
- length = values ? values.length : 0;
+ length = values == null ? 0 : values.length;
this.__data__ = new MapCache;
while (++index < length) {
@@ -2581,12 +2590,12 @@
*/
function baseAt(object, paths) {
var index = -1,
- isNil = object == null,
length = paths.length,
- result = Array(length);
+ result = Array(length),
+ skip = object == null;
while (++index < length) {
- result[index] = isNil ? undefined : get(object, paths[index]);
+ result[index] = skip ? undefined : get(object, paths[index]);
}
return result;
}
@@ -2776,7 +2785,7 @@
outer:
while (++index < length) {
var value = array[index],
- computed = iteratee ? iteratee(value) : value;
+ computed = iteratee == null ? value : iteratee(value);
value = (comparator || value !== 0) ? value : 0;
if (isCommon && computed === computed) {
@@ -3043,14 +3052,20 @@
}
/**
- * The base implementation of `getTag`.
+ * The base implementation of `getTag` without fallbacks for buggy environments.
*
* @private
* @param {*} value The value to query.
* @returns {string} Returns the `toStringTag`.
*/
function baseGetTag(value) {
- return objectToString.call(value);
+ if (value == null) {
+ return value === undefined ? undefinedTag : nullTag;
+ }
+ value = Object(value);
+ return (symToStringTag && symToStringTag in value)
+ ? getRawTag(value)
+ : objectToString(value);
}
/**
@@ -3212,7 +3227,7 @@
* @returns {boolean} Returns `true` if `value` is an `arguments` object,
*/
function baseIsArguments(value) {
- return isObjectLike(value) && objectToString.call(value) == argsTag;
+ return isObjectLike(value) && baseGetTag(value) == argsTag;
}
/**
@@ -3223,7 +3238,7 @@
* @returns {boolean} Returns `true` if `value` is an array buffer, else `false`.
*/
function baseIsArrayBuffer(value) {
- return isObjectLike(value) && objectToString.call(value) == arrayBufferTag;
+ return isObjectLike(value) && baseGetTag(value) == arrayBufferTag;
}
/**
@@ -3234,7 +3249,7 @@
* @returns {boolean} Returns `true` if `value` is a date object, else `false`.
*/
function baseIsDate(value) {
- return isObjectLike(value) && objectToString.call(value) == dateTag;
+ return isObjectLike(value) && baseGetTag(value) == dateTag;
}
/**
@@ -3416,7 +3431,7 @@
* @returns {boolean} Returns `true` if `value` is a regexp, else `false`.
*/
function baseIsRegExp(value) {
- return isObject(value) && objectToString.call(value) == regexpTag;
+ return isObjectLike(value) && baseGetTag(value) == regexpTag;
}
/**
@@ -3439,7 +3454,7 @@
*/
function baseIsTypedArray(value) {
return isObjectLike(value) &&
- isLength(value.length) && !!typedArrayTags[objectToString.call(value)];
+ isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
}
/**
@@ -4100,7 +4115,7 @@
*/
function baseSortedIndex(array, value, retHighest) {
var low = 0,
- high = array ? array.length : low;
+ high = array == null ? low : array.length;
if (typeof value == 'number' && value === value && high <= HALF_MAX_ARRAY_LENGTH) {
while (low < high) {
@@ -4136,7 +4151,7 @@
value = iteratee(value);
var low = 0,
- high = array ? array.length : 0,
+ high = array == null ? 0 : array.length,
valIsNaN = value !== value,
valIsNull = value === null,
valIsSymbol = isSymbol(value),
@@ -4386,18 +4401,25 @@
* @returns {Array} Returns the new array of values.
*/
function baseXor(arrays, iteratee, comparator) {
+ var length = arrays.length;
+ if (length < 2) {
+ return length ? baseUniq(arrays[0]) : [];
+ }
var index = -1,
- length = arrays.length;
+ result = Array(length);
while (++index < length) {
- var result = result
- ? arrayPush(
- baseDifference(result, arrays[index], iteratee, comparator),
- baseDifference(arrays[index], result, iteratee, comparator)
- )
- : arrays[index];
+ var array = arrays[index],
+ othIndex = -1;
+
+ while (++othIndex < length) {
+ var othArray = arrays[othIndex];
+ if (othArray !== array) {
+ result[index] = baseDifference(result[index] || array, othArray, iteratee, comparator);
+ }
+ }
}
- return (result && result.length) ? baseUniq(result, iteratee, comparator) : [];
+ return baseUniq(baseFlatten(result, 1), iteratee, comparator);
}
/**
@@ -5934,6 +5956,33 @@
return baseIsNative(value) ? value : undefined;
}
+ /**
+ * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
+ *
+ * @private
+ * @param {*} value The value to query.
+ * @returns {string} Returns the raw `toStringTag`.
+ */
+ function getRawTag(value) {
+ var isOwn = hasOwnProperty.call(value, symToStringTag),
+ tag = value[symToStringTag];
+
+ try {
+ value[symToStringTag] = undefined;
+ var unmasked = true;
+ } catch (e) {}
+
+ var result = nativeObjectToString.call(value);
+ if (unmasked) {
+ if (isOwn) {
+ value[symToStringTag] = tag;
+ } else {
+ delete value[symToStringTag];
+ }
+ }
+ return result;
+ }
+
/**
* Creates an array of the own enumerable symbol properties of `object`.
*
@@ -5976,9 +6025,9 @@
(Set && getTag(new Set) != setTag) ||
(WeakMap && getTag(new WeakMap) != weakMapTag)) {
getTag = function(value) {
- var result = objectToString.call(value),
+ var result = baseGetTag(value),
Ctor = result == objectTag ? value.constructor : undefined,
- ctorString = Ctor ? toSource(Ctor) : undefined;
+ ctorString = Ctor ? toSource(Ctor) : '';
if (ctorString) {
switch (ctorString) {
@@ -6059,7 +6108,7 @@
if (result || ++index != length) {
return result;
}
- length = object ? object.length : 0;
+ length = object == null ? 0 : object.length;
return !!length && isLength(length) && isIndex(key, length) &&
(isArray(object) || isArguments(object));
}
@@ -6470,6 +6519,17 @@
return result;
}
+ /**
+ * Converts `value` to a string using `Object.prototype.toString`.
+ *
+ * @private
+ * @param {*} value The value to convert.
+ * @returns {string} Returns the converted string.
+ */
+ function objectToString(value) {
+ return nativeObjectToString.call(value);
+ }
+
/**
* A specialized version of `baseRest` which transforms the rest array.
*
@@ -6680,7 +6740,7 @@
* Converts `func` to its source code.
*
* @private
- * @param {Function} func The function to process.
+ * @param {Function} func The function to convert.
* @returns {string} Returns the source code.
*/
function toSource(func) {
@@ -6760,7 +6820,7 @@
} else {
size = nativeMax(toInteger(size), 0);
}
- var length = array ? array.length : 0;
+ var length = array == null ? 0 : array.length;
if (!length || size < 1) {
return [];
}
@@ -6791,7 +6851,7 @@
*/
function compact(array) {
var index = -1,
- length = array ? array.length : 0,
+ length = array == null ? 0 : array.length,
resIndex = 0,
result = [];
@@ -6963,7 +7023,7 @@
* // => [1, 2, 3]
*/
function drop(array, n, guard) {
- var length = array ? array.length : 0;
+ var length = array == null ? 0 : array.length;
if (!length) {
return [];
}
@@ -6997,7 +7057,7 @@
* // => [1, 2, 3]
*/
function dropRight(array, n, guard) {
- var length = array ? array.length : 0;
+ var length = array == null ? 0 : array.length;
if (!length) {
return [];
}
@@ -7057,8 +7117,7 @@
* @since 3.0.0
* @category Array
* @param {Array} array The array to query.
- * @param {Function} [predicate=_.identity]
- * The function invoked per iteration.
+ * @param {Function} [predicate=_.identity] The function invoked per iteration.
* @returns {Array} Returns the slice of `array`.
* @example
*
@@ -7119,7 +7178,7 @@
* // => [4, '*', '*', 10]
*/
function fill(array, value, start, end) {
- var length = array ? array.length : 0;
+ var length = array == null ? 0 : array.length;
if (!length) {
return [];
}
@@ -7139,8 +7198,7 @@
* @since 1.1.0
* @category Array
* @param {Array} array The array to inspect.
- * @param {Function} [predicate=_.identity]
- * The function invoked per iteration.
+ * @param {Function} [predicate=_.identity] The function invoked per iteration.
* @param {number} [fromIndex=0] The index to search from.
* @returns {number} Returns the index of the found element, else `-1`.
* @example
@@ -7167,7 +7225,7 @@
* // => 2
*/
function findIndex(array, predicate, fromIndex) {
- var length = array ? array.length : 0;
+ var length = array == null ? 0 : array.length;
if (!length) {
return -1;
}
@@ -7187,8 +7245,7 @@
* @since 2.0.0
* @category Array
* @param {Array} array The array to inspect.
- * @param {Function} [predicate=_.identity]
- * The function invoked per iteration.
+ * @param {Function} [predicate=_.identity] The function invoked per iteration.
* @param {number} [fromIndex=array.length-1] The index to search from.
* @returns {number} Returns the index of the found element, else `-1`.
* @example
@@ -7215,7 +7272,7 @@
* // => 0
*/
function findLastIndex(array, predicate, fromIndex) {
- var length = array ? array.length : 0;
+ var length = array == null ? 0 : array.length;
if (!length) {
return -1;
}
@@ -7244,7 +7301,7 @@
* // => [1, 2, [3, [4]], 5]
*/
function flatten(array) {
- var length = array ? array.length : 0;
+ var length = array == null ? 0 : array.length;
return length ? baseFlatten(array, 1) : [];
}
@@ -7263,7 +7320,7 @@
* // => [1, 2, 3, 4, 5]
*/
function flattenDeep(array) {
- var length = array ? array.length : 0;
+ var length = array == null ? 0 : array.length;
return length ? baseFlatten(array, INFINITY) : [];
}
@@ -7288,7 +7345,7 @@
* // => [1, 2, 3, [4], 5]
*/
function flattenDepth(array, depth) {
- var length = array ? array.length : 0;
+ var length = array == null ? 0 : array.length;
if (!length) {
return [];
}
@@ -7313,7 +7370,7 @@
*/
function fromPairs(pairs) {
var index = -1,
- length = pairs ? pairs.length : 0,
+ length = pairs == null ? 0 : pairs.length,
result = {};
while (++index < length) {
@@ -7369,7 +7426,7 @@
* // => 3
*/
function indexOf(array, value, fromIndex) {
- var length = array ? array.length : 0;
+ var length = array == null ? 0 : array.length;
if (!length) {
return -1;
}
@@ -7395,7 +7452,7 @@
* // => [1, 2]
*/
function initial(array) {
- var length = array ? array.length : 0;
+ var length = array == null ? 0 : array.length;
return length ? baseSlice(array, 0, -1) : [];
}
@@ -7485,9 +7542,8 @@
var comparator = last(arrays),
mapped = arrayMap(arrays, castArrayLikeObject);
- if (comparator === last(mapped)) {
- comparator = undefined;
- } else {
+ comparator = typeof comparator == 'function' ? comparator : undefined;
+ if (comparator) {
mapped.pop();
}
return (mapped.length && mapped[0] === arrays[0])
@@ -7511,7 +7567,7 @@
* // => 'a~b~c'
*/
function join(array, separator) {
- return array ? nativeJoin.call(array, separator) : '';
+ return array == null ? '' : nativeJoin.call(array, separator);
}
/**
@@ -7529,7 +7585,7 @@
* // => 3
*/
function last(array) {
- var length = array ? array.length : 0;
+ var length = array == null ? 0 : array.length;
return length ? array[length - 1] : undefined;
}
@@ -7555,7 +7611,7 @@
* // => 1
*/
function lastIndexOf(array, value, fromIndex) {
- var length = array ? array.length : 0;
+ var length = array == null ? 0 : array.length;
if (!length) {
return -1;
}
@@ -7658,8 +7714,7 @@
* @category Array
* @param {Array} array The array to modify.
* @param {Array} values The values to remove.
- * @param {Function} [iteratee=_.identity]
- * The iteratee invoked per element.
+ * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
* @returns {Array} Returns `array`.
* @example
*
@@ -7729,7 +7784,7 @@
* // => ['b', 'd']
*/
var pullAt = flatRest(function(array, indexes) {
- var length = array ? array.length : 0,
+ var length = array == null ? 0 : array.length,
result = baseAt(array, indexes);
basePullAt(array, arrayMap(indexes, function(index) {
@@ -7752,8 +7807,7 @@
* @since 2.0.0
* @category Array
* @param {Array} array The array to modify.
- * @param {Function} [predicate=_.identity]
- * The function invoked per iteration.
+ * @param {Function} [predicate=_.identity] The function invoked per iteration.
* @returns {Array} Returns the new array of removed elements.
* @example
*
@@ -7813,7 +7867,7 @@
* // => [3, 2, 1]
*/
function reverse(array) {
- return array ? nativeReverse.call(array) : array;
+ return array == null ? array : nativeReverse.call(array);
}
/**
@@ -7833,7 +7887,7 @@
* @returns {Array} Returns the slice of `array`.
*/
function slice(array, start, end) {
- var length = array ? array.length : 0;
+ var length = array == null ? 0 : array.length;
if (!length) {
return [];
}
@@ -7880,8 +7934,7 @@
* @category Array
* @param {Array} array The sorted array to inspect.
* @param {*} value The value to evaluate.
- * @param {Function} [iteratee=_.identity]
- * The iteratee invoked per element.
+ * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
* @returns {number} Returns the index at which `value` should be inserted
* into `array`.
* @example
@@ -7916,7 +7969,7 @@
* // => 1
*/
function sortedIndexOf(array, value) {
- var length = array ? array.length : 0;
+ var length = array == null ? 0 : array.length;
if (length) {
var index = baseSortedIndex(array, value);
if (index < length && eq(array[index], value)) {
@@ -7959,8 +8012,7 @@
* @category Array
* @param {Array} array The sorted array to inspect.
* @param {*} value The value to evaluate.
- * @param {Function} [iteratee=_.identity]
- * The iteratee invoked per element.
+ * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
* @returns {number} Returns the index at which `value` should be inserted
* into `array`.
* @example
@@ -7995,7 +8047,7 @@
* // => 3
*/
function sortedLastIndexOf(array, value) {
- var length = array ? array.length : 0;
+ var length = array == null ? 0 : array.length;
if (length) {
var index = baseSortedIndex(array, value, true) - 1;
if (eq(array[index], value)) {
@@ -8063,7 +8115,7 @@
* // => [2, 3]
*/
function tail(array) {
- var length = array ? array.length : 0;
+ var length = array == null ? 0 : array.length;
return length ? baseSlice(array, 1, length) : [];
}
@@ -8126,7 +8178,7 @@
* // => []
*/
function takeRight(array, n, guard) {
- var length = array ? array.length : 0;
+ var length = array == null ? 0 : array.length;
if (!length) {
return [];
}
@@ -8145,8 +8197,7 @@
* @since 3.0.0
* @category Array
* @param {Array} array The array to query.
- * @param {Function} [predicate=_.identity]
- * The function invoked per iteration.
+ * @param {Function} [predicate=_.identity] The function invoked per iteration.
* @returns {Array} Returns the slice of `array`.
* @example
*
@@ -8187,8 +8238,7 @@
* @since 3.0.0
* @category Array
* @param {Array} array The array to query.
- * @param {Function} [predicate=_.identity]
- * The function invoked per iteration.
+ * @param {Function} [predicate=_.identity] The function invoked per iteration.
* @returns {Array} Returns the slice of `array`.
* @example
*
@@ -8251,8 +8301,7 @@
* @since 4.0.0
* @category Array
* @param {...Array} [arrays] The arrays to inspect.
- * @param {Function} [iteratee=_.identity]
- * The iteratee invoked per element.
+ * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
* @returns {Array} Returns the new array of combined values.
* @example
*
@@ -8294,9 +8343,7 @@
*/
var unionWith = baseRest(function(arrays) {
var comparator = last(arrays);
- if (isArrayLikeObject(comparator)) {
- comparator = undefined;
- }
+ comparator = typeof comparator == 'function' ? comparator : undefined;
return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), undefined, comparator);
});
@@ -8319,9 +8366,7 @@
* // => [2, 1]
*/
function uniq(array) {
- return (array && array.length)
- ? baseUniq(array)
- : [];
+ return (array && array.length) ? baseUniq(array) : [];
}
/**
@@ -8336,8 +8381,7 @@
* @since 4.0.0
* @category Array
* @param {Array} array The array to inspect.
- * @param {Function} [iteratee=_.identity]
- * The iteratee invoked per element.
+ * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
* @returns {Array} Returns the new duplicate free array.
* @example
*
@@ -8349,9 +8393,7 @@
* // => [{ 'x': 1 }, { 'x': 2 }]
*/
function uniqBy(array, iteratee) {
- return (array && array.length)
- ? baseUniq(array, getIteratee(iteratee, 2))
- : [];
+ return (array && array.length) ? baseUniq(array, getIteratee(iteratee, 2)) : [];
}
/**
@@ -8375,9 +8417,8 @@
* // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }]
*/
function uniqWith(array, comparator) {
- return (array && array.length)
- ? baseUniq(array, undefined, comparator)
- : [];
+ comparator = typeof comparator == 'function' ? comparator : undefined;
+ return (array && array.length) ? baseUniq(array, undefined, comparator) : [];
}
/**
@@ -8509,8 +8550,7 @@
* @since 4.0.0
* @category Array
* @param {...Array} [arrays] The arrays to inspect.
- * @param {Function} [iteratee=_.identity]
- * The iteratee invoked per element.
+ * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
* @returns {Array} Returns the new array of filtered values.
* @example
*
@@ -8552,9 +8592,7 @@
*/
var xorWith = baseRest(function(arrays) {
var comparator = last(arrays);
- if (isArrayLikeObject(comparator)) {
- comparator = undefined;
- }
+ comparator = typeof comparator == 'function' ? comparator : undefined;
return baseXor(arrayFilter(arrays, isArrayLikeObject), undefined, comparator);
});
@@ -8625,7 +8663,8 @@
* @since 3.8.0
* @category Array
* @param {...Array} [arrays] The arrays to process.
- * @param {Function} [iteratee=_.identity] The function to combine grouped values.
+ * @param {Function} [iteratee=_.identity] The function to combine
+ * grouped values.
* @returns {Array} Returns the new array of grouped elements.
* @example
*
@@ -9002,8 +9041,7 @@
* @since 0.5.0
* @category Collection
* @param {Array|Object} collection The collection to iterate over.
- * @param {Function} [iteratee=_.identity]
- * The iteratee to transform keys.
+ * @param {Function} [iteratee=_.identity] The iteratee to transform keys.
* @returns {Object} Returns the composed aggregate object.
* @example
*
@@ -9037,8 +9075,7 @@
* @since 0.1.0
* @category Collection
* @param {Array|Object} collection The collection to iterate over.
- * @param {Function} [predicate=_.identity]
- * The function invoked per iteration.
+ * @param {Function} [predicate=_.identity] The function invoked per iteration.
* @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
* @returns {boolean} Returns `true` if all elements pass the predicate check,
* else `false`.
@@ -9084,8 +9121,7 @@
* @since 0.1.0
* @category Collection
* @param {Array|Object} collection The collection to iterate over.
- * @param {Function} [predicate=_.identity]
- * The function invoked per iteration.
+ * @param {Function} [predicate=_.identity] The function invoked per iteration.
* @returns {Array} Returns the new filtered array.
* @see _.reject
* @example
@@ -9125,8 +9161,7 @@
* @since 0.1.0
* @category Collection
* @param {Array|Object} collection The collection to inspect.
- * @param {Function} [predicate=_.identity]
- * The function invoked per iteration.
+ * @param {Function} [predicate=_.identity] The function invoked per iteration.
* @param {number} [fromIndex=0] The index to search from.
* @returns {*} Returns the matched element, else `undefined`.
* @example
@@ -9163,8 +9198,7 @@
* @since 2.0.0
* @category Collection
* @param {Array|Object} collection The collection to inspect.
- * @param {Function} [predicate=_.identity]
- * The function invoked per iteration.
+ * @param {Function} [predicate=_.identity] The function invoked per iteration.
* @param {number} [fromIndex=collection.length-1] The index to search from.
* @returns {*} Returns the matched element, else `undefined`.
* @example
@@ -9186,8 +9220,7 @@
* @since 4.0.0
* @category Collection
* @param {Array|Object} collection The collection to iterate over.
- * @param {Function} [iteratee=_.identity]
- * The function invoked per iteration.
+ * @param {Function} [iteratee=_.identity] The function invoked per iteration.
* @returns {Array} Returns the new flattened array.
* @example
*
@@ -9211,8 +9244,7 @@
* @since 4.7.0
* @category Collection
* @param {Array|Object} collection The collection to iterate over.
- * @param {Function} [iteratee=_.identity]
- * The function invoked per iteration.
+ * @param {Function} [iteratee=_.identity] The function invoked per iteration.
* @returns {Array} Returns the new flattened array.
* @example
*
@@ -9236,8 +9268,7 @@
* @since 4.7.0
* @category Collection
* @param {Array|Object} collection The collection to iterate over.
- * @param {Function} [iteratee=_.identity]
- * The function invoked per iteration.
+ * @param {Function} [iteratee=_.identity] The function invoked per iteration.
* @param {number} [depth=1] The maximum recursion depth.
* @returns {Array} Returns the new flattened array.
* @example
@@ -9326,8 +9357,7 @@
* @since 0.1.0
* @category Collection
* @param {Array|Object} collection The collection to iterate over.
- * @param {Function} [iteratee=_.identity]
- * The iteratee to transform keys.
+ * @param {Function} [iteratee=_.identity] The iteratee to transform keys.
* @returns {Object} Returns the composed aggregate object.
* @example
*
@@ -9436,8 +9466,7 @@
* @since 4.0.0
* @category Collection
* @param {Array|Object} collection The collection to iterate over.
- * @param {Function} [iteratee=_.identity]
- * The iteratee to transform keys.
+ * @param {Function} [iteratee=_.identity] The iteratee to transform keys.
* @returns {Object} Returns the composed aggregate object.
* @example
*
@@ -10452,7 +10481,7 @@
* function. Its creation may be customized by replacing the `_.memoize.Cache`
* constructor with one whose instances implement the
* [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
- * method interface of `delete`, `get`, `has`, and `set`.
+ * method interface of `clear`, `delete`, `get`, `has`, and `set`.
*
* @static
* @memberOf _
@@ -10486,7 +10515,7 @@
* _.memoize.Cache = WeakMap;
*/
function memoize(func, resolver) {
- if (typeof func != 'function' || (resolver && typeof resolver != 'function')) {
+ if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
throw new TypeError(FUNC_ERROR_TEXT);
}
var memoized = function() {
@@ -10902,8 +10931,7 @@
* // => '
fred, barney, & pebbles
'
*/
function wrap(value, wrapper) {
- wrapper = wrapper == null ? identity : wrapper;
- return partial(wrapper, value);
+ return partial(castFunction(wrapper), value);
}
/*------------------------------------------------------------------------*/
@@ -11011,6 +11039,7 @@
* // => 0
*/
function cloneWith(value, customizer) {
+ customizer = typeof customizer == 'function' ? customizer : undefined;
return baseClone(value, false, true, customizer);
}
@@ -11065,6 +11094,7 @@
* // => 20
*/
function cloneDeepWith(value, customizer) {
+ customizer = typeof customizer == 'function' ? customizer : undefined;
return baseClone(value, true, true, customizer);
}
@@ -11328,7 +11358,7 @@
*/
function isBoolean(value) {
return value === true || value === false ||
- (isObjectLike(value) && objectToString.call(value) == boolTag);
+ (isObjectLike(value) && baseGetTag(value) == boolTag);
}
/**
@@ -11387,7 +11417,7 @@
* // => false
*/
function isElement(value) {
- return value != null && value.nodeType === 1 && isObjectLike(value) && !isPlainObject(value);
+ return isObjectLike(value) && value.nodeType === 1 && !isPlainObject(value);
}
/**
@@ -11424,6 +11454,9 @@
* // => false
*/
function isEmpty(value) {
+ if (value == null) {
+ return true;
+ }
if (isArrayLike(value) &&
(isArray(value) || typeof value == 'string' || typeof value.splice == 'function' ||
isBuffer(value) || isTypedArray(value) || isArguments(value))) {
@@ -11536,8 +11569,9 @@
if (!isObjectLike(value)) {
return false;
}
- return (objectToString.call(value) == errorTag) ||
- (typeof value.message == 'string' && typeof value.name == 'string');
+ var tag = baseGetTag(value);
+ return tag == errorTag || tag == domExcTag ||
+ (typeof value.message == 'string' && typeof value.name == 'string' && !isPlainObject(value));
}
/**
@@ -11588,10 +11622,13 @@
* // => false
*/
function isFunction(value) {
+ if (!isObject(value)) {
+ return false;
+ }
// The use of `Object#toString` avoids issues with the `typeof` operator
- // in Safari 9 which returns 'object' for typed array and other constructors.
- var tag = isObject(value) ? objectToString.call(value) : '';
- return tag == funcTag || tag == genTag || tag == proxyTag;
+ // in Safari 9 which returns 'object' for typed arrays and other constructors.
+ var tag = baseGetTag(value);
+ return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
}
/**
@@ -11942,7 +11979,7 @@
*/
function isNumber(value) {
return typeof value == 'number' ||
- (isObjectLike(value) && objectToString.call(value) == numberTag);
+ (isObjectLike(value) && baseGetTag(value) == numberTag);
}
/**
@@ -11974,7 +12011,7 @@
* // => true
*/
function isPlainObject(value) {
- if (!isObjectLike(value) || objectToString.call(value) != objectTag) {
+ if (!isObjectLike(value) || baseGetTag(value) != objectTag) {
return false;
}
var proto = getPrototype(value);
@@ -11982,8 +12019,8 @@
return true;
}
var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;
- return (typeof Ctor == 'function' &&
- Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString);
+ return typeof Ctor == 'function' && Ctor instanceof Ctor &&
+ funcToString.call(Ctor) == objectCtorString;
}
/**
@@ -12074,7 +12111,7 @@
*/
function isString(value) {
return typeof value == 'string' ||
- (!isArray(value) && isObjectLike(value) && objectToString.call(value) == stringTag);
+ (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag);
}
/**
@@ -12096,7 +12133,7 @@
*/
function isSymbol(value) {
return typeof value == 'symbol' ||
- (isObjectLike(value) && objectToString.call(value) == symbolTag);
+ (isObjectLike(value) && baseGetTag(value) == symbolTag);
}
/**
@@ -12178,7 +12215,7 @@
* // => false
*/
function isWeakSet(value) {
- return isObjectLike(value) && objectToString.call(value) == weakSetTag;
+ return isObjectLike(value) && baseGetTag(value) == weakSetTag;
}
/**
@@ -12263,8 +12300,8 @@
if (isArrayLike(value)) {
return isString(value) ? stringToArray(value) : copyArray(value);
}
- if (iteratorSymbol && value[iteratorSymbol]) {
- return iteratorToArray(value[iteratorSymbol]());
+ if (symIterator && value[symIterator]) {
+ return iteratorToArray(value[symIterator]());
}
var tag = getTag(value),
func = tag == mapTag ? mapToArray : (tag == setTag ? setToArray : values);
@@ -12697,7 +12734,7 @@
*/
function create(prototype, properties) {
var result = baseCreate(prototype);
- return properties ? baseAssign(result, properties) : result;
+ return properties == null ? result : baseAssign(result, properties);
}
/**
@@ -13804,7 +13841,7 @@
* // => ['h', 'i']
*/
function values(object) {
- return object ? baseValues(object, keys(object)) : [];
+ return object == null ? [] : baseValues(object, keys(object));
}
/**
@@ -15191,7 +15228,7 @@
* // => 'no match'
*/
function cond(pairs) {
- var length = pairs ? pairs.length : 0,
+ var length = pairs == null ? 0 : pairs.length,
toIteratee = getIteratee();
pairs = !length ? [] : arrayMap(pairs, function(pair) {
@@ -16943,8 +16980,8 @@
// Add lazy aliases.
lodash.prototype.first = lodash.prototype.head;
- if (iteratorSymbol) {
- lodash.prototype[iteratorSymbol] = wrapperToIterator;
+ if (symIterator) {
+ lodash.prototype[symIterator] = wrapperToIterator;
}
return lodash;
});
diff --git a/package.json b/package.json
index 6e27b4f770..362eee88f8 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "lodash",
- "version": "4.16.4",
+ "version": "4.16.5",
"license": "MIT",
"private": true,
"main": "lodash.js",
@@ -28,8 +28,8 @@
"validate": "npm run style && npm run test"
},
"devDependencies": {
- "async": "^2.0.1",
- "benchmark": "^2.1.1",
+ "async": "^2.1.2",
+ "benchmark": "^2.1.2",
"chalk": "^1.1.3",
"codecov.io": "~0.1.6",
"coveralls": "^2.11.14",
@@ -38,22 +38,22 @@
"dojo": "^1.11.2",
"ecstatic": "^2.1.0",
"fs-extra": "~0.30.0",
- "glob": "^7.1.0",
+ "glob": "^7.1.1",
"istanbul": "0.4.5",
"jquery": "^3.1.1",
"jscs": "^3.0.7",
"lodash": "4.16.2",
"lodash-doc-globals": "^0.1.1",
- "markdown-doctest": "^0.8.1",
- "optional-dev-dependency": "^1.3.0",
+ "markdown-doctest": "^0.9.0",
+ "optional-dev-dependency": "^1.4.0",
"platform": "^1.3.1",
"qunit-extras": "^3.0.0",
"qunitjs": "^2.0.1",
- "request": "^2.75.0",
+ "request": "^2.76.0",
"requirejs": "^2.3.2",
"sauce-tunnel": "^2.5.0",
- "uglify-js": "2.7.3",
- "webpack": "^1.13.2"
+ "uglify-js": "2.7.4",
+ "webpack": "^1.13.3"
},
"greenkeeper": {
"ignore": [
diff --git a/perf/asset/perf-ui.js b/perf/asset/perf-ui.js
index f368c6c6d2..049d4d2a16 100644
--- a/perf/asset/perf-ui.js
+++ b/perf/asset/perf-ui.js
@@ -39,7 +39,7 @@
span1.innerHTML =
'' +
'';
var span2 = document.createElement('span');
diff --git a/test/asset/worker.js b/test/asset/worker.js
index 95e3ab8a8e..a44463045c 100644
--- a/test/asset/worker.js
+++ b/test/asset/worker.js
@@ -14,4 +14,4 @@ addEventListener('message', function(e) {
}
postMessage(_.VERSION);
}
-}, false);
+});
diff --git a/test/backbone.html b/test/backbone.html
index dd3df9fe05..e338f2799f 100644
--- a/test/backbone.html
+++ b/test/backbone.html
@@ -40,36 +40,38 @@
var lodash = _.noConflict();
return function(_) {
- lodash.defaultsDeep(_, { 'templateSettings': lodash.templateSettings });
- lodash.mixin(_, lodash.pick(lodash, lodash.difference([
- 'countBy',
- 'debounce',
- 'difference',
- 'find',
- 'findIndex',
- 'findLastIndex',
- 'groupBy',
- 'includes',
- 'invert',
- 'invokeMap',
- 'keyBy',
- 'omit',
- 'partition',
- 'reduceRight',
- 'reject',
- 'sample',
- 'without'
- ], lodash.functions(_))));
+ lodash(_)
+ .defaultsDeep({ 'templateSettings': lodash.templateSettings })
+ .mixin(lodash.pick(lodash, lodash.difference([
+ 'countBy',
+ 'debounce',
+ 'difference',
+ 'find',
+ 'findIndex',
+ 'findLastIndex',
+ 'groupBy',
+ 'includes',
+ 'invert',
+ 'invokeMap',
+ 'keyBy',
+ 'omit',
+ 'partition',
+ 'reduceRight',
+ 'reject',
+ 'sample',
+ 'without'
+ ], lodash.functions(_))))
+ .value();
lodash.forOwn(keyMap, function(realName, otherName) {
_[otherName] = lodash[realName];
_.prototype[otherName] = lodash.prototype[realName];
});
-
lodash.forOwn(aliasToReal, function(realName, alias) {
_[alias] = _[realName];
_.prototype[alias] = _.prototype[realName];
});
+ return _;
};
}());
@@ -147,7 +149,7 @@
QUnit.config.autostart = false;
require(getConfig(), ['underscore'], function(lodash) {
- mixinPrereqs(lodash);
+ _ = mixinPrereqs(lodash);
require(getConfig(), ['backbone'], function() {
require(getConfig(), [
'test/setup/dom-setup',
@@ -159,9 +161,7 @@
'test/router',
'test/view',
'test/sync'
- ], function() {
- QUnit.start();
- });
+ ], QUnit.start);
});
});
}());
diff --git a/test/saucelabs.js b/test/saucelabs.js
index 27287b078f..62c3ff4f1f 100644
--- a/test/saucelabs.js
+++ b/test/saucelabs.js
@@ -4,11 +4,6 @@
/** Environment shortcut. */
var env = process.env;
-if (env.TRAVIS_SECURE_ENV_VARS == 'false') {
- console.log('Skipping Sauce Labs jobs; secure environment variables are unavailable');
- process.exit(0);
-}
-
/** Load Node.js modules. */
var EventEmitter = require('events').EventEmitter,
http = require('http'),
@@ -104,11 +99,11 @@ var browserNameMap = {
/** List of platforms to load the runner on. */
var platforms = [
['Linux', 'android', '5.1'],
+ ['Windows 10', 'chrome', '54'],
['Windows 10', 'chrome', '53'],
- ['Windows 10', 'chrome', '52'],
['Windows 10', 'firefox', '49'],
['Windows 10', 'firefox', '48'],
- ['Windows 10', 'microsoftedge', '13'],
+ ['Windows 10', 'microsoftedge', '14'],
['Windows 10', 'internet explorer', '11'],
['Windows 8', 'internet explorer', '10'],
['Windows 7', 'internet explorer', '9'],
diff --git a/test/test-fp.js b/test/test-fp.js
index 869fc4c65d..a7803be7c5 100644
--- a/test/test-fp.js
+++ b/test/test-fp.js
@@ -273,6 +273,25 @@
assert.strictEqual(fp.isArray(array), true);
assert.strictEqual(isArray()(array), true);
});
+
+ QUnit.test('should convert method aliases', function(assert) {
+ assert.expect(1);
+
+ var all = fp.all.convert({ 'rearg': false }),
+ actual = all([0])(_.identity);
+
+ assert.strictEqual(actual, false);
+ });
+
+ QUnit.test('should convert remapped methods', function(assert) {
+ assert.expect(1);
+
+ var extendAll = fp.extendAll.convert({ 'immutable': false }),
+ object = {};
+
+ extendAll([object, { 'a': 1 }, { 'b': 2 }]);
+ assert.deepEqual(object, { 'a': 1, 'b': 2 });
+ });
}());
/*--------------------------------------------------------------------------*/
diff --git a/test/test.js b/test/test.js
index c36c73e28c..e4d2ea5f69 100644
--- a/test/test.js
+++ b/test/test.js
@@ -45,6 +45,7 @@
var phantom = root.phantom,
process = root.process,
amd = root.define && define.amd,
+ args = toArgs([1, 2, 3]),
argv = process && process.argv,
defineProperty = Object.defineProperty,
document = !phantom && root.document,
@@ -59,7 +60,8 @@
params = argv,
push = arrayProto.push,
realm = {},
- slice = arrayProto.slice;
+ slice = arrayProto.slice,
+ strictArgs = (function() { 'use strict'; return arguments; }(1, 2, 3));
var ArrayBuffer = root.ArrayBuffer,
Buffer = root.Buffer,
@@ -362,8 +364,13 @@
return /^(?:\$\$cov_\d+\$\$)$/.test(key);
})];
+ /** Used to test async functions. */
+ var asyncFunc = lodashStable.attempt(function() {
+ return Function('return async () => {}');
+ });
+
/** Used to test generator functions. */
- var generator = lodashStable.attempt(function() {
+ var genFunc = lodashStable.attempt(function() {
return Function('return function*(){}');
});
@@ -492,6 +499,17 @@
}
}
+ /**
+ * Converts `array` to an `arguments` object.
+ *
+ * @private
+ * @param {Array} array The array to convert.
+ * @returns {Object} Returns the converted `arguments` object.
+ */
+ function toArgs(array) {
+ return (function() { return arguments; }.apply(undefined, array));
+ }
+
/*--------------------------------------------------------------------------*/
// Add bizarro values.
@@ -646,7 +664,7 @@
' });',
'',
' return object;',
- '}())'
+ '}());'
].join('\n')));
});
@@ -660,11 +678,12 @@
var idoc = (idoc = iframe.contentDocument || iframe.contentWindow).document || idoc;
idoc.write([
+ '',
+ '',
'',
+ '',
+ ''
].join('\n'));
idoc.close();
@@ -1256,8 +1278,8 @@
QUnit.test('should not force a minimum argument count', function(assert) {
assert.expect(1);
- var capped = _.ary(fn, 3),
- args = ['a', 'b', 'c'];
+ var args = ['a', 'b', 'c'],
+ capped = _.ary(fn, 3);
var expected = lodashStable.map(args, function(arg, index) {
return args.slice(0, index);
@@ -1470,8 +1492,7 @@
QUnit.module('lodash.at');
(function() {
- var args = arguments,
- array = ['a', 'b', 'c'],
+ var array = ['a', 'b', 'c'],
object = { 'a': [{ 'b': { 'c': 3 } }, 4] };
QUnit.test('should return the elements corresponding to the specified keys', function(assert) {
@@ -1519,7 +1540,7 @@
assert.deepEqual(actual, ['d', 'a', 'c']);
});
- QUnit.test('should work with a falsey `object` argument when keys are given', function(assert) {
+ QUnit.test('should work with a falsey `object` when keys are given', function(assert) {
assert.expect(1);
var expected = lodashStable.map(falsey, lodashStable.constant(Array(4)));
@@ -1629,7 +1650,7 @@
skipAssert(assert, 2);
}
});
- }(1, 2, 3));
+ }());
/*--------------------------------------------------------------------------*/
@@ -1773,7 +1794,7 @@
assert.deepEqual(bound('a'), [object, 'a']);
});
- QUnit.test('should accept a falsey `thisArg` argument', function(assert) {
+ QUnit.test('should accept a falsey `thisArg`', function(assert) {
assert.expect(1);
var values = lodashStable.reject(falsey.slice(1), function(value) { return value == null; }),
@@ -2031,7 +2052,7 @@
QUnit.module('lodash.bindAll');
(function() {
- var args = arguments;
+ var args = toArgs(['a']);
var source = {
'_n0': -2,
@@ -2088,7 +2109,7 @@
assert.deepEqual(actual, [-2, -2, -1, -1]);
});
- QUnit.test('should work with an array `object` argument', function(assert) {
+ QUnit.test('should work with an array `object`', function(assert) {
assert.expect(1);
var array = ['push', 'pop'];
@@ -2108,7 +2129,7 @@
assert.deepEqual(actual, [1]);
});
- }('a'));
+ }());
/*--------------------------------------------------------------------------*/
@@ -2576,7 +2597,7 @@
QUnit.module('lodash.clamp');
(function() {
- QUnit.test('should work with a `max` argument', function(assert) {
+ QUnit.test('should work with a `max`', function(assert) {
assert.expect(2);
assert.strictEqual(_.clamp(5, 3), 3);
@@ -2701,7 +2722,9 @@
var uncloneable = {
'DOM elements': body,
'functions': Foo,
- 'generators': generator
+ 'async functions': asyncFunc,
+ 'generator functions': genFunc,
+ 'the `Proxy` constructor': Proxy
};
lodashStable.each(errors, function(error) {
@@ -3126,7 +3149,7 @@
});
});
});
- }(1, 2, 3));
+ }());
/*--------------------------------------------------------------------------*/
@@ -3738,7 +3761,7 @@
assert.deepEqual(lodashStable.keys(object), ['a']);
});
- QUnit.test('should accept a falsey `prototype` argument', function(assert) {
+ QUnit.test('should accept a falsey `prototype`', function(assert) {
assert.expect(1);
var expected = lodashStable.map(falsey, stubObject);
@@ -3750,7 +3773,7 @@
assert.deepEqual(actual, expected);
});
- QUnit.test('should ignore primitive `prototype` arguments and use an empty object instead', function(assert) {
+ QUnit.test('should ignore a primitive `prototype` and use an empty object instead', function(assert) {
assert.expect(1);
var expected = lodashStable.map(primitives, stubTrue);
@@ -4454,7 +4477,7 @@
QUnit.module('lodash.deburr');
(function() {
- QUnit.test('should convert Latin-1 Supplement letters to basic Latin', function(assert) {
+ QUnit.test('should convert Latin Unicode letters to basic Latin', function(assert) {
assert.expect(1);
var actual = lodashStable.map(burredLetters, _.deburr);
@@ -4851,8 +4874,7 @@
QUnit.module('difference methods');
lodashStable.each(['difference', 'differenceBy', 'differenceWith'], function(methodName) {
- var args = (function() { return arguments; }(1, 2, 3)),
- func = _[methodName];
+ var func = _[methodName];
QUnit.test('`_.' + methodName + '` should return the difference of two arrays', function(assert) {
assert.expect(1);
@@ -4954,7 +4976,7 @@
QUnit.module('lodash.differenceBy');
(function() {
- QUnit.test('should accept an `iteratee` argument', function(assert) {
+ QUnit.test('should accept an `iteratee`', function(assert) {
assert.expect(2);
var actual = _.differenceBy([2.1, 1.2], [2.3, 3.4], Math.floor);
@@ -4982,7 +5004,7 @@
QUnit.module('lodash.differenceWith');
(function() {
- QUnit.test('should work with a `comparator` argument', function(assert) {
+ QUnit.test('should work with a `comparator`', function(assert) {
assert.expect(1);
var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }],
@@ -5384,7 +5406,7 @@
assert.strictEqual(_.endsWith(string, 'b'), false);
});
- QUnit.test('should work with a `position` argument', function(assert) {
+ QUnit.test('should work with a `position`', function(assert) {
assert.expect(1);
assert.strictEqual(_.endsWith(string, 'b', 2), true);
@@ -6032,14 +6054,13 @@
QUnit.module('lodash.find and lodash.includes');
lodashStable.each(['includes', 'find'], function(methodName) {
- var args = (function() { return arguments; }(1, 2, 3, 4)),
- func = _[methodName],
+ var func = _[methodName],
isIncludes = methodName == 'includes',
resolve = methodName == 'find' ? lodashStable.curry(lodashStable.eq) : identity;
lodashStable.each({
'an `arguments` object': args,
- 'an array': [1, 2, 3, 4]
+ 'an array': [1, 2, 3]
},
function(collection, key) {
var values = lodashStable.toArray(collection);
@@ -6120,8 +6141,8 @@
];
var actual = [
- func(collection, resolve(values[2]), -2),
- func(collection, resolve(values[1]), -2)
+ func(collection, resolve(values[2]), -1),
+ func(collection, resolve(values[1]), -1)
];
assert.deepEqual(actual, expected);
@@ -6223,12 +6244,11 @@
QUnit.module('lodash.findLast');
(function() {
- var args = (function() { return arguments; }(1, 2, 3, 4)),
- resolve = lodashStable.curry(lodashStable.eq);
+ var resolve = lodashStable.curry(lodashStable.eq);
lodashStable.each({
'an `arguments` object': args,
- 'an array': [1, 2, 3, 4],
+ 'an array': [1, 2, 3]
},
function(collection, key) {
var values = lodashStable.toArray(collection);
@@ -6237,13 +6257,13 @@
assert.expect(1);
var expected = [
- values[2],
+ values[1],
undefined
];
var actual = [
- _.findLast(collection, resolve(values[2]), 2),
- _.findLast(collection, resolve(values[3]), 2)
+ _.findLast(collection, resolve(values[1]), 1),
+ _.findLast(collection, resolve(values[2]), 1)
];
assert.deepEqual(actual, expected);
@@ -6303,13 +6323,13 @@
assert.expect(1);
var expected = [
- values[2],
+ values[1],
undefined
];
var actual = [
- _.findLast(collection, resolve(values[2]), -2),
- _.findLast(collection, resolve(values[3]), -2)
+ _.findLast(collection, resolve(values[1]), -2),
+ _.findLast(collection, resolve(values[2]), -2)
];
assert.deepEqual(actual, expected);
@@ -6445,7 +6465,7 @@
});
});
- QUnit.test('`_.' + methodName + '` should accept a falsey `collection` argument', function(assert) {
+ QUnit.test('`_.' + methodName + '` should accept a falsey `collection`', function(assert) {
assert.expect(1);
var expected = lodashStable.map(falsey, stubArray);
@@ -6506,8 +6526,7 @@
QUnit.module('flatten methods');
(function() {
- var args = arguments,
- array = [1, [2, [3, [4]], 5]],
+ var array = [1, [2, [3, [4]], 5]],
methodNames = ['flatten', 'flattenDeep', 'flattenDepth'];
QUnit.test('should flatten `arguments` objects', function(assert) {
@@ -6628,7 +6647,7 @@
skipAssert(assert, 6);
}
});
- }(1, 2, 3));
+ }());
/*--------------------------------------------------------------------------*/
@@ -7528,7 +7547,7 @@
assert.deepEqual(actual, object);
});
- QUnit.test('should accept a falsey `array` argument', function(assert) {
+ QUnit.test('should accept a falsey `array`', function(assert) {
assert.expect(1);
var expected = lodashStable.map(falsey, stubObject);
@@ -7737,10 +7756,9 @@
QUnit.module('has methods');
lodashStable.each(['has', 'hasIn'], function(methodName) {
- var args = (function() { return arguments; }(1, 2, 3)),
- func = _[methodName],
+ var func = _[methodName],
isHas = methodName == 'has',
- sparseArgs = (function() { return arguments; }(1)),
+ sparseArgs = toArgs([1]),
sparseArray = Array(1),
sparseString = Object('a');
@@ -8212,7 +8230,7 @@
(function() {
var array = [1, 2, 3];
- QUnit.test('should accept a falsey `array` argument', function(assert) {
+ QUnit.test('should accept a falsey `array`', function(assert) {
assert.expect(1);
var expected = lodashStable.map(falsey, stubArray);
@@ -8286,7 +8304,7 @@
QUnit.module('lodash.inRange');
(function() {
- QUnit.test('should work with an `end` argument', function(assert) {
+ QUnit.test('should work with an `end`', function(assert) {
assert.expect(3);
assert.strictEqual(_.inRange(3, 5), true);
@@ -8294,7 +8312,7 @@
assert.strictEqual(_.inRange(6, 5), false);
});
- QUnit.test('should work with `start` and `end` arguments', function(assert) {
+ QUnit.test('should work with a `start` and `end`', function(assert) {
assert.expect(4);
assert.strictEqual(_.inRange(1, 1, 5), true);
@@ -8303,7 +8321,7 @@
assert.strictEqual(_.inRange(5, 1, 5), false);
});
- QUnit.test('should treat falsey `start` arguments as `0`', function(assert) {
+ QUnit.test('should treat falsey `start` as `0`', function(assert) {
assert.expect(13);
lodashStable.each(falsey, function(value, index) {
@@ -8352,8 +8370,7 @@
QUnit.module('intersection methods');
lodashStable.each(['intersection', 'intersectionBy', 'intersectionWith'], function(methodName) {
- var args = (function() { return arguments; }(1, 2, 3)),
- func = _[methodName];
+ var func = _[methodName];
QUnit.test('`_.' + methodName + '` should return the intersection of two arrays', function(assert) {
assert.expect(1);
@@ -8472,7 +8489,7 @@
QUnit.module('lodash.intersectionBy');
(function() {
- QUnit.test('should accept an `iteratee` argument', function(assert) {
+ QUnit.test('should accept an `iteratee`', function(assert) {
assert.expect(2);
var actual = _.intersectionBy([2.1, 1.2], [2.3, 3.4], Math.floor);
@@ -8500,7 +8517,7 @@
QUnit.module('lodash.intersectionWith');
(function() {
- QUnit.test('should work with a `comparator` argument', function(assert) {
+ QUnit.test('should work with a `comparator`', function(assert) {
assert.expect(1);
var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }],
@@ -8864,9 +8881,6 @@
QUnit.module('lodash.isArguments');
(function() {
- var args = (function() { return arguments; }(1, 2, 3)),
- strictArgs = (function() { 'use strict'; return arguments; }(1, 2, 3));
-
QUnit.test('should return `true` for `arguments` objects', function(assert) {
assert.expect(2);
@@ -8915,8 +8929,6 @@
QUnit.module('lodash.isArray');
(function() {
- var args = arguments;
-
QUnit.test('should return `true` for arrays', function(assert) {
assert.expect(1);
@@ -8957,15 +8969,13 @@
skipAssert(assert);
}
});
- }(1, 2, 3));
+ }());
/*--------------------------------------------------------------------------*/
QUnit.module('lodash.isArrayBuffer');
(function() {
- var args = arguments;
-
QUnit.test('should return `true` for array buffers', function(assert) {
assert.expect(1);
@@ -9012,15 +9022,13 @@
skipAssert(assert);
}
});
- }(1, 2, 3));
+ }());
/*--------------------------------------------------------------------------*/
QUnit.module('lodash.isArrayLike');
(function() {
- var args = arguments;
-
QUnit.test('should return `true` for array-like values', function(assert) {
assert.expect(1);
@@ -9032,7 +9040,7 @@
});
QUnit.test('should return `false` for non-arrays', function(assert) {
- assert.expect(11);
+ assert.expect(12);
var expected = lodashStable.map(falsey, function(value) {
return value === '';
@@ -9048,7 +9056,8 @@
assert.strictEqual(_.isArrayLike(new Date), false);
assert.strictEqual(_.isArrayLike(new Error), false);
assert.strictEqual(_.isArrayLike(_), false);
- assert.strictEqual(_.isArrayLike(generator), false);
+ assert.strictEqual(_.isArrayLike(asyncFunc), false);
+ assert.strictEqual(_.isArrayLike(genFunc), false);
assert.strictEqual(_.isArrayLike(slice), false);
assert.strictEqual(_.isArrayLike({ 'a': 1 }), false);
assert.strictEqual(_.isArrayLike(1), false);
@@ -9070,15 +9079,13 @@
skipAssert(assert);
}
});
- }(1, 2, 3));
+ }());
/*--------------------------------------------------------------------------*/
QUnit.module('lodash.isBoolean');
(function() {
- var args = arguments;
-
QUnit.test('should return `true` for booleans', function(assert) {
assert.expect(4);
@@ -9124,15 +9131,13 @@
skipAssert(assert);
}
});
- }(1, 2, 3));
+ }());
/*--------------------------------------------------------------------------*/
QUnit.module('lodash.isBuffer');
(function() {
- var args = arguments;
-
QUnit.test('should return `true` for buffers', function(assert) {
assert.expect(1);
@@ -9179,15 +9184,13 @@
skipAssert(assert);
}
});
- }(1, 2, 3));
+ }());
/*--------------------------------------------------------------------------*/
QUnit.module('lodash.isDate');
(function() {
- var args = arguments;
-
QUnit.test('should return `true` for dates', function(assert) {
assert.expect(1);
@@ -9228,31 +9231,32 @@
skipAssert(assert);
}
});
- }(1, 2, 3));
+ }());
/*--------------------------------------------------------------------------*/
QUnit.module('lodash.isElement');
(function() {
- var args = arguments;
+ QUnit.test('should return `true` for elements', function(assert) {
+ assert.expect(1);
- function Element() {
- this.nodeType = 1;
- }
+ if (document) {
+ assert.strictEqual(_.isElement(body), true);
+ }
+ else {
+ skipAssert(assert);
+ }
+ });
- QUnit.test('should return `false` for plain objects', function(assert) {
- assert.expect(7);
+ QUnit.test('should return `true` for non-plain objects', function(assert) {
+ assert.expect(1);
- var element = body || new Element;
+ function Foo() {
+ this.nodeType = 1;
+ }
- assert.strictEqual(_.isElement(element), true);
- assert.strictEqual(_.isElement({ 'nodeType': 1 }), false);
- assert.strictEqual(_.isElement({ 'nodeType': Object(1) }), false);
- assert.strictEqual(_.isElement({ 'nodeType': true }), false);
- assert.strictEqual(_.isElement({ 'nodeType': [1] }), false);
- assert.strictEqual(_.isElement({ 'nodeType': '1' }), false);
- assert.strictEqual(_.isElement({ 'nodeType': '001' }), false);
+ assert.strictEqual(_.isElement(new Foo), true);
});
QUnit.test('should return `false` for non DOM elements', function(assert) {
@@ -9280,6 +9284,17 @@
assert.strictEqual(_.isElement(symbol), false);
});
+ QUnit.test('should return `false` for plain objects', function(assert) {
+ assert.expect(6);
+
+ assert.strictEqual(_.isElement({ 'nodeType': 1 }), false);
+ assert.strictEqual(_.isElement({ 'nodeType': Object(1) }), false);
+ assert.strictEqual(_.isElement({ 'nodeType': true }), false);
+ assert.strictEqual(_.isElement({ 'nodeType': [1] }), false);
+ assert.strictEqual(_.isElement({ 'nodeType': '1' }), false);
+ assert.strictEqual(_.isElement({ 'nodeType': '001' }), false);
+ });
+
QUnit.test('should work with a DOM element from another realm', function(assert) {
assert.expect(1);
@@ -9290,15 +9305,13 @@
skipAssert(assert);
}
});
- }(1, 2, 3));
+ }());
/*--------------------------------------------------------------------------*/
QUnit.module('lodash.isEmpty');
(function() {
- var args = arguments;
-
QUnit.test('should return `true` for empty values', function(assert) {
assert.expect(10);
@@ -9444,7 +9457,7 @@
skipAssert(assert);
}
});
- }(1, 2, 3));
+ }());
/*--------------------------------------------------------------------------*/
@@ -9854,8 +9867,8 @@
QUnit.test('should compare `arguments` objects', function(assert) {
assert.expect(2);
- var args1 = (function() { return arguments; }(1, 2, 3)),
- args2 = (function() { return arguments; }(1, 2, 3)),
+ var args1 = (function() { return arguments; }()),
+ args2 = (function() { return arguments; }()),
args3 = (function() { return arguments; }(1, 2));
assert.strictEqual(_.isEqual(args1, args2), true);
@@ -9865,8 +9878,7 @@
QUnit.test('should treat `arguments` objects like `Object` objects', function(assert) {
assert.expect(4);
- var args = (function() { return arguments; }(1, 2, 3)),
- object = { '0': 1, '1': 2, '2': 3 };
+ var object = { '0': 1, '1': 2, '2': 3 };
function Foo() {}
Foo.prototype = object;
@@ -10381,8 +10393,6 @@
QUnit.module('lodash.isError');
(function() {
- var args = arguments;
-
QUnit.test('should return `true` for error objects', function(assert) {
assert.expect(1);
@@ -10425,6 +10435,12 @@
assert.strictEqual(_.isError(symbol), false);
});
+ QUnit.test('should return `false` for plain objects', function(assert) {
+ assert.expect(1);
+
+ assert.strictEqual(_.isError({ 'name': 'Error', 'message': '' }), false);
+ });
+
QUnit.test('should work with an error object from another realm', function(assert) {
assert.expect(1);
@@ -10441,15 +10457,13 @@
skipAssert(assert);
}
});
- }(1, 2, 3));
+ }());
/*--------------------------------------------------------------------------*/
QUnit.module('lodash.isFinite');
(function() {
- var args = arguments;
-
QUnit.test('should return `true` for finite values', function(assert) {
assert.expect(1);
@@ -10499,15 +10513,13 @@
assert.deepEqual(actual, expected);
});
- }(1, 2, 3));
+ }());
/*--------------------------------------------------------------------------*/
QUnit.module('lodash.isFunction');
(function() {
- var args = arguments;
-
QUnit.test('should return `true` for functions', function(assert) {
assert.expect(2);
@@ -10515,10 +10527,16 @@
assert.strictEqual(_.isFunction(slice), true);
});
+ QUnit.test('should return `true` for async functions', function(assert) {
+ assert.expect(1);
+
+ assert.strictEqual(_.isFunction(asyncFunc), typeof asyncFunc == 'function');
+ });
+
QUnit.test('should return `true` for generator functions', function(assert) {
assert.expect(1);
- assert.strictEqual(_.isFunction(generator), typeof generator == 'function');
+ assert.strictEqual(_.isFunction(genFunc), typeof genFunc == 'function');
});
QUnit.test('should return `true` for the `Proxy` constructor', function(assert) {
@@ -10586,15 +10604,14 @@
skipAssert(assert);
}
});
- }(1, 2, 3));
+ }());
/*--------------------------------------------------------------------------*/
QUnit.module('isInteger methods');
lodashStable.each(['isInteger', 'isSafeInteger'], function(methodName) {
- var args = arguments,
- func = _[methodName],
+ var func = _[methodName],
isSafe = methodName == 'isSafeInteger';
QUnit.test('`_.' + methodName + '` should return `true` for integer values', function(assert) {
@@ -10680,8 +10697,6 @@
QUnit.module('lodash.isMap');
(function() {
- var args = arguments;
-
QUnit.test('should return `true` for maps', function(assert) {
assert.expect(1);
@@ -10742,7 +10757,7 @@
skipAssert(assert);
}
});
- }(1, 2, 3));
+ }());
/*--------------------------------------------------------------------------*/
@@ -10902,8 +10917,6 @@
QUnit.module('lodash.isNaN');
(function() {
- var args = arguments;
-
QUnit.test('should return `true` for NaNs', function(assert) {
assert.expect(2);
@@ -10949,15 +10962,13 @@
skipAssert(assert);
}
});
- }(1, 2, 3));
+ }());
/*--------------------------------------------------------------------------*/
QUnit.module('lodash.isNative');
(function() {
- var args = arguments;
-
QUnit.test('should return `true` for native methods', function(assert) {
assert.expect(1);
@@ -11050,15 +11061,13 @@
skipAssert(assert, 2);
}
});
- }(1, 2, 3));
+ }());
/*--------------------------------------------------------------------------*/
QUnit.module('lodash.isNil');
(function() {
- var args = arguments;
-
QUnit.test('should return `true` for nullish values', function(assert) {
assert.expect(3);
@@ -11111,15 +11120,13 @@
skipAssert(assert, 2);
}
});
- }(1, 2, 3));
+ }());
/*--------------------------------------------------------------------------*/
QUnit.module('lodash.isNull');
(function() {
- var args = arguments;
-
QUnit.test('should return `true` for `null` values', function(assert) {
assert.expect(1);
@@ -11163,15 +11170,13 @@
skipAssert(assert);
}
});
- }(1, 2, 3));
+ }());
/*--------------------------------------------------------------------------*/
QUnit.module('lodash.isNumber');
(function() {
- var args = arguments;
-
QUnit.test('should return `true` for numbers', function(assert) {
assert.expect(3);
@@ -11216,15 +11221,13 @@
skipAssert(assert);
}
});
- }(1, 2, 3));
+ }());
/*--------------------------------------------------------------------------*/
QUnit.module('lodash.isObject');
(function() {
- var args = arguments;
-
QUnit.test('should return `true` for objects', function(assert) {
assert.expect(13);
@@ -11289,15 +11292,13 @@
skipAssert(assert, 7);
}
});
- }(1, 2, 3));
+ }());
/*--------------------------------------------------------------------------*/
QUnit.module('lodash.isObjectLike');
(function() {
- var args = arguments;
-
QUnit.test('should return `true` for objects', function(assert) {
assert.expect(9);
@@ -11340,7 +11341,7 @@
skipAssert(assert, 6);
}
});
- }(1, 2, 3));
+ }());
/*--------------------------------------------------------------------------*/
@@ -11373,17 +11374,20 @@
assert.strictEqual(_.isPlainObject(object), true);
});
- QUnit.test('should return `true` for plain objects with a custom `valueOf` property', function(assert) {
- assert.expect(2);
+ QUnit.test('should return `true` for objects with a `valueOf` property', function(assert) {
+ assert.expect(1);
assert.strictEqual(_.isPlainObject({ 'valueOf': 0 }), true);
+ });
- if (element) {
- var valueOf = element.valueOf;
- element.valueOf = 0;
+ QUnit.test('should return `true` for objects with a writable `Symbol.toStringTag` property', function(assert) {
+ assert.expect(1);
- assert.strictEqual(_.isPlainObject(element), false);
- element.valueOf = valueOf;
+ if (Symbol && Symbol.toStringTag) {
+ var object = {};
+ object[Symbol.toStringTag] = 'X';
+
+ assert.deepEqual(_.isPlainObject(object), true);
}
else {
skipAssert(assert);
@@ -11407,7 +11411,7 @@
}
});
- QUnit.test('should return `false` for Object objects without a `toStringTag` of "Object"', function(assert) {
+ QUnit.test('should return `false` for non-Object objects', function(assert) {
assert.expect(3);
assert.strictEqual(_.isPlainObject(arguments), false);
@@ -11431,6 +11435,41 @@
assert.strictEqual(_.isPlainObject(symbol), false);
});
+ QUnit.test('should return `false` for objects with a read-only `Symbol.toStringTag` property', function(assert) {
+ assert.expect(1);
+
+ if (Symbol && Symbol.toStringTag) {
+ var object = {};
+ defineProperty(object, Symbol.toStringTag, {
+ 'configurable': true,
+ 'enumerable': false,
+ 'writable': false,
+ 'value': 'X'
+ });
+
+ assert.deepEqual(_.isPlainObject(object), false);
+ }
+ else {
+ skipAssert(assert);
+ }
+ });
+
+ QUnit.test('should not mutate `value`', function(assert) {
+ assert.expect(2);
+
+ if (Symbol && Symbol.toStringTag) {
+ var proto = {};
+ proto[Symbol.toStringTag] = undefined;
+ var object = create(proto);
+
+ assert.strictEqual(_.isPlainObject(object), false);
+ assert.notOk(lodashStable.has(object, Symbol.toStringTag));
+ }
+ else {
+ skipAssert(assert, 2);
+ }
+ });
+
QUnit.test('should work with objects from another realm', function(assert) {
assert.expect(1);
@@ -11448,8 +11487,6 @@
QUnit.module('lodash.isRegExp');
(function() {
- var args = arguments;
-
QUnit.test('should return `true` for regexes', function(assert) {
assert.expect(2);
@@ -11491,15 +11528,13 @@
skipAssert(assert);
}
});
- }(1, 2, 3));
+ }());
/*--------------------------------------------------------------------------*/
QUnit.module('lodash.isSet');
(function() {
- var args = arguments;
-
QUnit.test('should return `true` for sets', function(assert) {
assert.expect(1);
@@ -11560,15 +11595,13 @@
skipAssert(assert);
}
});
- }(1, 2, 3));
+ }());
/*--------------------------------------------------------------------------*/
QUnit.module('lodash.isString');
(function() {
- var args = arguments;
-
QUnit.test('should return `true` for strings', function(assert) {
assert.expect(2);
@@ -11612,15 +11645,13 @@
skipAssert(assert);
}
});
- }(1, 2, 3));
+ }());
/*--------------------------------------------------------------------------*/
QUnit.module('lodash.isSymbol');
(function() {
- var args = arguments;
-
QUnit.test('should return `true` for symbols', function(assert) {
assert.expect(2);
@@ -11667,15 +11698,13 @@
skipAssert(assert);
}
});
- }(1, 2, 3));
+ }());
/*--------------------------------------------------------------------------*/
QUnit.module('lodash.isTypedArray');
(function() {
- var args = arguments;
-
QUnit.test('should return `true` for typed arrays', function(assert) {
assert.expect(1);
@@ -11737,15 +11766,13 @@
skipAssert(assert);
}
});
- }(1, 2, 3));
+ }());
/*--------------------------------------------------------------------------*/
QUnit.module('lodash.isUndefined');
(function() {
- var args = arguments;
-
QUnit.test('should return `true` for `undefined` values', function(assert) {
assert.expect(2);
@@ -11796,15 +11823,13 @@
skipAssert(assert);
}
});
- }(1, 2, 3));
+ }());
/*--------------------------------------------------------------------------*/
QUnit.module('lodash.isWeakMap');
(function() {
- var args = arguments;
-
QUnit.test('should return `true` for weak maps', function(assert) {
assert.expect(1);
@@ -11865,15 +11890,13 @@
skipAssert(assert);
}
});
- }(1, 2, 3));
+ }());
/*--------------------------------------------------------------------------*/
QUnit.module('lodash.isWeakSet');
(function() {
- var args = arguments;
-
QUnit.test('should return `true` for weak sets', function(assert) {
assert.expect(1);
@@ -11921,7 +11944,7 @@
skipAssert(assert);
}
});
- }(1, 2, 3));
+ }());
/*--------------------------------------------------------------------------*/
@@ -11963,14 +11986,8 @@
lodashStable.each(funcs, function(methodName) {
if (xml) {
- var pass = true;
-
- try {
- _[methodName](xml);
- } catch (e) {
- pass = false;
- }
- assert.ok(pass, '`_.' + methodName + '` should not error');
+ _[methodName](xml);
+ assert.ok(true, '`_.' + methodName + '` should not error');
}
else {
skipAssert(assert);
@@ -12839,9 +12856,7 @@
QUnit.module('keys methods');
lodashStable.each(['keys', 'keysIn'], function(methodName) {
- var args = (function() { return arguments; }(1, 2, 3)),
- strictArgs = (function() { 'use strict'; return arguments; }(1, 2, 3)),
- func = _[methodName],
+ var func = _[methodName],
isKeys = methodName == 'keys';
QUnit.test('`_.' + methodName + '` should return the string keyed property names of `object`', function(assert) {
@@ -13279,7 +13294,7 @@
isIndexOf = !/last/i.test(methodName),
isSorted = /^sorted/.test(methodName);
- QUnit.test('`_.' + methodName + '` should accept a falsey `array` argument', function(assert) {
+ QUnit.test('`_.' + methodName + '` should accept a falsey `array`', function(assert) {
assert.expect(1);
var expected = lodashStable.map(falsey, lodashStable.constant(-1));
@@ -13395,7 +13410,7 @@
});
});
- QUnit.test('should accept a falsey `collection` argument', function(assert) {
+ QUnit.test('should accept a falsey `collection`', function(assert) {
assert.expect(1);
var expected = lodashStable.map(falsey, stubArray);
@@ -13607,7 +13622,7 @@
assert.deepEqual(actual, { 'a': 'a' });
});
- QUnit.test('`_.' + methodName + '` should accept a falsey `object` argument', function(assert) {
+ QUnit.test('`_.' + methodName + '` should accept a falsey `object`', function(assert) {
assert.expect(1);
var expected = lodashStable.map(falsey, stubObject);
@@ -13964,7 +13979,7 @@
assert.deepEqual(actual, expected);
});
- QUnit.test('`_.' + methodName + '` hould return `true` when comparing an empty `source`', function(assert) {
+ QUnit.test('`_.' + methodName + '` should return `true` when comparing an empty `source`', function(assert) {
assert.expect(1);
var object = { 'a': 1 },
@@ -14496,7 +14511,7 @@
(function() {
var objects = [{ 'a': 2 }, { 'a': 3 }, { 'a': 1 }];
- QUnit.test('should work with an `iteratee` argument', function(assert) {
+ QUnit.test('should work with an `iteratee`', function(assert) {
assert.expect(1);
var actual = _.meanBy(objects, function(object) {
@@ -14581,7 +14596,7 @@
assert.strictEqual(memoized(1, 3, 5), 6);
});
- QUnit.test('should support a `resolver` argument', function(assert) {
+ QUnit.test('should support a `resolver`', function(assert) {
assert.expect(2);
var fn = function(a, b, c) { return a + b + c; },
@@ -14611,12 +14626,13 @@
assert.raises(function() { _.memoize(noop, true); }, TypeError);
});
- QUnit.test('should not error if `resolver` is falsey', function(assert) {
+ QUnit.test('should not error if `resolver` is nullish', function(assert) {
assert.expect(1);
- var expected = lodashStable.map(falsey, stubTrue);
+ var values = [, null, undefined],
+ expected = lodashStable.map(values, stubTrue);
- var actual = lodashStable.map(falsey, function(resolver, index) {
+ var actual = lodashStable.map(values, function(resolver, index) {
try {
return _.isFunction(index ? _.memoize(noop, resolver) : _.memoize(noop));
} catch (e) {}
@@ -14655,7 +14671,7 @@
lodashStable.times(2, function(index) {
var count = 0,
- resolver = index && identity;
+ resolver = index ? identity : undefined;
var memoized = _.memoize(function() {
count++;
@@ -14752,8 +14768,6 @@
QUnit.module('lodash.merge');
(function() {
- var args = arguments;
-
QUnit.test('should merge `source` into `object`', function(assert) {
assert.expect(1);
@@ -15027,7 +15041,7 @@
assert.deepEqual(actual.a, [[3, 4, 3]]);
});
- QUnit.test('should merge plain-objects onto non plain-objects', function(assert) {
+ QUnit.test('should merge plain objects onto non-plain objects', function(assert) {
assert.expect(4);
function Foo(object) {
@@ -15124,7 +15138,7 @@
assert.deepEqual(actual, expected);
});
- }(1, 2, 3));
+ }());
/*--------------------------------------------------------------------------*/
@@ -15585,7 +15599,7 @@
func = _[methodName],
isMax = methodName == 'maxBy';
- QUnit.test('`_.' + methodName + '` should work with an `iteratee` argument', function(assert) {
+ QUnit.test('`_.' + methodName + '` should work with an `iteratee`', function(assert) {
assert.expect(1);
var actual = func(array, function(n) {
@@ -15705,7 +15719,7 @@
reset(_);
});
- QUnit.test('should accept an `object` argument', function(assert) {
+ QUnit.test('should accept an `object`', function(assert) {
assert.expect(1);
var object = {};
@@ -15748,7 +15762,7 @@
assert.strictEqual(_.mixin(object, new Foo), object);
});
- QUnit.test('should accept an `options` argument', function(assert) {
+ QUnit.test('should accept an `options`', function(assert) {
assert.expect(8);
function message(func, chain) {
@@ -16328,7 +16342,7 @@
QUnit.module('lodash.omit');
(function() {
- var args = arguments,
+ var args = toArgs(['a', 'c']),
object = { 'a': 1, 'b': 2, 'c': 3, 'd': 4 };
QUnit.test('should flatten `props`', function(assert) {
@@ -16338,7 +16352,7 @@
assert.deepEqual(_.omit(object, ['a', 'd'], 'c'), { 'b': 2 });
});
- QUnit.test('should work with a primitive `object` argument', function(assert) {
+ QUnit.test('should work with a primitive `object`', function(assert) {
assert.expect(1);
stringProto.a = 1;
@@ -16372,7 +16386,7 @@
assert.deepEqual(_.omit({ '0': 'a' }, 0), {});
});
- }('a', 'c'));
+ }());
/*--------------------------------------------------------------------------*/
@@ -16496,7 +16510,7 @@
}
});
- QUnit.test('`_.' + methodName + '` should work with an array `object` argument', function(assert) {
+ QUnit.test('`_.' + methodName + '` should work with an array `object`', function(assert) {
assert.expect(1);
var array = [1, 2, 3];
@@ -16537,20 +16551,14 @@
QUnit.test('should not throw more than once', function(assert) {
assert.expect(2);
- var pass = true;
-
var once = _.once(function() {
throw new Error;
});
assert.raises(once);
- try {
- once();
- } catch (e) {
- pass = false;
- }
- assert.ok(pass);
+ once();
+ assert.ok(true);
});
}());
@@ -17044,7 +17052,7 @@
QUnit.module('lodash.parseInt');
(function() {
- QUnit.test('should accept a `radix` argument', function(assert) {
+ QUnit.test('should accept a `radix`', function(assert) {
assert.expect(1);
var expected = lodashStable.range(2, 37);
@@ -17565,7 +17573,7 @@
QUnit.module('lodash.pick');
(function() {
- var args = arguments,
+ var args = toArgs(['a', 'c']),
object = { 'a': 1, 'b': 2, 'c': 3, 'd': 4 };
QUnit.test('should flatten `props`', function(assert) {
@@ -17575,7 +17583,7 @@
assert.deepEqual(_.pick(object, ['a', 'd'], 'c'), { 'a': 1, 'c': 3, 'd': 4 });
});
- QUnit.test('should work with a primitive `object` argument', function(assert) {
+ QUnit.test('should work with a primitive `object`', function(assert) {
assert.expect(1);
assert.deepEqual(_.pick('', 'slice'), { 'slice': ''.slice });
@@ -17600,7 +17608,7 @@
assert.deepEqual(_.pick({ '0': 'a', '1': 'b' }, 0), { '0': 'a' });
});
- }('a', 'c'));
+ }());
/*--------------------------------------------------------------------------*/
@@ -17694,7 +17702,7 @@
}
});
- QUnit.test('`_.' + methodName + '` should work with an array `object` argument', function(assert) {
+ QUnit.test('`_.' + methodName + '` should work with an array `object`', function(assert) {
assert.expect(1);
var array = [1, 2, 3];
@@ -18006,7 +18014,7 @@
QUnit.module('lodash.pullAllBy');
(function() {
- QUnit.test('should accept an `iteratee` argument', function(assert) {
+ QUnit.test('should accept an `iteratee`', function(assert) {
assert.expect(1);
var array = [{ 'x': 1 }, { 'x': 2 }, { 'x': 3 }, { 'x': 1 }];
@@ -18037,7 +18045,7 @@
QUnit.module('lodash.pullAllWith');
(function() {
- QUnit.test('should work with a `comparator` argument', function(assert) {
+ QUnit.test('should work with a `comparator`', function(assert) {
assert.expect(1);
var objects = [{ 'x': 1, 'y': 1 }, { 'x': 2, 'y': 2 }, { 'x': 3, 'y': 3 }],
@@ -18230,7 +18238,7 @@
assert.deepEqual(actual, [undefined]);
});
- QUnit.test('should work with a falsey `array` argument when keys are given', function(assert) {
+ QUnit.test('should work with a falsey `array` when keys are given', function(assert) {
assert.expect(1);
var values = falsey.slice(),
@@ -18263,7 +18271,7 @@
assert.deepEqual(actual, [0, 1]);
});
- QUnit.test('should support a `min` and `max` argument', function(assert) {
+ QUnit.test('should support a `min` and `max`', function(assert) {
assert.expect(1);
var min = 5,
@@ -18275,7 +18283,7 @@
}));
});
- QUnit.test('should support not providing a `max` argument', function(assert) {
+ QUnit.test('should support not providing a `max`', function(assert) {
assert.expect(1);
var min = 0,
@@ -18340,7 +18348,7 @@
assert.ok(actual >= min && actual <= max);
});
- QUnit.test('should support providing a `floating` argument', function(assert) {
+ QUnit.test('should support providing a `floating`', function(assert) {
assert.expect(3);
var actual = _.random(true);
@@ -18394,7 +18402,7 @@
assert.deepEqual(func(5, 1), resolve([5, 4, 3, 2]));
});
- QUnit.test('`_.' + methodName + '` should work with `start`, `end`, and `step` arguments', function(assert) {
+ QUnit.test('`_.' + methodName + '` should work with a `start`, `end`, and `step`', function(assert) {
assert.expect(3);
assert.deepEqual(func(0, -4, -1), resolve([0, -1, -2, -3]));
@@ -18428,7 +18436,7 @@
assert.strictEqual(1 / actual[0], -Infinity);
});
- QUnit.test('`_.' + methodName + '` should treat falsey `start` arguments as `0`', function(assert) {
+ QUnit.test('`_.' + methodName + '` should treat falsey `start` as `0`', function(assert) {
assert.expect(13);
lodashStable.each(falsey, function(value, index) {
@@ -20042,8 +20050,7 @@
QUnit.module('lodash.size');
(function() {
- var args = arguments,
- array = [1, 2, 3];
+ var array = [1, 2, 3];
QUnit.test('should return the number of own enumerable string keyed properties of an object', function(assert) {
assert.expect(1);
@@ -20057,7 +20064,7 @@
assert.strictEqual(_.size(array), 3);
});
- QUnit.test('should accept a falsey `object` argument', function(assert) {
+ QUnit.test('should accept a falsey `object`', function(assert) {
assert.expect(1);
var expected = lodashStable.map(falsey, stubZero);
@@ -20137,7 +20144,7 @@
assert.strictEqual(_.size({ 'length': '0' }), 1);
});
- }(1, 2, 3));
+ }());
/*--------------------------------------------------------------------------*/
@@ -20623,12 +20630,13 @@
assert.deepEqual(actual, expected);
});
- QUnit.test('`_.' + methodName + '` should accept a falsey `array` argument and a `value`', function(assert) {
+ QUnit.test('`_.' + methodName + '` should accept a nullish `array` and a `value`', function(assert) {
assert.expect(1);
- var expected = lodashStable.map(falsey, lodashStable.constant([0, 0, 0]));
+ var values = [null, undefined],
+ expected = lodashStable.map(values, lodashStable.constant([0, 0, 0]));
- var actual = lodashStable.map(falsey, function(array) {
+ var actual = lodashStable.map(values, function(array) {
return [func(array, 1), func(array, undefined), func(array, NaN)];
});
@@ -20834,7 +20842,7 @@
assert.deepEqual(spread([4, 2]), [4, 2]);
});
- QUnit.test('should accept a falsey `array` argument', function(assert) {
+ QUnit.test('should accept a falsey `array`', function(assert) {
assert.expect(1);
var spread = _.spread(stubTrue),
@@ -20924,7 +20932,7 @@
assert.strictEqual(_.startsWith(string, 'b'), false);
});
- QUnit.test('should work with a `position` argument', function(assert) {
+ QUnit.test('should work with a `position`', function(assert) {
assert.expect(1);
assert.strictEqual(_.startsWith(string, 'b', 1), true);
@@ -21155,7 +21163,7 @@
var array = [6, 4, 2],
objects = [{ 'a': 2 }, { 'a': 3 }, { 'a': 1 }];
- QUnit.test('should work with an `iteratee` argument', function(assert) {
+ QUnit.test('should work with an `iteratee`', function(assert) {
assert.expect(1);
var actual = _.sumBy(objects, function(object) {
@@ -21238,7 +21246,7 @@
(function() {
var array = [1, 2, 3];
- QUnit.test('should accept a falsey `array` argument', function(assert) {
+ QUnit.test('should accept a falsey `array`', function(assert) {
assert.expect(1);
var expected = lodashStable.map(falsey, stubArray);
@@ -22149,21 +22157,6 @@
assert.strictEqual(compiled({ 'value': 3 }), '