f(h,y))&&((u||v)&&h.push(y),s.push(g))}return v?(l(h.k),c(h)):u&&l(h),s}function lt(n){return function(t,e,r){var u={};e=J.createCallback(e,r,3),r=-1;var o=t?t.length:0;if(typeof o=="number")for(;++r 3&&"function"==typeof r[t-2])var e=Q(r[--t-1],r[t--],2);else t>2&&"function"==typeof r[t-1]&&(e=r[--t]);for(var u=p(arguments,1,t),o=-1,a=i(),f=i();++o Fred, Wilma, & Pebbles
+
+If a property name is provided for `callback` the created "_.pluck" style
+callback will return the property value of the given element.
+
+
+If an object is provided for `callback` the created "_.where" style callback
+will return `true` for elements that have the properties of the given object,
+else `false`.
#### Arguments
1. `array` *(Array)*: The array to search.
@@ -302,7 +295,7 @@ If an object is provided for `callback` the created "_.where" style callback wil
3. `[thisArg]` *(*)*: The `this` binding of `callback`.
#### Returns
-*(number)*: Returns the index of the found element, else `-1`.
+*(number)*: Returns the index of the found element, else `-1`.
#### Example
```js
@@ -325,22 +318,26 @@ _.findIndex(characters, { 'age': 36 });
_.findIndex(characters, 'blocked');
// => 1
```
-
* * *
-
### `_.findLastIndex(array, [callback=identity], [thisArg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L4607 "View in source") [Ⓣ][1]
-
-This method is like `_.findIndex` except that it iterates over elements of a `collection` from right to left.
-
-If a property name is provided for `callback` the created "_.pluck" style callback will return the property value of the given element.
-
-If an object is provided for `callback` the created "_.where" style callback will return `true` for elements that have the properties of the given object, else `false`.
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L4608 "View in source") [Ⓣ][1]
+
+This method is like `_.findIndex` except that it iterates over elements
+of a `collection` from right to left.
+
+
+If a property name is provided for `callback` the created "_.pluck" style
+callback will return the property value of the given element.
+
+
+If an object is provided for `callback` the created "_.where" style callback
+will return `true` for elements that have the properties of the given object,
+else `false`.
#### Arguments
1. `array` *(Array)*: The array to search.
@@ -348,7 +345,7 @@ If an object is provided for `callback` the created "_.where" style callback wil
3. `[thisArg]` *(*)*: The `this` binding of `callback`.
#### Returns
-*(number)*: Returns the index of the found element, else `-1`.
+*(number)*: Returns the index of the found element, else `-1`.
#### Example
```js
@@ -371,22 +368,28 @@ _.findLastIndex(characters, { 'age': 36 });
_.findLastIndex(characters, 'blocked');
// => 2
```
-
* * *
-
### `_.first(array, [callback], [thisArg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L4669 "View in source") [Ⓣ][1]
-
-Gets the first element or first `n` elements of an array. If a callback is provided elements at the beginning of the array are returned as long as the callback returns truey. The callback is bound to `thisArg` and invoked with three arguments; *(value, index, array)*.
-
-If a property name is provided for `callback` the created "_.pluck" style callback will return the property value of the given element.
-
-If an object is provided for `callback` the created "_.where" style callback will return `true` for elements that have the properties of the given object, else `false`.
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L4670 "View in source") [Ⓣ][1]
+
+Gets the first element or first `n` elements of an array. If a callback
+is provided elements at the beginning of the array are returned as long
+as the callback returns truey. The callback is bound to `thisArg` and
+invoked with three arguments; (value, index, array).
+
+
+If a property name is provided for `callback` the created "_.pluck" style
+callback will return the property value of the given element.
+
+
+If an object is provided for `callback` the created "_.where" style callback
+will return `true` for elements that have the properties of the given object,
+else `false`.
#### Aliases
*_.head, _.take*
@@ -397,7 +400,7 @@ If an object is provided for `callback` the created "_.where" style callback wil
3. `[thisArg]` *(*)*: The `this` binding of `callback`.
#### Returns
-*(*)*: Returns the first element(s) of `array`.
+*(*)*: Returns the first element(s) of `array`.
#### Example
```js
@@ -426,22 +429,29 @@ _.first(characters, 'blocked');
_.pluck(_.first(characters, { 'employer': 'slate' }), 'name');
// => ['barney', 'fred']
```
-
* * *
-
### `_.flatten(array, [isShallow=false], [callback=identity], [thisArg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L4729 "View in source") [Ⓣ][1]
-
-Flattens a nested array *(the nesting can be to any depth)*. If `isShallow` is truey, the array will only be flattened a single level. If a callback is provided each element of the array is passed through the callback before flattening. The callback is bound to `thisArg` and invoked with three arguments; *(value, index, array)*.
-
-If a property name is provided for `callback` the created "_.pluck" style callback will return the property value of the given element.
-
-If an object is provided for `callback` the created "_.where" style callback will return `true` for elements that have the properties of the given object, else `false`.
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L4730 "View in source") [Ⓣ][1]
+
+Flattens a nested array (the nesting can be to any depth). If `isShallow`
+is truey, the array will only be flattened a single level. If a callback
+is provided each element of the array is passed through the callback before
+flattening. The callback is bound to `thisArg` and invoked with three
+arguments; (value, index, array).
+
+
+If a property name is provided for `callback` the created "_.pluck" style
+callback will return the property value of the given element.
+
+
+If an object is provided for `callback` the created "_.where" style callback
+will return `true` for elements that have the properties of the given object,
+else `false`.
#### Arguments
1. `array` *(Array)*: The array to flatten.
@@ -450,7 +460,7 @@ If an object is provided for `callback` the created "_.where" style callback wil
4. `[thisArg]` *(*)*: The `this` binding of `callback`.
#### Returns
-*(Array)*: Returns a new flattened array.
+*(Array)*: Returns a new flattened array.
#### Example
```js
@@ -469,18 +479,18 @@ var characters = [
_.flatten(characters, 'pets');
// => ['hoppy', 'baby puss', 'dino']
```
-
* * *
-
### `_.indexOf(array, value, [fromIndex=0])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L4766 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L4767 "View in source") [Ⓣ][1]
-Gets the index at which the first occurrence of `value` is found using strict equality for comparisons, i.e. `===`. If the array is already sorted providing `true` for `fromIndex` will run a faster binary search.
+Gets the index at which the first occurrence of `value` is found using
+strict equality for comparisons, i.e. `===`. If the array is already sorted
+providing `true` for `fromIndex` will run a faster binary search.
#### Arguments
1. `array` *(Array)*: The array to search.
@@ -488,7 +498,7 @@ Gets the index at which the first occurrence of `value` is found using strict eq
3. `[fromIndex=0]` *(boolean|number)*: The index to search from or `true` to perform a binary search on a sorted array.
#### Returns
-*(number)*: Returns the index of the matched value or `-1`.
+*(number)*: Returns the index of the matched value or `-1`.
#### Example
```js
@@ -501,22 +511,28 @@ _.indexOf([1, 2, 3, 1, 2, 3], 2, 3);
_.indexOf([1, 1, 2, 2, 3, 3], 2, true);
// => 2
```
-
* * *
-
### `_.initial(array, [callback=1], [thisArg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L4827 "View in source") [Ⓣ][1]
-
-Gets all but the last element or last `n` elements of an array. If a callback is provided elements at the end of the array are excluded from the result as long as the callback returns truey. The callback is bound to `thisArg` and invoked with three arguments; *(value, index, array)*.
-
-If a property name is provided for `callback` the created "_.pluck" style callback will return the property value of the given element.
-
-If an object is provided for `callback` the created "_.where" style callback will return `true` for elements that have the properties of the given object, else `false`.
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L4828 "View in source") [Ⓣ][1]
+
+Gets all but the last element or last `n` elements of an array. If a
+callback is provided elements at the end of the array are excluded from
+the result as long as the callback returns truey. The callback is bound
+to `thisArg` and invoked with three arguments; (value, index, array).
+
+
+If a property name is provided for `callback` the created "_.pluck" style
+callback will return the property value of the given element.
+
+
+If an object is provided for `callback` the created "_.where" style callback
+will return `true` for elements that have the properties of the given object,
+else `false`.
#### Arguments
1. `array` *(Array)*: The array to query.
@@ -524,7 +540,7 @@ If an object is provided for `callback` the created "_.where" style callback wil
3. `[thisArg]` *(*)*: The `this` binding of `callback`.
#### Returns
-*(Array)*: Returns a slice of `array`.
+*(Array)*: Returns a slice of `array`.
#### Example
```js
@@ -553,46 +569,51 @@ _.initial(characters, 'blocked');
_.pluck(_.initial(characters, { 'employer': 'na' }), 'name');
// => ['barney', 'fred']
```
-
* * *
-
### `_.intersection([array])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L4857 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L4858 "View in source") [Ⓣ][1]
-Creates an array of unique values present in all provided arrays using strict equality for comparisons, i.e. `===`.
+Creates an array of unique values present in all provided arrays using
+strict equality for comparisons, i.e. `===`.
#### Arguments
1. `[array]` *(...Array)*: The arrays to inspect.
#### Returns
-*(Array)*: Returns an array of shared values.
+*(Array)*: Returns an array of shared values.
#### Example
```js
_.intersection([1, 2, 3], [5, 2, 1, 4], [2, 1]);
// => [1, 2]
```
-
* * *
-
### `_.last(array, [callback], [thisArg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L4957 "View in source") [Ⓣ][1]
-
-Gets the last element or last `n` elements of an array. If a callback is provided elements at the end of the array are returned as long as the callback returns truey. The callback is bound to `thisArg` and invoked with three arguments; *(value, index, array)*.
-
-If a property name is provided for `callback` the created "_.pluck" style callback will return the property value of the given element.
-
-If an object is provided for `callback` the created "_.where" style callback will return `true` for elements that have the properties of the given object, else `false`.
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L4958 "View in source") [Ⓣ][1]
+
+Gets the last element or last `n` elements of an array. If a callback is
+provided elements at the end of the array are returned as long as the
+callback returns truey. The callback is bound to `thisArg` and invoked
+with three arguments; (value, index, array).
+
+
+If a property name is provided for `callback` the created "_.pluck" style
+callback will return the property value of the given element.
+
+
+If an object is provided for `callback` the created "_.where" style callback
+will return `true` for elements that have the properties of the given object,
+else `false`.
#### Arguments
1. `array` *(Array)*: The array to query.
@@ -600,7 +621,7 @@ If an object is provided for `callback` the created "_.where" style callback wil
3. `[thisArg]` *(*)*: The `this` binding of `callback`.
#### Returns
-*(*)*: Returns the last element(s) of `array`.
+*(*)*: Returns the last element(s) of `array`.
#### Example
```js
@@ -629,22 +650,27 @@ _.pluck(_.last(characters, 'blocked'), 'name');
_.last(characters, { 'employer': 'na' });
// => [{ 'name': 'pebbles', 'blocked': true, 'employer': 'na' }]
```
-
* * *
-
### `_.lastIndexOf(array, value, [fromIndex=array.length-1])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L5003 "View in source") [Ⓣ][1]
-
-Gets the index at which the last occurrence of `value` is found using strict equality for comparisons, i.e. `===`. If `fromIndex` is negative, it is used as the offset from the end of the collection.
-
-If a property name is provided for `callback` the created "_.pluck" style callback will return the property value of the given element.
-
-If an object is provided for `callback` the created "_.where" style callback will return `true` for elements that have the properties of the given object, else `false`.
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L5004 "View in source") [Ⓣ][1]
+
+Gets the index at which the last occurrence of `value` is found using strict
+equality for comparisons, i.e. `===`. If `fromIndex` is negative, it is used
+as the offset from the end of the collection.
+
+
+If a property name is provided for `callback` the created "_.pluck" style
+callback will return the property value of the given element.
+
+
+If an object is provided for `callback` the created "_.where" style callback
+will return `true` for elements that have the properties of the given object,
+else `false`.
#### Arguments
1. `array` *(Array)*: The array to search.
@@ -652,7 +678,7 @@ If an object is provided for `callback` the created "_.where" style callback wil
3. `[fromIndex=array.length-1]` *(number)*: The index to search from.
#### Returns
-*(number)*: Returns the index of the matched value or `-1`.
+*(number)*: Returns the index of the matched value or `-1`.
#### Example
```js
@@ -662,25 +688,24 @@ _.lastIndexOf([1, 2, 3, 1, 2, 3], 2);
_.lastIndexOf([1, 2, 3, 1, 2, 3], 2, 3);
// => 1
```
-
* * *
-
### `_.pull(array, [value])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L5033 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L5034 "View in source") [Ⓣ][1]
-Removes all provided values from the given array using strict equality for comparisons, i.e. `===`.
+Removes all provided values from the given array using strict equality for
+comparisons, i.e. `===`.
#### Arguments
1. `array` *(Array)*: The array to modify.
2. `[value]` *(...*)*: The values to remove.
#### Returns
-*(Array)*: Returns `array`.
+*(Array)*: Returns `array`.
#### Example
```js
@@ -689,18 +714,18 @@ _.pull(array, 2, 3);
console.log(array);
// => [1, 1]
```
-
* * *
-
### `_.range([start=0], end, [step=1])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L5084 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L5085 "View in source") [Ⓣ][1]
-Creates an array of numbers *(positive and/or negative)* progressing from `start` up to but not including `end`. If `start` is less than `stop` a zero-length range is created unless a negative `step` is specified.
+Creates an array of numbers (positive and/or negative) progressing from
+`start` up to but not including `end`. If `start` is less than `stop` a
+zero-length range is created unless a negative `step` is specified.
#### Arguments
1. `[start=0]` *(number)*: The start of the range.
@@ -708,7 +733,7 @@ Creates an array of numbers *(positive and/or negative)* progressing from `start
3. `[step=1]` *(number)*: The value to increment or decrement by.
#### Returns
-*(Array)*: Returns a new range array.
+*(Array)*: Returns a new range array.
#### Example
```js
@@ -730,22 +755,27 @@ _.range(1, 4, 0);
_.range(0);
// => []
```
-
* * *
-
### `_.remove(array, [callback=identity], [thisArg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L5137 "View in source") [Ⓣ][1]
-
-Removes all elements from an array that the callback returns truey for and returns an array of removed elements. The callback is bound to `thisArg` and invoked with three arguments; *(value, index, array)*.
-
-If a property name is provided for `callback` the created "_.pluck" style callback will return the property value of the given element.
-
-If an object is provided for `callback` the created "_.where" style callback will return `true` for elements that have the properties of the given object, else `false`.
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L5138 "View in source") [Ⓣ][1]
+
+Removes all elements from an array that the callback returns truey for
+and returns an array of removed elements. The callback is bound to `thisArg`
+and invoked with three arguments; (value, index, array).
+
+
+If a property name is provided for `callback` the created "_.pluck" style
+callback will return the property value of the given element.
+
+
+If an object is provided for `callback` the created "_.where" style callback
+will return `true` for elements that have the properties of the given object,
+else `false`.
#### Arguments
1. `array` *(Array)*: The array to modify.
@@ -753,7 +783,7 @@ If an object is provided for `callback` the created "_.where" style callback wil
3. `[thisArg]` *(*)*: The `this` binding of `callback`.
#### Returns
-*(Array)*: Returns a new array of removed elements.
+*(Array)*: Returns a new array of removed elements.
#### Example
```js
@@ -766,22 +796,29 @@ console.log(array);
console.log(evens);
// => [2, 4, 6]
```
-
* * *
-
### `_.rest(array, [callback=1], [thisArg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L5206 "View in source") [Ⓣ][1]
-
-The opposite of `_.initial` this method gets all but the first element or first `n` elements of an array. If a callback function is provided elements at the beginning of the array are excluded from the result as long as the callback returns truey. The callback is bound to `thisArg` and invoked with three arguments; *(value, index, array)*.
-
-If a property name is provided for `callback` the created "_.pluck" style callback will return the property value of the given element.
-
-If an object is provided for `callback` the created "_.where" style callback will return `true` for elements that have the properties of the given object, else `false`.
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L5207 "View in source") [Ⓣ][1]
+
+The opposite of `_.initial` this method gets all but the first element or
+first `n` elements of an array. If a callback function is provided elements
+at the beginning of the array are excluded from the result as long as the
+callback returns truey. The callback is bound to `thisArg` and invoked
+with three arguments; (value, index, array).
+
+
+If a property name is provided for `callback` the created "_.pluck" style
+callback will return the property value of the given element.
+
+
+If an object is provided for `callback` the created "_.where" style callback
+will return `true` for elements that have the properties of the given object,
+else `false`.
#### Aliases
*_.drop, _.tail*
@@ -792,7 +829,7 @@ If an object is provided for `callback` the created "_.where" style callback wil
3. `[thisArg]` *(*)*: The `this` binding of `callback`.
#### Returns
-*(Array)*: Returns a slice of `array`.
+*(Array)*: Returns a slice of `array`.
#### Example
```js
@@ -821,22 +858,29 @@ _.pluck(_.rest(characters, 'blocked'), 'name');
_.rest(characters, { 'employer': 'slate' });
// => [{ 'name': 'pebbles', 'blocked': true, 'employer': 'na' }]
```
-
* * *
-
### `_.sortedIndex(array, value, [callback=identity], [thisArg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L5270 "View in source") [Ⓣ][1]
-
-Uses a binary search to determine the smallest index at which a value should be inserted into a given sorted array in order to maintain the sort order of the array. If a callback is provided it will be executed for `value` and each element of `array` to compute their sort ranking. The callback is bound to `thisArg` and invoked with one argument; *(value)*.
-
-If a property name is provided for `callback` the created "_.pluck" style callback will return the property value of the given element.
-
-If an object is provided for `callback` the created "_.where" style callback will return `true` for elements that have the properties of the given object, else `false`.
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L5271 "View in source") [Ⓣ][1]
+
+Uses a binary search to determine the smallest index at which a value
+should be inserted into a given sorted array in order to maintain the sort
+order of the array. If a callback is provided it will be executed for
+`value` and each element of `array` to compute their sort ranking. The
+callback is bound to `thisArg` and invoked with one argument; (value).
+
+
+If a property name is provided for `callback` the created "_.pluck" style
+callback will return the property value of the given element.
+
+
+If an object is provided for `callback` the created "_.where" style callback
+will return `true` for elements that have the properties of the given object,
+else `false`.
#### Arguments
1. `array` *(Array)*: The array to inspect.
@@ -845,7 +889,8 @@ If an object is provided for `callback` the created "_.where" style callback wil
4. `[thisArg]` *(*)*: The `this` binding of `callback`.
#### Returns
-*(number)*: Returns the index at which `value` should be inserted into `array`.
+*(number)*: Returns the index at which `value` should be inserted
+into `array`.
#### Example
```js
@@ -870,46 +915,53 @@ _.sortedIndex(['twenty', 'thirty', 'fifty'], 'fourty', function(word) {
}, dict);
// => 2
```
-
* * *
-
### `_.union([array])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L5301 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L5302 "View in source") [Ⓣ][1]
-Creates an array of unique values, in order, of the provided arrays using strict equality for comparisons, i.e. `===`.
+Creates an array of unique values, in order, of the provided arrays using
+strict equality for comparisons, i.e. `===`.
#### Arguments
1. `[array]` *(...Array)*: The arrays to inspect.
#### Returns
-*(Array)*: Returns an array of combined values.
+*(Array)*: Returns an array of combined values.
#### Example
```js
_.union([1, 2, 3], [5, 2, 1, 4], [2, 1]);
// => [1, 2, 3, 5, 4]
```
-
* * *
-
### `_.uniq(array, [isSorted=false], [callback=identity], [thisArg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L5349 "View in source") [Ⓣ][1]
-
-Creates a duplicate-value-free version of an array using strict equality for comparisons, i.e. `===`. If the array is sorted, providing `true` for `isSorted` will use a faster algorithm. If a callback is provided each element of `array` is passed through the callback before uniqueness is computed. The callback is bound to `thisArg` and invoked with three arguments; *(value, index, array)*.
-
-If a property name is provided for `callback` the created "_.pluck" style callback will return the property value of the given element.
-
-If an object is provided for `callback` the created "_.where" style callback will return `true` for elements that have the properties of the given object, else `false`.
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L5350 "View in source") [Ⓣ][1]
+
+Creates a duplicate-value-free version of an array using strict equality
+for comparisons, i.e. `===`. If the array is sorted, providing
+`true` for `isSorted` will use a faster algorithm. If a callback is provided
+each element of `array` is passed through the callback before uniqueness
+is computed. The callback is bound to `thisArg` and invoked with three
+arguments; (value, index, array).
+
+
+If a property name is provided for `callback` the created "_.pluck" style
+callback will return the property value of the given element.
+
+
+If an object is provided for `callback` the created "_.where" style callback
+will return `true` for elements that have the properties of the given object,
+else `false`.
#### Aliases
*_.unique*
@@ -921,7 +973,7 @@ If an object is provided for `callback` the created "_.where" style callback wil
4. `[thisArg]` *(*)*: The `this` binding of `callback`.
#### Returns
-*(Array)*: Returns a duplicate-value-free array.
+*(Array)*: Returns a duplicate-value-free array.
#### Example
```js
@@ -941,49 +993,47 @@ _.uniq([1, 2.5, 3, 1.5, 2, 3.5], function(num) { return this.floor(num); }, Math
_.uniq([{ 'x': 1 }, { 'x': 2 }, { 'x': 1 }], 'x');
// => [{ 'x': 1 }, { 'x': 2 }]
```
-
* * *
-
### `_.without(array, [value])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L5377 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L5378 "View in source") [Ⓣ][1]
-Creates an array excluding all provided values using strict equality for comparisons, i.e. `===`.
+Creates an array excluding all provided values using strict equality for
+comparisons, i.e. `===`.
#### Arguments
1. `array` *(Array)*: The array to filter.
2. `[value]` *(...*)*: The values to exclude.
#### Returns
-*(Array)*: Returns a new array of filtered values.
+*(Array)*: Returns a new array of filtered values.
#### Example
```js
_.without([1, 2, 1, 0, 3, 1, 4], 0, 1);
// => [2, 3, 4]
```
-
* * *
-
### `_.xor([array])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L5398 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L5399 "View in source") [Ⓣ][1]
-Creates an array that is the symmetric difference of the provided arrays. See http://en.wikipedia.org/wiki/Symmetric_difference.
+Creates an array that is the symmetric difference of the provided arrays.
+See http://en.wikipedia.org/wiki/Symmetric_difference.
#### Arguments
1. `[array]` *(...Array)*: The arrays to inspect.
#### Returns
-*(Array)*: Returns an array of values.
+*(Array)*: Returns an array of values.
#### Example
```js
@@ -993,18 +1043,18 @@ _.xor([1, 2, 3], [5, 2, 1, 4]);
_.xor([1, 2, 5], [2, 3, 5], [3, 4, 5]);
// => [1, 4, 5]
```
-
* * *
-
### `_.zip([array])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L5429 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L5430 "View in source") [Ⓣ][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 second elements of the given arrays, and so on.
+Creates an array of grouped elements, the first of which contains the first
+elements of the given arrays, the second of which contains the second
+elements of the given arrays, and so on.
#### Aliases
*_.unzip*
@@ -1013,25 +1063,25 @@ Creates an array of grouped elements, the first of which contains the first elem
1. `[array]` *(...Array)*: Arrays to process.
#### Returns
-*(Array)*: Returns a new array of grouped elements.
+*(Array)*: Returns a new array of grouped elements.
#### Example
```js
_.zip(['fred', 'barney'], [30, 40], [true, false]);
// => [['fred', 30, true], ['barney', 40, false]]
```
-
* * *
-
### `_.zipObject(keys, [values=[]])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L5459 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L5460 "View in source") [Ⓣ][1]
-Creates an object composed from arrays of `keys` and `values`. Provide either a single two dimensional array, i.e. `[[key1, value1], [key2, value2]]` or two arrays, one of `keys` and one of corresponding `values`.
+Creates an object composed from arrays of `keys` and `values`. Provide
+either a single two dimensional array, i.e. `[[key1, value1], [key2, value2]]`
+or two arrays, one of `keys` and one of corresponding `values`.
#### Aliases
*_.object*
@@ -1041,22 +1091,20 @@ Creates an object composed from arrays of `keys` and `values`. Provide either a
2. `[values=[]]` *(Array)*: The array of values.
#### Returns
-*(Object)*: Returns an object composed of the given keys and corresponding values.
+*(Object)*: Returns an object composed of the given keys and
+corresponding values.
#### Example
```js
_.zipObject(['fred', 'barney'], [30, 40]);
// => { 'fred': 30, 'barney': 40 }
```
-
* * *
-
-
## `“Chaining” Methods`
@@ -1064,30 +1112,57 @@ _.zipObject(['fred', 'barney'], [30, 40]);
### `_(value)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L647 "View in source") [Ⓣ][1]
-
-Creates a `lodash` object which wraps the given value to enable intuitive method chaining.
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L647 "View in source") [Ⓣ][1]
+Creates a `lodash` object which wraps the given value to enable intuitive
+method chaining.
+
+
In addition to Lo-Dash methods, wrappers also have the following `Array` methods:
-`concat`, `join`, `pop`, `push`, `reverse`, `shift`, `slice`, `sort`, `splice`, and `unshift`
-
-Chaining is supported in custom builds as long as the `value` method is implicitly or explicitly included in the build.
-
+`concat`, `join`, `pop`, `push`, `reverse`, `shift`, `slice`, `sort`, `splice`,
+and `unshift`
+
+
+Chaining is supported in custom builds as long as the `value` method is
+implicitly or explicitly included in the build.
+
+
The chainable wrapper functions are:
-`after`, `assign`, `bind`, `bindAll`, `bindKey`, `chain`, `compact`, `compose`, `concat`, `countBy`, `create`, `createCallback`, `curry`, `debounce`, `defaults`, `defer`, `delay`, `difference`, `filter`, `flatten`, `forEach`, `forEachRight`, `forIn`, `forInRight`, `forOwn`, `forOwnRight`, `functions`, `groupBy`, `indexBy`, `initial`, `intersection`, `invert`, `invoke`, `keys`, `map`, `max`, `memoize`, `merge`, `min`, `object`, `omit`, `once`, `pairs`, `partial`, `partialRight`, `pick`, `pluck`, `pull`, `push`, `range`, `reject`, `remove`, `rest`, `reverse`, `shuffle`, `slice`, `sort`, `sortBy`, `splice`, `tap`, `throttle`, `times`, `toArray`, `transform`, `union`, `uniq`, `unshift`, `unzip`, `values`, `where`, `without`, `wrap`, and `zip`
-
+`after`, `assign`, `bind`, `bindAll`, `bindKey`, `chain`, `compact`,
+`compose`, `concat`, `countBy`, `create`, `createCallback`, `curry`,
+`debounce`, `defaults`, `defer`, `delay`, `difference`, `filter`, `flatten`,
+`forEach`, `forEachRight`, `forIn`, `forInRight`, `forOwn`, `forOwnRight`,
+`functions`, `groupBy`, `indexBy`, `initial`, `intersection`, `invert`,
+`invoke`, `keys`, `map`, `max`, `memoize`, `merge`, `min`, `object`, `omit`,
+`once`, `pairs`, `partial`, `partialRight`, `pick`, `pluck`, `pull`, `push`,
+`range`, `reject`, `remove`, `rest`, `reverse`, `shuffle`, `slice`, `sort`,
+`sortBy`, `splice`, `tap`, `throttle`, `times`, `toArray`, `transform`,
+`union`, `uniq`, `unshift`, `unzip`, `values`, `where`, `without`, `wrap`,
+and `zip`
+
+
The non-chainable wrapper functions are:
-`clone`, `cloneDeep`, `contains`, `escape`, `every`, `find`, `findIndex`, `findKey`, `findLast`, `findLastIndex`, `findLastKey`, `has`, `identity`, `indexOf`, `isArguments`, `isArray`, `isBoolean`, `isDate`, `isElement`, `isEmpty`, `isEqual`, `isFinite`, `isFunction`, `isNaN`, `isNull`, `isNumber`, `isObject`, `isPlainObject`, `isRegExp`, `isString`, `isUndefined`, `join`, `lastIndexOf`, `mixin`, `noConflict`, `parseInt`, `pop`, `random`, `reduce`, `reduceRight`, `result`, `shift`, `size`, `some`, `sortedIndex`, `runInContext`, `template`, `unescape`, `uniqueId`, and `value`
-
-The wrapper functions `first` and `last` return wrapped values when `n` is provided, otherwise they return unwrapped values.
-
+`clone`, `cloneDeep`, `contains`, `escape`, `every`, `find`, `findIndex`,
+`findKey`, `findLast`, `findLastIndex`, `findLastKey`, `has`, `identity`,
+`indexOf`, `isArguments`, `isArray`, `isBoolean`, `isDate`, `isElement`,
+`isEmpty`, `isEqual`, `isFinite`, `isFunction`, `isNaN`, `isNull`, `isNumber`,
+`isObject`, `isPlainObject`, `isRegExp`, `isString`, `isUndefined`, `join`,
+`lastIndexOf`, `mixin`, `noConflict`, `parseInt`, `pop`, `random`, `reduce`,
+`reduceRight`, `result`, `shift`, `size`, `some`, `sortedIndex`, `runInContext`,
+`template`, `unescape`, `uniqueId`, and `value`
+
+
+The wrapper functions `first` and `last` return wrapped values when `n` is
+provided, otherwise they return unwrapped values.
+
+
Explicit chaining can be enabled by using the `_.chain` method.
#### Arguments
1. `value` *(*)*: The value to wrap in a `lodash` instance.
#### Returns
-*(Object)*: Returns a `lodash` instance.
+*(Object)*: Returns a `lodash` instance.
#### Example
```js
@@ -1110,24 +1185,23 @@ _.isArray(squares);
_.isArray(squares.value());
// => true
```
-
* * *
-
### `_.chain(value)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L6788 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L6789 "View in source") [Ⓣ][1]
-Creates a `lodash` object that wraps the given value with explicit method chaining enabled.
+Creates a `lodash` object that wraps the given value with explicit
+method chaining enabled.
#### Arguments
1. `value` *(*)*: The value to wrap.
#### Returns
-*(Object)*: Returns the wrapper object.
+*(Object)*: Returns the wrapper object.
#### Example
```js
@@ -1144,25 +1218,26 @@ var youngest = _.chain(characters)
.value();
// => 'pebbles is 1'
```
-
* * *
-
### `_.tap(value, interceptor)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L6814 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L6815 "View in source") [Ⓣ][1]
-Invokes `interceptor` with the `value` as the first argument and then returns `value`. The purpose of this method is to "tap into" a method chain in order to perform operations on intermediate results within the chain.
+Invokes `interceptor` with the `value` as the first argument and then
+returns `value`. The purpose of this method is to "tap into" a method
+chain in order to perform operations on intermediate results within
+the chain.
#### Arguments
1. `value` *(*)*: The value to provide to `interceptor`.
2. `interceptor` *(Function)*: The function to invoke.
#### Returns
-*(*)*: Returns `value`.
+*(*)*: Returns `value`.
#### Example
```js
@@ -1172,21 +1247,19 @@ _([1, 2, 3, 4])
.value();
// => [3, 2, 1]
```
-
* * *
-
### `_.prototype.chain()`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L6844 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L6845 "View in source") [Ⓣ][1]
Enables explicit method chaining on the wrapper object.
#### Returns
-*(*)*: Returns the wrapper object.
+*(*)*: Returns the wrapper object.
#### Example
```js
@@ -1206,37 +1279,33 @@ _(characters).chain()
.value();
// => { 'age': 36 }
```
-
* * *
-
### `_.prototype.toString()`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L6861 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L6862 "View in source") [Ⓣ][1]
Produces the `toString` result of the wrapped value.
#### Returns
-*(string)*: Returns the string result.
+*(string)*: Returns the string result.
#### Example
```js
_([1, 2, 3]).toString();
// => '1,2,3'
```
-
* * *
-
### `_.prototype.valueOf()`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L6878 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L6879 "View in source") [Ⓣ][1]
Extracts the wrapped value.
@@ -1244,22 +1313,19 @@ Extracts the wrapped value.
*_.prototype.value*
#### Returns
-*(*)*: Returns the wrapped value.
+*(*)*: Returns the wrapped value.
#### Example
```js
_([1, 2, 3]).valueOf();
// => [1, 2, 3]
```
-
* * *
-
-
## `“Collections” Methods`
@@ -1267,16 +1333,19 @@ _([1, 2, 3]).valueOf();
### `_.at(collection, [index])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L3296 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L3297 "View in source") [Ⓣ][1]
-Creates an array of elements from the specified indexes, or keys, of the `collection`. Indexes may be specified as individual arguments or as arrays of indexes.
+Creates an array of elements from the specified indexes, or keys, of the
+`collection`. Indexes may be specified as individual arguments or as arrays
+of indexes.
#### Arguments
1. `collection` *(Array|Object|string)*: The collection to iterate over.
2. `[index]` *(...(number|number[]|string|string[])*: The indexes of `collection` to retrieve, specified as individual indexes or arrays of indexes.
#### Returns
-*(Array)*: Returns a new array of elements corresponding to the provided indexes.
+*(Array)*: Returns a new array of elements corresponding to the
+provided indexes.
#### Example
```js
@@ -1286,18 +1355,18 @@ _.at(['a', 'b', 'c', 'd', 'e'], [0, 2, 4]);
_.at(['fred', 'barney', 'pebbles'], 0, 2);
// => ['fred', 'pebbles']
```
-
* * *
-
### `_.contains(collection, target, [fromIndex=0])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L3339 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L3340 "View in source") [Ⓣ][1]
-Checks if a given value is present in a collection using strict equality for comparisons, i.e. `===`. If `fromIndex` is negative, it is used as the offset from the end of the collection.
+Checks if a given value is present in a collection using strict equality
+for comparisons, i.e. `===`. If `fromIndex` is negative, it is used as the
+offset from the end of the collection.
#### Aliases
*_.include*
@@ -1308,7 +1377,7 @@ Checks if a given value is present in a collection using strict equality for com
3. `[fromIndex=0]` *(number)*: The index to search from.
#### Returns
-*(boolean)*: Returns `true` if the `target` element is found, else `false`.
+*(boolean)*: Returns `true` if the `target` element is found, else `false`.
#### Example
```js
@@ -1324,22 +1393,29 @@ _.contains({ 'name': 'fred', 'age': 40 }, 'fred');
_.contains('pebbles', 'eb');
// => true
```
-
* * *
-
### `_.countBy(collection, [callback=identity], [thisArg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L3394 "View in source") [Ⓣ][1]
-
-Creates an object composed of keys generated from the results of running each element of `collection` through the callback. The corresponding value of each key is the number of times the key was returned by the callback. The callback is bound to `thisArg` and invoked with three arguments; *(value, index|key, collection)*.
-
-If a property name is provided for `callback` the created "_.pluck" style callback will return the property value of the given element.
-
-If an object is provided for `callback` the created "_.where" style callback will return `true` for elements that have the properties of the given object, else `false`.
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L3395 "View in source") [Ⓣ][1]
+
+Creates an object composed of keys generated from the results of running
+each element of `collection` through the callback. The corresponding value
+of each key is the number of times the key was returned by the callback.
+The callback is bound to `thisArg` and invoked with three arguments;
+(value, index|key, collection).
+
+
+If a property name is provided for `callback` the created "_.pluck" style
+callback will return the property value of the given element.
+
+
+If an object is provided for `callback` the created "_.where" style callback
+will return `true` for elements that have the properties of the given object,
+else `false`.
#### Arguments
1. `collection` *(Array|Object|string)*: The collection to iterate over.
@@ -1347,7 +1423,7 @@ If an object is provided for `callback` the created "_.where" style callback wil
3. `[thisArg]` *(*)*: The `this` binding of `callback`.
#### Returns
-*(Object)*: Returns the composed aggregate object.
+*(Object)*: Returns the composed aggregate object.
#### Example
```js
@@ -1360,22 +1436,27 @@ _.countBy([4.3, 6.1, 6.4], function(num) { return this.floor(num); }, Math);
_.countBy(['one', 'two', 'three'], 'length');
// => { '3': 2, '5': 1 }
```
-
* * *
-
### `_.every(collection, [callback=identity], [thisArg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L3439 "View in source") [Ⓣ][1]
-
-Checks if the given callback returns truey value for **all** elements of a collection. The callback is bound to `thisArg` and invoked with three arguments; *(value, index|key, collection)*.
-
-If a property name is provided for `callback` the created "_.pluck" style callback will return the property value of the given element.
-
-If an object is provided for `callback` the created "_.where" style callback will return `true` for elements that have the properties of the given object, else `false`.
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L3440 "View in source") [Ⓣ][1]
+
+Checks if the given callback returns truey value for **all** elements of
+a collection. The callback is bound to `thisArg` and invoked with three
+arguments; (value, index|key, collection).
+
+
+If a property name is provided for `callback` the created "_.pluck" style
+callback will return the property value of the given element.
+
+
+If an object is provided for `callback` the created "_.where" style callback
+will return `true` for elements that have the properties of the given object,
+else `false`.
#### Aliases
*_.all*
@@ -1386,7 +1467,8 @@ If an object is provided for `callback` the created "_.where" style callback wil
3. `[thisArg]` *(*)*: The `this` binding of `callback`.
#### Returns
-*(boolean)*: Returns `true` if all elements passed the callback check, else `false`.
+*(boolean)*: Returns `true` if all elements passed the callback check,
+else `false`.
#### Example
```js
@@ -1406,22 +1488,27 @@ _.every(characters, 'age');
_.every(characters, { 'age': 36 });
// => false
```
-
* * *
-
### `_.filter(collection, [callback=identity], [thisArg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L3500 "View in source") [Ⓣ][1]
-
-Iterates over elements of a collection, returning an array of all elements the callback returns truey for. The callback is bound to `thisArg` and invoked with three arguments; *(value, index|key, collection)*.
-
-If a property name is provided for `callback` the created "_.pluck" style callback will return the property value of the given element.
-
-If an object is provided for `callback` the created "_.where" style callback will return `true` for elements that have the properties of the given object, else `false`.
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L3501 "View in source") [Ⓣ][1]
+
+Iterates over elements of a collection, returning an array of all elements
+the callback returns truey for. The callback is bound to `thisArg` and
+invoked with three arguments; (value, index|key, collection).
+
+
+If a property name is provided for `callback` the created "_.pluck" style
+callback will return the property value of the given element.
+
+
+If an object is provided for `callback` the created "_.where" style callback
+will return `true` for elements that have the properties of the given object,
+else `false`.
#### Aliases
*_.select*
@@ -1432,7 +1519,7 @@ If an object is provided for `callback` the created "_.where" style callback wil
3. `[thisArg]` *(*)*: The `this` binding of `callback`.
#### Returns
-*(Array)*: Returns a new array of elements that passed the callback check.
+*(Array)*: Returns a new array of elements that passed the callback check.
#### Example
```js
@@ -1452,22 +1539,27 @@ _.filter(characters, 'blocked');
_.filter(characters, { 'age': 36 });
// => [{ 'name': 'barney', 'age': 36, 'blocked': false }]
```
-
* * *
-
### `_.find(collection, [callback=identity], [thisArg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L3567 "View in source") [Ⓣ][1]
-
-Iterates over elements of a collection, returning the first element that the callback returns truey for. The callback is bound to `thisArg` and invoked with three arguments; *(value, index|key, collection)*.
-
-If a property name is provided for `callback` the created "_.pluck" style callback will return the property value of the given element.
-
-If an object is provided for `callback` the created "_.where" style callback will return `true` for elements that have the properties of the given object, else `false`.
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L3568 "View in source") [Ⓣ][1]
+
+Iterates over elements of a collection, returning the first element that
+the callback returns truey for. The callback is bound to `thisArg` and
+invoked with three arguments; (value, index|key, collection).
+
+
+If a property name is provided for `callback` the created "_.pluck" style
+callback will return the property value of the given element.
+
+
+If an object is provided for `callback` the created "_.where" style callback
+will return `true` for elements that have the properties of the given object,
+else `false`.
#### Aliases
*_.detect, _.findWhere*
@@ -1478,7 +1570,7 @@ If an object is provided for `callback` the created "_.where" style callback wil
3. `[thisArg]` *(*)*: The `this` binding of `callback`.
#### Returns
-*(*)*: Returns the found element, else `undefined`.
+*(*)*: Returns the found element, else `undefined`.
#### Example
```js
@@ -1501,18 +1593,17 @@ _.find(characters, { 'age': 1 });
_.find(characters, 'blocked');
// => { 'name': 'fred', 'age': 40, 'blocked': true }
```
-
* * *
-
### `_.findLast(collection, [callback=identity], [thisArg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L3612 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L3613 "View in source") [Ⓣ][1]
-This method is like `_.find` except that it iterates over elements of a `collection` from right to left.
+This method is like `_.find` except that it iterates over elements
+of a `collection` from right to left.
#### Arguments
1. `collection` *(Array|Object|string)*: The collection to iterate over.
@@ -1520,7 +1611,7 @@ This method is like `_.find` except that it iterates over elements of a `collect
3. `[thisArg]` *(*)*: The `this` binding of `callback`.
#### Returns
-*(*)*: Returns the found element, else `undefined`.
+*(*)*: Returns the found element, else `undefined`.
#### Example
```js
@@ -1529,20 +1620,24 @@ _.findLast([1, 2, 3, 4], function(num) {
});
// => 3
```
-
* * *
-
### `_.forEach(collection, [callback=identity], [thisArg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L3650 "View in source") [Ⓣ][1]
-
-Iterates over elements of a collection, executing the callback for each element. The callback is bound to `thisArg` and invoked with three arguments; *(value, index|key, collection)*. Callbacks may exit iteration early by explicitly returning `false`.
-
-Note: As with other "Collections" methods, objects with a `length` property are iterated like arrays. To avoid this behavior `_.forIn` or `_.forOwn` may be used for object iteration.
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L3651 "View in source") [Ⓣ][1]
+
+Iterates over elements of a collection, executing the callback for each
+element. The callback is bound to `thisArg` and invoked with three arguments;
+(value, index|key, collection). Callbacks may exit iteration early by
+explicitly returning `false`.
+
+
+Note: As with other "Collections" methods, objects with a `length` property
+are iterated like arrays. To avoid this behavior `_.forIn` or `_.forOwn`
+may be used for object iteration.
#### Aliases
*_.each*
@@ -1553,7 +1648,7 @@ Note: As with other "Collections" methods, objects with a `length` property are
3. `[thisArg]` *(*)*: The `this` binding of `callback`.
#### Returns
-*(Array, Object, string)*: Returns `collection`.
+*(Array|Object|string)*: Returns `collection`.
#### Example
```js
@@ -1563,18 +1658,17 @@ _([1, 2, 3]).forEach(function(num) { console.log(num); }).join(',');
_.forEach({ 'one': 1, 'two': 2, 'three': 3 }, function(num) { console.log(num); });
// => logs each number and returns the object (property order is not guaranteed across environments)
```
-
* * *
-
### `_.forEachRight(collection, [callback=identity], [thisArg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L3683 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L3684 "View in source") [Ⓣ][1]
-This method is like `_.forEach` except that it iterates over elements of a `collection` from right to left.
+This method is like `_.forEach` except that it iterates over elements
+of a `collection` from right to left.
#### Aliases
*_.eachRight*
@@ -1585,29 +1679,36 @@ This method is like `_.forEach` except that it iterates over elements of a `coll
3. `[thisArg]` *(*)*: The `this` binding of `callback`.
#### Returns
-*(Array, Object, string)*: Returns `collection`.
+*(Array|Object|string)*: Returns `collection`.
#### Example
```js
_([1, 2, 3]).forEachRight(function(num) { console.log(num); }).join(',');
// => logs each number from right to left and returns '3,2,1'
```
-
* * *
-
### `_.groupBy(collection, [callback=identity], [thisArg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L3744 "View in source") [Ⓣ][1]
-
-Creates an object composed of keys generated from the results of running each element of a collection through the callback. The corresponding value of each key is an array of the elements responsible for generating the key. The callback is bound to `thisArg` and invoked with three arguments; *(value, index|key, collection)*.
-
-If a property name is provided for `callback` the created "_.pluck" style callback will return the property value of the given element.
-
-If an object is provided for `callback` the created "_.where" style callback will return `true` for elements that have the properties of the given object, else `false`
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L3745 "View in source") [Ⓣ][1]
+
+Creates an object composed of keys generated from the results of running
+each element of a collection through the callback. The corresponding value
+of each key is an array of the elements responsible for generating the key.
+The callback is bound to `thisArg` and invoked with three arguments;
+(value, index|key, collection).
+
+
+If a property name is provided for `callback` the created "_.pluck" style
+callback will return the property value of the given element.
+
+
+If an object is provided for `callback` the created "_.where" style callback
+will return `true` for elements that have the properties of the given object,
+else `false`
#### Arguments
1. `collection` *(Array|Object|string)*: The collection to iterate over.
@@ -1615,7 +1716,7 @@ If an object is provided for `callback` the created "_.where" style callback wil
3. `[thisArg]` *(*)*: The `this` binding of `callback`.
#### Returns
-*(Object)*: Returns the composed aggregate object.
+*(Object)*: Returns the composed aggregate object.
#### Example
```js
@@ -1629,22 +1730,29 @@ _.groupBy([4.2, 6.1, 6.4], function(num) { return this.floor(num); }, Math);
_.groupBy(['one', 'two', 'three'], 'length');
// => { '3': ['one', 'two'], '5': ['three'] }
```
-
* * *
-
### `_.indexBy(collection, [callback=identity], [thisArg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L3787 "View in source") [Ⓣ][1]
-
-Creates an object composed of keys generated from the results of running each element of the collection through the given callback. The corresponding value of each key is the last element responsible for generating the key. The callback is bound to `thisArg` and invoked with three arguments; *(value, index|key, collection)*.
-
-If a property name is provided for `callback` the created "_.pluck" style callback will return the property value of the given element.
-
-If an object is provided for `callback` the created "_.where" style callback will return `true` for elements that have the properties of the given object, else `false`.
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L3788 "View in source") [Ⓣ][1]
+
+Creates an object composed of keys generated from the results of running
+each element of the collection through the given callback. The corresponding
+value of each key is the last element responsible for generating the key.
+The callback is bound to `thisArg` and invoked with three arguments;
+(value, index|key, collection).
+
+
+If a property name is provided for `callback` the created "_.pluck" style
+callback will return the property value of the given element.
+
+
+If an object is provided for `callback` the created "_.where" style callback
+will return `true` for elements that have the properties of the given object,
+else `false`.
#### Arguments
1. `collection` *(Array|Object|string)*: The collection to iterate over.
@@ -1652,7 +1760,7 @@ If an object is provided for `callback` the created "_.where" style callback wil
3. `[thisArg]` *(*)*: The `this` binding of `callback`.
#### Returns
-*(Object)*: Returns the composed aggregate object.
+*(Object)*: Returns the composed aggregate object.
#### Example
```js
@@ -1670,18 +1778,19 @@ _.indexBy(keys, function(key) { return String.fromCharCode(key.code); });
_.indexBy(characters, function(key) { this.fromCharCode(key.code); }, String);
// => { 'a': { 'dir': 'left', 'code': 97 }, 'd': { 'dir': 'right', 'code': 100 } }
```
-
* * *
-
### `_.invoke(collection, methodName, [arg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L3813 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L3814 "View in source") [Ⓣ][1]
-Invokes the method named by `methodName` on each element in the `collection` returning an array of the results of each invoked method. Additional arguments will be provided to each invoked method. If `methodName` is a function it will be invoked for, and `this` bound to, each element in the `collection`.
+Invokes the method named by `methodName` on each element in the `collection`
+returning an array of the results of each invoked method. Additional arguments
+will be provided to each invoked method. If `methodName` is a function it
+will be invoked for, and `this` bound to, each element in the `collection`.
#### Arguments
1. `collection` *(Array|Object|string)*: The collection to iterate over.
@@ -1689,7 +1798,7 @@ Invokes the method named by `methodName` on each element in the `collection` ret
3. `[arg]` *(...*)*: Arguments to invoke the method with.
#### Returns
-*(Array)*: Returns a new array of the results of each invoked method.
+*(Array)*: Returns a new array of the results of each invoked method.
#### Example
```js
@@ -1699,22 +1808,27 @@ _.invoke([[5, 1, 7], [3, 2, 1]], 'sort');
_.invoke([123, 456], String.prototype.split, '');
// => [['1', '2', '3'], ['4', '5', '6']]
```
-
* * *
-
### `_.map(collection, [callback=identity], [thisArg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L3865 "View in source") [Ⓣ][1]
-
-Creates an array of values by running each element in the collection through the callback. The callback is bound to `thisArg` and invoked with three arguments; *(value, index|key, collection)*.
-
-If a property name is provided for `callback` the created "_.pluck" style callback will return the property value of the given element.
-
-If an object is provided for `callback` the created "_.where" style callback will return `true` for elements that have the properties of the given object, else `false`.
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L3866 "View in source") [Ⓣ][1]
+
+Creates an array of values by running each element in the collection
+through the callback. The callback is bound to `thisArg` and invoked with
+three arguments; (value, index|key, collection).
+
+
+If a property name is provided for `callback` the created "_.pluck" style
+callback will return the property value of the given element.
+
+
+If an object is provided for `callback` the created "_.where" style callback
+will return `true` for elements that have the properties of the given object,
+else `false`.
#### Aliases
*_.collect*
@@ -1725,7 +1839,7 @@ If an object is provided for `callback` the created "_.where" style callback wil
3. `[thisArg]` *(*)*: The `this` binding of `callback`.
#### Returns
-*(Array)*: Returns a new array of the results of each `callback` execution.
+*(Array)*: Returns a new array of the results of each `callback` execution.
#### Example
```js
@@ -1744,22 +1858,29 @@ var characters = [
_.map(characters, 'name');
// => ['barney', 'fred']
```
-
* * *
-
### `_.max(collection, [callback=identity], [thisArg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L3923 "View in source") [Ⓣ][1]
-
-Retrieves the maximum value of a collection. If the collection is empty or falsey `-Infinity` is returned. If a callback is provided it will be executed for each value in the collection to generate the criterion by which the value is ranked. The callback is bound to `thisArg` and invoked with three arguments; *(value, index, collection)*.
-
-If a property name is provided for `callback` the created "_.pluck" style callback will return the property value of the given element.
-
-If an object is provided for `callback` the created "_.where" style callback will return `true` for elements that have the properties of the given object, else `false`.
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L3924 "View in source") [Ⓣ][1]
+
+Retrieves the maximum value of a collection. If the collection is empty or
+falsey `-Infinity` is returned. If a callback is provided it will be executed
+for each value in the collection to generate the criterion by which the value
+is ranked. The callback is bound to `thisArg` and invoked with three
+arguments; (value, index, collection).
+
+
+If a property name is provided for `callback` the created "_.pluck" style
+callback will return the property value of the given element.
+
+
+If an object is provided for `callback` the created "_.where" style callback
+will return `true` for elements that have the properties of the given object,
+else `false`.
#### Arguments
1. `collection` *(Array|Object|string)*: The collection to iterate over.
@@ -1767,7 +1888,7 @@ If an object is provided for `callback` the created "_.where" style callback wil
3. `[thisArg]` *(*)*: The `this` binding of `callback`.
#### Returns
-*(*)*: Returns the maximum value.
+*(*)*: Returns the maximum value.
#### Example
```js
@@ -1786,22 +1907,29 @@ _.max(characters, function(chr) { return chr.age; });
_.max(characters, 'age');
// => { 'name': 'fred', 'age': 40 };
```
-
* * *
-
### `_.min(collection, [callback=identity], [thisArg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L3998 "View in source") [Ⓣ][1]
-
-Retrieves the minimum value of a collection. If the collection is empty or falsey `Infinity` is returned. If a callback is provided it will be executed for each value in the collection to generate the criterion by which the value is ranked. The callback is bound to `thisArg` and invoked with three arguments; *(value, index, collection)*.
-
-If a property name is provided for `callback` the created "_.pluck" style callback will return the property value of the given element.
-
-If an object is provided for `callback` the created "_.where" style callback will return `true` for elements that have the properties of the given object, else `false`.
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L3999 "View in source") [Ⓣ][1]
+
+Retrieves the minimum value of a collection. If the collection is empty or
+falsey `Infinity` is returned. If a callback is provided it will be executed
+for each value in the collection to generate the criterion by which the value
+is ranked. The callback is bound to `thisArg` and invoked with three
+arguments; (value, index, collection).
+
+
+If a property name is provided for `callback` the created "_.pluck" style
+callback will return the property value of the given element.
+
+
+If an object is provided for `callback` the created "_.where" style callback
+will return `true` for elements that have the properties of the given object,
+else `false`.
#### Arguments
1. `collection` *(Array|Object|string)*: The collection to iterate over.
@@ -1809,7 +1937,7 @@ If an object is provided for `callback` the created "_.where" style callback wil
3. `[thisArg]` *(*)*: The `this` binding of `callback`.
#### Returns
-*(*)*: Returns the minimum value.
+*(*)*: Returns the minimum value.
#### Example
```js
@@ -1828,16 +1956,14 @@ _.min(characters, function(chr) { return chr.age; });
_.min(characters, 'age');
// => { 'name': 'barney', 'age': 36 };
```
-
* * *
-
### `_.pluck(collection, property)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L4053 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L4054 "View in source") [Ⓣ][1]
Retrieves the value of a specified property from all elements in the collection.
@@ -1846,7 +1972,7 @@ Retrieves the value of a specified property from all elements in the collection.
2. `property` *(string)*: The name of the property to pluck.
#### Returns
-*(Array)*: Returns a new array of property values.
+*(Array)*: Returns a new array of property values.
#### Example
```js
@@ -1858,18 +1984,21 @@ var characters = [
_.pluck(characters, 'name');
// => ['barney', 'fred']
```
-
* * *
-
### `_.reduce(collection, [callback=identity], [accumulator], [thisArg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L4085 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L4086 "View in source") [Ⓣ][1]
-Reduces a collection to a value which is the accumulated result of running each element in the collection through the callback, where each successive callback execution consumes the return value of the previous execution. If `accumulator` is not provided the first element of the collection will be used as the initial `accumulator` value. The callback is bound to `thisArg` and invoked with four arguments; *(accumulator, value, index|key, collection)*.
+Reduces a collection to a value which is the accumulated result of running
+each element in the collection through the callback, where each successive
+callback execution consumes the return value of the previous execution. If
+`accumulator` is not provided the first element of the collection will be
+used as the initial `accumulator` value. The callback is bound to `thisArg`
+and invoked with four arguments; (accumulator, value, index|key, collection).
#### Aliases
*_.foldl, _.inject*
@@ -1881,7 +2010,7 @@ Reduces a collection to a value which is the accumulated result of running each
4. `[thisArg]` *(*)*: The `this` binding of `callback`.
#### Returns
-*(*)*: Returns the accumulated value.
+*(*)*: Returns the accumulated value.
#### Example
```js
@@ -1896,18 +2025,17 @@ var mapped = _.reduce({ 'a': 1, 'b': 2, 'c': 3 }, function(result, num, key) {
}, {});
// => { 'a': 3, 'b': 6, 'c': 9 }
```
-
* * *
-
### `_.reduceRight(collection, [callback=identity], [accumulator], [thisArg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L4128 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L4129 "View in source") [Ⓣ][1]
-This method is like `_.reduce` except that it iterates over elements of a `collection` from right to left.
+This method is like `_.reduce` except that it iterates over elements
+of a `collection` from right to left.
#### Aliases
*_.foldr*
@@ -1919,7 +2047,7 @@ This method is like `_.reduce` except that it iterates over elements of a `colle
4. `[thisArg]` *(*)*: The `this` binding of `callback`.
#### Returns
-*(*)*: Returns the accumulated value.
+*(*)*: Returns the accumulated value.
#### Example
```js
@@ -1927,22 +2055,26 @@ var list = [[0, 1], [2, 3], [4, 5]];
var flat = _.reduceRight(list, function(a, b) { return a.concat(b); }, []);
// => [4, 5, 2, 3, 0, 1]
```
-
* * *
-
### `_.reject(collection, [callback=identity], [thisArg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L4177 "View in source") [Ⓣ][1]
-
-The opposite of `_.filter` this method returns the elements of a collection that the callback does **not** return truey for.
-
-If a property name is provided for `callback` the created "_.pluck" style callback will return the property value of the given element.
-
-If an object is provided for `callback` the created "_.where" style callback will return `true` for elements that have the properties of the given object, else `false`.
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L4178 "View in source") [Ⓣ][1]
+
+The opposite of `_.filter` this method returns the elements of a
+collection that the callback does **not** return truey for.
+
+
+If a property name is provided for `callback` the created "_.pluck" style
+callback will return the property value of the given element.
+
+
+If an object is provided for `callback` the created "_.where" style callback
+will return `true` for elements that have the properties of the given object,
+else `false`.
#### Arguments
1. `collection` *(Array|Object|string)*: The collection to iterate over.
@@ -1950,7 +2082,7 @@ If an object is provided for `callback` the created "_.where" style callback wil
3. `[thisArg]` *(*)*: The `this` binding of `callback`.
#### Returns
-*(Array)*: Returns a new array of elements that failed the callback check.
+*(Array)*: Returns a new array of elements that failed the callback check.
#### Example
```js
@@ -1970,16 +2102,14 @@ _.reject(characters, 'blocked');
_.reject(characters, { 'age': 36 });
// => [{ 'name': 'fred', 'age': 40, 'blocked': true }]
```
-
* * *
-
### `_.sample(collection, [n])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L4203 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L4204 "View in source") [Ⓣ][1]
Retrieves a random element or `n` random elements from a collection.
@@ -1988,7 +2118,7 @@ Retrieves a random element or `n` random elements from a collection.
2. `[n]` *(number)*: The number of elements to sample.
#### Returns
-*(Array)*: Returns the random sample(s) of `collection`.
+*(Array)*: Returns the random sample(s) of `collection`.
#### Example
```js
@@ -1998,48 +2128,46 @@ _.sample([1, 2, 3, 4]);
_.sample([1, 2, 3, 4], 2);
// => [3, 1]
```
-
* * *
-
### `_.shuffle(collection)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L4231 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L4232 "View in source") [Ⓣ][1]
-Creates an array of shuffled values, using a version of the Fisher-Yates shuffle. See http://en.wikipedia.org/wiki/Fisher-Yates_shuffle.
+Creates an array of shuffled values, using a version of the Fisher-Yates
+shuffle. See http://en.wikipedia.org/wiki/Fisher-Yates_shuffle.
#### Arguments
1. `collection` *(Array|Object|string)*: The collection to shuffle.
#### Returns
-*(Array)*: Returns a new shuffled collection.
+*(Array)*: Returns a new shuffled collection.
#### Example
```js
_.shuffle([1, 2, 3, 4, 5, 6]);
// => [4, 1, 6, 3, 5, 2]
```
-
* * *
-
### `_.size(collection)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L4264 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L4265 "View in source") [Ⓣ][1]
-Gets the size of the `collection` by returning `collection.length` for arrays and array-like objects or the number of own enumerable properties for objects.
+Gets the size of the `collection` by returning `collection.length` for arrays
+and array-like objects or the number of own enumerable properties for objects.
#### Arguments
1. `collection` *(Array|Object|string)*: The collection to inspect.
#### Returns
-*(number)*: Returns `collection.length` or number of own enumerable properties.
+*(number)*: Returns `collection.length` or number of own enumerable properties.
#### Example
```js
@@ -2052,22 +2180,28 @@ _.size({ 'one': 1, 'two': 2, 'three': 3 });
_.size('pebbles');
// => 7
```
-
* * *
-
### `_.some(collection, [callback=identity], [thisArg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L4311 "View in source") [Ⓣ][1]
-
-Checks if the callback returns a truey value for **any** element of a collection. The function returns as soon as it finds a passing value and does not iterate over the entire collection. The callback is bound to `thisArg` and invoked with three arguments; *(value, index|key, collection)*.
-
-If a property name is provided for `callback` the created "_.pluck" style callback will return the property value of the given element.
-
-If an object is provided for `callback` the created "_.where" style callback will return `true` for elements that have the properties of the given object, else `false`.
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L4312 "View in source") [Ⓣ][1]
+
+Checks if the callback returns a truey value for **any** element of a
+collection. The function returns as soon as it finds a passing value and
+does not iterate over the entire collection. The callback is bound to
+`thisArg` and invoked with three arguments; (value, index|key, collection).
+
+
+If a property name is provided for `callback` the created "_.pluck" style
+callback will return the property value of the given element.
+
+
+If an object is provided for `callback` the created "_.where" style callback
+will return `true` for elements that have the properties of the given object,
+else `false`.
#### Aliases
*_.any*
@@ -2078,7 +2212,8 @@ If an object is provided for `callback` the created "_.where" style callback wil
3. `[thisArg]` *(*)*: The `this` binding of `callback`.
#### Returns
-*(boolean)*: Returns `true` if any element passed the callback check, else `false`.
+*(boolean)*: Returns `true` if any element passed the callback check,
+else `false`.
#### Example
```js
@@ -2098,24 +2233,33 @@ _.some(characters, 'blocked');
_.some(characters, { 'age': 1 });
// => false
```
-
* * *
-
### `_.sortBy(collection, [callback=identity], [thisArg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L4381 "View in source") [Ⓣ][1]
-
-Creates an array of elements, sorted in ascending order by the results of running each element in a collection through the callback. This method performs a stable sort, that is, it will preserve the original sort order of equal elements. The callback is bound to `thisArg` and invoked with three arguments; *(value, index|key, collection)*.
-
-If a property name is provided for `callback` the created "_.pluck" style callback will return the property value of the given element.
-
-If an array of property names is provided for `callback` the collection will be sorted by each property value.
-
-If an object is provided for `callback` the created "_.where" style callback will return `true` for elements that have the properties of the given object, else `false`.
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L4382 "View in source") [Ⓣ][1]
+
+Creates an array of elements, sorted in ascending order by the results of
+running each element in a collection through the callback. This method
+performs a stable sort, that is, it will preserve the original sort order
+of equal elements. The callback is bound to `thisArg` and invoked with
+three arguments; (value, index|key, collection).
+
+
+If a property name is provided for `callback` the created "_.pluck" style
+callback will return the property value of the given element.
+
+
+If an array of property names is provided for `callback` the collection
+will be sorted by each property value.
+
+
+If an object is provided for `callback` the created "_.where" style callback
+will return `true` for elements that have the properties of the given object,
+else `false`.
#### Arguments
1. `collection` *(Array|Object|string)*: The collection to iterate over.
@@ -2123,7 +2267,7 @@ If an object is provided for `callback` the created "_.where" style callback wil
3. `[thisArg]` *(*)*: The `this` binding of `callback`.
#### Returns
-*(Array)*: Returns a new array of sorted elements.
+*(Array)*: Returns a new array of sorted elements.
#### Example
```js
@@ -2148,16 +2292,14 @@ _.map(_.sortBy(characters, 'age'), _.values);
_.map(_.sortBy(characters, ['name', 'age']), _.values);
// = > [['barney', 26], ['barney', 36], ['fred', 30], ['fred', 40]]
```
-
* * *
-
### `_.toArray(collection)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L4427 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L4428 "View in source") [Ⓣ][1]
Converts the `collection` to an array.
@@ -2165,32 +2307,32 @@ Converts the `collection` to an array.
1. `collection` *(Array|Object|string)*: The collection to convert.
#### Returns
-*(Array)*: Returns the new converted array.
+*(Array)*: Returns the new converted array.
#### Example
```js
(function() { return _.toArray(arguments).slice(1); })(1, 2, 3, 4);
// => [2, 3, 4]
```
-
* * *
-
### `_.where(collection, props)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L4461 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L4462 "View in source") [Ⓣ][1]
-Performs a deep comparison of each element in a `collection` to the given `properties` object, returning an array of all elements that have equivalent property values.
+Performs a deep comparison of each element in a `collection` to the given
+`properties` object, returning an array of all elements that have equivalent
+property values.
#### Arguments
1. `collection` *(Array|Object|string)*: The collection to iterate over.
2. `props` *(Object)*: The object of property values to filter by.
#### Returns
-*(Array)*: Returns a new array of elements that have the given properties.
+*(Array)*: Returns a new array of elements that have the given properties.
#### Example
```js
@@ -2205,15 +2347,12 @@ _.where(characters, { 'age': 36 });
_.where(characters, { 'pets': ['dino'] });
// => [{ 'name': 'fred', 'age': 40, 'pets': ['baby puss', 'dino'] }]
```
-
* * *
-
-
## `“Functions” Methods`
@@ -2221,16 +2360,17 @@ _.where(characters, { 'pets': ['dino'] });
### `_.after(n, func)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L5504 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L5505 "View in source") [Ⓣ][1]
-Creates a function that executes `func`, with the `this` binding and arguments of the created function, only after being called `n` times.
+Creates a function that executes `func`, with the `this` binding and
+arguments of the created function, only after being called `n` times.
#### Arguments
1. `n` *(number)*: The number of times the function must be called before `func` is executed.
2. `func` *(Function)*: The function to restrict.
#### Returns
-*(Function)*: Returns the new restricted function.
+*(Function)*: Returns the new restricted function.
#### Example
```js
@@ -2245,18 +2385,18 @@ _.forEach(saves, function(type) {
});
// => logs 'Done saving!', after all saves have completed
```
-
* * *
-
### `_.bind(func, [thisArg], [arg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L5537 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L5538 "View in source") [Ⓣ][1]
-Creates a function that, when called, invokes `func` with the `this` binding of `thisArg` and prepends any additional `bind` arguments to those provided to the bound function.
+Creates a function that, when called, invokes `func` with the `this`
+binding of `thisArg` and prepends any additional `bind` arguments to those
+provided to the bound function.
#### Arguments
1. `func` *(Function)*: The function to bind.
@@ -2264,7 +2404,7 @@ Creates a function that, when called, invokes `func` with the `this` binding of
3. `[arg]` *(...*)*: Arguments to be partially applied.
#### Returns
-*(Function)*: Returns the new bound function.
+*(Function)*: Returns the new bound function.
#### Example
```js
@@ -2276,25 +2416,26 @@ func = _.bind(func, { 'name': 'fred' }, 'hi');
func();
// => 'hi fred'
```
-
* * *
-
### `_.bindAll(object, [methodName])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L5567 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L5568 "View in source") [Ⓣ][1]
-Binds methods of an object to the object itself, overwriting the existing method. Method names may be specified as individual arguments or as arrays of method names. If no method names are provided all the function properties of `object` will be bound.
+Binds methods of an object to the object itself, overwriting the existing
+method. Method names may be specified as individual arguments or as arrays
+of method names. If no method names are provided all the function properties
+of `object` will be bound.
#### Arguments
1. `object` *(Object)*: The object to bind and assign the bound methods to.
2. `[methodName]` *(...string)*: The object method names to bind, specified as individual method names or arrays of method names.
#### Returns
-*(Object)*: Returns `object`.
+*(Object)*: Returns `object`.
#### Example
```js
@@ -2307,18 +2448,20 @@ _.bindAll(view);
jQuery('#docs').on('click', view.onClick);
// => logs 'clicked docs', when the button is clicked
```
-
* * *
-
### `_.bindKey(object, key, [arg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L5613 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L5614 "View in source") [Ⓣ][1]
-Creates a function that, when called, invokes the method at `object[key]` and prepends any additional `bindKey` arguments to those provided to the bound function. This method differs from `_.bind` by allowing bound functions to reference methods that will be redefined or don't yet exist. See http://michaux.ca/articles/lazy-function-definition-pattern.
+Creates a function that, when called, invokes the method at `object[key]`
+and prepends any additional `bindKey` arguments to those provided to the bound
+function. This method differs from `_.bind` by allowing bound functions to
+reference methods that will be redefined or don't yet exist.
+See http://michaux.ca/articles/lazy-function-definition-pattern.
#### Arguments
1. `object` *(Object)*: The object the method belongs to.
@@ -2326,7 +2469,7 @@ Creates a function that, when called, invokes the method at `object[key]` and pr
3. `[arg]` *(...*)*: Arguments to be partially applied.
#### Returns
-*(Function)*: Returns the new bound function.
+*(Function)*: Returns the new bound function.
#### Example
```js
@@ -2348,24 +2491,25 @@ object.greet = function(greeting) {
func();
// => 'hiya fred!'
```
-
* * *
-
### `_.compose([func])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L5649 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L5650 "View in source") [Ⓣ][1]
-Creates a function that is the composition of the provided functions, where each function consumes the return value of the function that follows. For example, composing the functions `f()`, `g()`, and `h()` produces `f(g(h()))`. Each function is executed with the `this` binding of the composed function.
+Creates a function that is the composition of the provided functions,
+where each function consumes the return value of the function that follows.
+For example, composing the functions `f()`, `g()`, and `h()` produces `f(g(h()))`.
+Each function is executed with the `this` binding of the composed function.
#### Arguments
1. `[func]` *(...Function)*: Functions to compose.
#### Returns
-*(Function)*: Returns the new composed function.
+*(Function)*: Returns the new composed function.
#### Example
```js
@@ -2386,25 +2530,27 @@ var welcome = _.compose(greet, format);
welcome('pebbles');
// => 'Hiya Penelope!'
```
-
* * *
-
### `_.curry(func, [arity=func.length])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L5697 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L5698 "View in source") [Ⓣ][1]
-Creates a function which accepts one or more arguments of `func` that when invoked either executes `func` returning its result, if all `func` arguments have been provided, or returns a function that accepts one or more of the remaining `func` arguments, and so on. The arity of `func` can be specified if `func.length` is not sufficient.
+Creates a function which accepts one or more arguments of `func` that when
+invoked either executes `func` returning its result, if all `func` arguments
+have been provided, or returns a function that accepts one or more of the
+remaining `func` arguments, and so on. The arity of `func` can be specified
+if `func.length` is not sufficient.
#### Arguments
1. `func` *(Function)*: The function to curry.
2. `[arity=func.length]` *(number)*: The arity of `func`.
#### Returns
-*(Function)*: Returns the new curried function.
+*(Function)*: Returns the new curried function.
#### Example
```js
@@ -2421,20 +2567,25 @@ curried(1, 2)(3);
curried(1, 2, 3);
// => 6
```
-
* * *
-
-### `_.debounce(func, wait, [options], [options.maxWait])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L5741 "View in source") [Ⓣ][1]
+### `_.debounce(func, wait, [options])`
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L5742 "View in source") [Ⓣ][1]
-Creates a function that will delay the execution of `func` until after `wait` milliseconds have elapsed since the last time it was invoked. Provide an options object to indicate that `func` should be invoked on the leading and/or trailing edge of the `wait` timeout. Subsequent calls to the debounced function will return the result of the last `func` call.
-
-Note: If `leading` and `trailing` options are `true` `func` will be called on the trailing edge of the timeout only if the the debounced function is invoked more than once during the `wait` timeout.
+Creates a function that will delay the execution of `func` until after
+`wait` milliseconds have elapsed since the last time it was invoked.
+Provide an options object to indicate that `func` should be invoked on
+the leading and/or trailing edge of the `wait` timeout. Subsequent calls
+to the debounced function will return the result of the last `func` call.
+
+
+Note: If `leading` and `trailing` options are `true` `func` will be called
+on the trailing edge of the timeout only if the the debounced function is
+invoked more than once during the `wait` timeout.
#### Arguments
1. `func` *(Function)*: The function to debounce.
@@ -2445,7 +2596,7 @@ Note: If `leading` and `trailing` options are `true` `func` will be called on th
6. `[options.trailing=true]` *(boolean)*: Specify execution on the trailing edge of the timeout.
#### Returns
-*(Function)*: Returns the new debounced function.
+*(Function)*: Returns the new debounced function.
#### Example
```js
@@ -2465,43 +2616,41 @@ source.addEventListener('message', _.debounce(batchLog, 250, {
'maxWait': 1000
}, false);
```
-
* * *
-
### `_.defer(func, [arg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L5857 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L5858 "View in source") [Ⓣ][1]
-Defers executing the `func` function until the current call stack has cleared. Additional arguments will be provided to `func` when it is invoked.
+Defers executing the `func` function until the current call stack has cleared.
+Additional arguments will be provided to `func` when it is invoked.
#### Arguments
1. `func` *(Function)*: The function to defer.
2. `[arg]` *(...*)*: Arguments to invoke the function with.
#### Returns
-*(number)*: Returns the timer id.
+*(number)*: Returns the timer id.
#### Example
```js
_.defer(function(text) { console.log(text); }, 'deferred');
// logs 'deferred' after one or more milliseconds
```
-
* * *
-
### `_.delay(func, wait, [arg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L5881 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L5882 "View in source") [Ⓣ][1]
-Executes the `func` function after `wait` milliseconds. Additional arguments will be provided to `func` when it is invoked.
+Executes the `func` function after `wait` milliseconds. Additional arguments
+will be provided to `func` when it is invoked.
#### Arguments
1. `func` *(Function)*: The function to delay.
@@ -2509,32 +2658,35 @@ Executes the `func` function after `wait` milliseconds. Additional arguments wil
3. `[arg]` *(...*)*: Arguments to invoke the function with.
#### Returns
-*(number)*: Returns the timer id.
+*(number)*: Returns the timer id.
#### Example
```js
_.delay(function(text) { console.log(text); }, 1000, 'later');
// => logs 'later' after one second
```
-
* * *
-
### `_.memoize(func, [resolver])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L5926 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L5927 "View in source") [Ⓣ][1]
-Creates a function that memoizes the result of `func`. If `resolver` is provided it will be used to determine the cache key for storing the result based on the arguments provided to the memoized function. By default, the first argument provided to the memoized function is used as the cache key. The `func` is executed with the `this` binding of the memoized function. The result cache is exposed as the `cache` property on the memoized function.
+Creates a function that memoizes the result of `func`. If `resolver` is
+provided it will be used to determine the cache key for storing the result
+based on the arguments provided to the memoized function. By default, the
+first argument provided to the memoized function is used as the cache key.
+The `func` is executed with the `this` binding of the memoized function.
+The result cache is exposed as the `cache` property on the memoized function.
#### Arguments
1. `func` *(Function)*: The function to have its output memoized.
2. `[resolver]` *(Function)*: A function used to resolve the cache key.
#### Returns
-*(Function)*: Returns the new memoizing function.
+*(Function)*: Returns the new memoizing function.
#### Example
```js
@@ -2559,24 +2711,24 @@ get.cache.pebbles.name = 'penelope';
get('pebbles');
// => { 'name': 'penelope', 'age': 1 }
```
-
* * *
-
### `_.once(func)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L5959 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L5960 "View in source") [Ⓣ][1]
-Creates a function that is restricted to execute `func` once. Repeat calls to the function will return the value of the first call. The `func` is executed with the `this` binding of the created function.
+Creates a function that is restricted to execute `func` once. Repeat calls to
+the function will return the value of the first call. The `func` is executed
+with the `this` binding of the created function.
#### Arguments
1. `func` *(Function)*: The function to restrict.
#### Returns
-*(Function)*: Returns the new restricted function.
+*(Function)*: Returns the new restricted function.
#### Example
```js
@@ -2585,25 +2737,25 @@ initialize();
initialize();
// `initialize` executes `createApplication` once
```
-
* * *
-
### `_.partial(func, [arg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L5997 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L5998 "View in source") [Ⓣ][1]
-Creates a function that, when called, invokes `func` with any additional `partial` arguments prepended to those provided to the new function. This method is similar to `_.bind` except it does **not** alter the `this` binding.
+Creates a function that, when called, invokes `func` with any additional
+`partial` arguments prepended to those provided to the new function. This
+method is similar to `_.bind` except it does **not** alter the `this` binding.
#### Arguments
1. `func` *(Function)*: The function to partially apply arguments to.
2. `[arg]` *(...*)*: Arguments to be partially applied.
#### Returns
-*(Function)*: Returns the new partially applied function.
+*(Function)*: Returns the new partially applied function.
#### Example
```js
@@ -2612,25 +2764,24 @@ var hi = _.partial(greet, 'hi');
hi('fred');
// => 'hi fred'
```
-
* * *
-
### `_.partialRight(func, [arg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L6028 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L6029 "View in source") [Ⓣ][1]
-This method is like `_.partial` except that `partial` arguments are appended to those provided to the new function.
+This method is like `_.partial` except that `partial` arguments are
+appended to those provided to the new function.
#### Arguments
1. `func` *(Function)*: The function to partially apply arguments to.
2. `[arg]` *(...*)*: Arguments to be partially applied.
#### Returns
-*(Function)*: Returns the new partially applied function.
+*(Function)*: Returns the new partially applied function.
#### Example
```js
@@ -2649,20 +2800,25 @@ options.variable
options.imports
// => { '_': _, 'jq': $ }
```
-
* * *
-
### `_.throttle(func, wait, [options])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L6063 "View in source") [Ⓣ][1]
-
-Creates a function that, when executed, will only call the `func` function at most once per every `wait` milliseconds. Provide an options object to indicate that `func` should be invoked on the leading and/or trailing edge of the `wait` timeout. Subsequent calls to the throttled function will return the result of the last `func` call.
-
-Note: If `leading` and `trailing` options are `true` `func` will be called on the trailing edge of the timeout only if the the throttled function is invoked more than once during the `wait` timeout.
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L6064 "View in source") [Ⓣ][1]
+
+Creates a function that, when executed, will only call the `func` function
+at most once per every `wait` milliseconds. Provide an options object to
+indicate that `func` should be invoked on the leading and/or trailing edge
+of the `wait` timeout. Subsequent calls to the throttled function will
+return the result of the last `func` call.
+
+
+Note: If `leading` and `trailing` options are `true` `func` will be called
+on the trailing edge of the timeout only if the the throttled function is
+invoked more than once during the `wait` timeout.
#### Arguments
1. `func` *(Function)*: The function to throttle.
@@ -2672,7 +2828,7 @@ Note: If `leading` and `trailing` options are `true` `func` will be called on th
5. `[options.trailing=true]` *(boolean)*: Specify execution on the trailing edge of the timeout.
#### Returns
-*(Function)*: Returns the new throttled function.
+*(Function)*: Returns the new throttled function.
#### Example
```js
@@ -2685,25 +2841,26 @@ jQuery('.interactive').on('click', _.throttle(renewToken, 300000, {
'trailing': false
}));
```
-
* * *
-
### `_.wrap(value, wrapper)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L6104 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L6105 "View in source") [Ⓣ][1]
-Creates a function that provides `value` to the wrapper function as its first argument. Additional arguments provided to the function are appended to those provided to the wrapper function. The wrapper is executed with the `this` binding of the created function.
+Creates a function that provides `value` to the wrapper function as its
+first argument. Additional arguments provided to the function are appended
+to those provided to the wrapper function. The wrapper is executed with
+the `this` binding of the created function.
#### Arguments
1. `value` *(*)*: The value to wrap.
2. `wrapper` *(Function)*: The wrapper function.
#### Returns
-*(Function)*: Returns the new function.
+*(Function)*: Returns the new function.
#### Example
```js
@@ -2714,15 +2871,12 @@ var p = _.wrap(_.escape, function(func, text) {
p('Fred, Wilma, & Pebbles');
// => '
+
+Note: This method is loosely based on the structured clone algorithm. Functions
+and DOM nodes are **not** cloned. The enumerable properties of `arguments` objects and
+objects created by constructors other than `Object` are cloned to plain `Object` objects.
+See http://www.w3.org/TR/html5/infrastructure.html#internal-structured-cloning-algorithm.
#### Arguments
1. `value` *(*)*: The value to deep clone.
@@ -2827,7 +2992,7 @@ Note: This method is loosely based on the structured clone algorithm. Functions
3. `[thisArg]` *(*)*: The `this` binding of `callback`.
#### Returns
-*(*)*: Returns the deep cloned value.
+*(*)*: Returns the deep cloned value.
#### Example
```js
@@ -2852,25 +3017,25 @@ var clone = _.cloneDeep(view, function(value) {
clone.node == view.node;
// => false
```
-
* * *
-
### `_.create(prototype, [properties])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L2224 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L2225 "View in source") [Ⓣ][1]
-Creates an object that inherits from the given `prototype` object. If a `properties` object is provided its own enumerable properties are assigned to the created object.
+Creates an object that inherits from the given `prototype` object. If a
+`properties` object is provided its own enumerable properties are assigned
+to the created object.
#### Arguments
1. `prototype` *(Object)*: The object to inherit from.
2. `[properties]` *(Object)*: The properties to assign to the object.
#### Returns
-*(Object)*: Returns the new object.
+*(Object)*: Returns the new object.
#### Example
```js
@@ -2892,25 +3057,25 @@ circle instanceof Circle;
circle instanceof Shape;
// => true
```
-
* * *
-
### `_.defaults(object, [source])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L2249 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L2250 "View in source") [Ⓣ][1]
-Assigns own enumerable properties of source object(s) to the destination object for all destination properties that resolve to `undefined`. Once a property is set, additional defaults of the same property will be ignored.
+Assigns own enumerable properties of source object(s) to the destination
+object for all destination properties that resolve to `undefined`. Once a
+property is set, additional defaults of the same property will be ignored.
#### Arguments
1. `object` *(Object)*: The destination object.
2. `[source]` *(...Object)*: The source objects.
#### Returns
-*(Object)*: Returns the destination object.
+*(Object)*: Returns the destination object.
#### Example
```js
@@ -2918,22 +3083,26 @@ var object = { 'name': 'barney' };
_.defaults(object, { 'name': 'fred', 'employer': 'slate' });
// => { 'name': 'barney', 'employer': 'slate' }
```
-
* * *
-
### `_.findKey(object, [callback=identity], [thisArg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L2292 "View in source") [Ⓣ][1]
-
-This method is like `_.findIndex` except that it returns the key of the first element that passes the callback check, instead of the element itself.
-
-If a property name is provided for `callback` the created "_.pluck" style callback will return the property value of the given element.
-
-If an object is provided for `callback` the created "_.where" style callback will return `true` for elements that have the properties of the given object, else `false`.
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L2293 "View in source") [Ⓣ][1]
+
+This method is like `_.findIndex` except that it returns the key of the
+first element that passes the callback check, instead of the element itself.
+
+
+If a property name is provided for `callback` the created "_.pluck" style
+callback will return the property value of the given element.
+
+
+If an object is provided for `callback` the created "_.where" style callback
+will return `true` for elements that have the properties of the given object,
+else `false`.
#### Arguments
1. `object` *(Object)*: The object to search.
@@ -2941,7 +3110,7 @@ If an object is provided for `callback` the created "_.where" style callback wil
3. `[thisArg]` *(*)*: The `this` binding of `callback`.
#### Returns
-*(string, undefined)*: Returns the key of the found element, else `undefined`.
+*(string|undefined)*: Returns the key of the found element, else `undefined`.
#### Example
```js
@@ -2964,22 +3133,26 @@ _.findKey(characters, { 'age': 1 });
_.findKey(characters, 'blocked');
// => 'fred'
```
-
* * *
-
### `_.findLastKey(object, [callback=identity], [thisArg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L2345 "View in source") [Ⓣ][1]
-
-This method is like `_.findKey` except that it iterates over elements of a `collection` in the opposite order.
-
-If a property name is provided for `callback` the created "_.pluck" style callback will return the property value of the given element.
-
-If an object is provided for `callback` the created "_.where" style callback will return `true` for elements that have the properties of the given object, else `false`.
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L2346 "View in source") [Ⓣ][1]
+
+This method is like `_.findKey` except that it iterates over elements
+of a `collection` in the opposite order.
+
+
+If a property name is provided for `callback` the created "_.pluck" style
+callback will return the property value of the given element.
+
+
+If an object is provided for `callback` the created "_.where" style callback
+will return `true` for elements that have the properties of the given object,
+else `false`.
#### Arguments
1. `object` *(Object)*: The object to search.
@@ -2987,7 +3160,7 @@ If an object is provided for `callback` the created "_.where" style callback wil
3. `[thisArg]` *(*)*: The `this` binding of `callback`.
#### Returns
-*(string, undefined)*: Returns the key of the found element, else `undefined`.
+*(string|undefined)*: Returns the key of the found element, else `undefined`.
#### Example
```js
@@ -3010,18 +3183,19 @@ _.findLastKey(characters, { 'age': 40 });
_.findLastKey(characters, 'blocked');
// => 'pebbles'
```
-
* * *
-
### `_.forIn(object, [callback=identity], [thisArg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L2388 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L2389 "View in source") [Ⓣ][1]
-Iterates over own and inherited enumerable properties of an object, executing the callback for each property. The callback is bound to `thisArg` and invoked with three arguments; *(value, key, object)*. Callbacks may exit iteration early by explicitly returning `false`.
+Iterates over own and inherited enumerable properties of an object,
+executing the callback for each property. The callback is bound to `thisArg`
+and invoked with three arguments; (value, key, object). Callbacks may exit
+iteration early by explicitly returning `false`.
#### Arguments
1. `object` *(Object)*: The object to iterate over.
@@ -3029,7 +3203,7 @@ Iterates over own and inherited enumerable properties of an object, executing th
3. `[thisArg]` *(*)*: The `this` binding of `callback`.
#### Returns
-*(Object)*: Returns `object`.
+*(Object)*: Returns `object`.
#### Example
```js
@@ -3048,18 +3222,17 @@ _.forIn(new Shape, function(value, key) {
});
// => logs 'x', 'y', and 'move' (property order is not guaranteed across environments)
```
-
* * *
-
### `_.forInRight(object, [callback=identity], [thisArg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L2420 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L2421 "View in source") [Ⓣ][1]
-This method is like `_.forIn` except that it iterates over elements of a `collection` in the opposite order.
+This method is like `_.forIn` except that it iterates over elements
+of a `collection` in the opposite order.
#### Arguments
1. `object` *(Object)*: The object to iterate over.
@@ -3067,7 +3240,7 @@ This method is like `_.forIn` except that it iterates over elements of a `collec
3. `[thisArg]` *(*)*: The `this` binding of `callback`.
#### Returns
-*(Object)*: Returns `object`.
+*(Object)*: Returns `object`.
#### Example
```js
@@ -3086,18 +3259,19 @@ _.forInRight(new Shape, function(value, key) {
});
// => logs 'move', 'y', and 'x' assuming `_.forIn ` logs 'x', 'y', and 'move'
```
-
* * *
-
### `_.forOwn(object, [callback=identity], [thisArg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L2458 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L2459 "View in source") [Ⓣ][1]
-Iterates over own enumerable properties of an object, executing the callback for each property. The callback is bound to `thisArg` and invoked with three arguments; *(value, key, object)*. Callbacks may exit iteration early by explicitly returning `false`.
+Iterates over own enumerable properties of an object, executing the callback
+for each property. The callback is bound to `thisArg` and invoked with three
+arguments; (value, key, object). Callbacks may exit iteration early by
+explicitly returning `false`.
#### Arguments
1. `object` *(Object)*: The object to iterate over.
@@ -3105,7 +3279,7 @@ Iterates over own enumerable properties of an object, executing the callback for
3. `[thisArg]` *(*)*: The `this` binding of `callback`.
#### Returns
-*(Object)*: Returns `object`.
+*(Object)*: Returns `object`.
#### Example
```js
@@ -3114,18 +3288,17 @@ _.forOwn({ '0': 'zero', '1': 'one', 'length': 2 }, function(num, key) {
});
// => logs '0', '1', and 'length' (property order is not guaranteed across environments)
```
-
* * *
-
### `_.forOwnRight(object, [callback=identity], [thisArg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L2478 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L2479 "View in source") [Ⓣ][1]
-This method is like `_.forOwn` except that it iterates over elements of a `collection` in the opposite order.
+This method is like `_.forOwn` except that it iterates over elements
+of a `collection` in the opposite order.
#### Arguments
1. `object` *(Object)*: The object to iterate over.
@@ -3133,7 +3306,7 @@ This method is like `_.forOwn` except that it iterates over elements of a `colle
3. `[thisArg]` *(*)*: The `this` binding of `callback`.
#### Returns
-*(Object)*: Returns `object`.
+*(Object)*: Returns `object`.
#### Example
```js
@@ -3142,18 +3315,17 @@ _.forOwnRight({ '0': 'zero', '1': 'one', 'length': 2 }, function(num, key) {
});
// => logs 'length', '1', and '0' assuming `_.forOwn` logs '0', '1', and 'length'
```
-
* * *
-
### `_.functions(object)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L2507 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L2508 "View in source") [Ⓣ][1]
-Creates a sorted array of property names of all enumerable properties, own and inherited, of `object` that have function values.
+Creates a sorted array of property names of all enumerable properties,
+own and inherited, of `object` that have function values.
#### Aliases
*_.methods*
@@ -3162,48 +3334,45 @@ Creates a sorted array of property names of all enumerable properties, own and i
1. `object` *(Object)*: The object to inspect.
#### Returns
-*(Array)*: Returns an array of property names that have function values.
+*(Array)*: Returns an array of property names that have function values.
#### Example
```js
_.functions(_);
// => ['all', 'any', 'bind', 'bindAll', 'clone', 'compact', 'compose', ...]
```
-
* * *
-
### `_.has(object, key)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L2532 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L2533 "View in source") [Ⓣ][1]
-Checks if the specified property name exists as a direct property of `object`, instead of an inherited property.
+Checks if the specified property name exists as a direct property of `object`,
+instead of an inherited property.
#### Arguments
1. `object` *(Object)*: The object to inspect.
2. `key` *(string)*: The name of the property to check.
#### Returns
-*(boolean)*: Returns `true` if key is a direct property, else `false`.
+*(boolean)*: Returns `true` if key is a direct property, else `false`.
#### Example
```js
_.has({ 'a': 1, 'b': 2, 'c': 3 }, 'b');
// => true
```
-
* * *
-
### `_.invert(object)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L2549 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L2550 "View in source") [Ⓣ][1]
Creates an object composed of the inverted keys and values of the given object.
@@ -3211,23 +3380,21 @@ Creates an object composed of the inverted keys and values of the given object.
1. `object` *(Object)*: The object to invert.
#### Returns
-*(Object)*: Returns the created inverted object.
+*(Object)*: Returns the created inverted object.
#### Example
```js
_.invert({ 'first': 'fred', 'second': 'barney' });
// => { 'fred': 'first', 'barney': 'second' }
```
-
* * *
-
### `_.isArguments(value)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L1909 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L1910 "View in source") [Ⓣ][1]
Checks if `value` is an `arguments` object.
@@ -3235,7 +3402,7 @@ Checks if `value` is an `arguments` object.
1. `value` *(*)*: The value to check.
#### Returns
-*(boolean)*: Returns `true` if the `value` is an `arguments` object, else `false`.
+*(boolean)*: Returns `true` if the `value` is an `arguments` object, else `false`.
#### Example
```js
@@ -3245,16 +3412,14 @@ Checks if `value` is an `arguments` object.
_.isArguments([1, 2, 3]);
// => false
```
-
* * *
-
### `_.isArray(value)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L1938 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L1939 "View in source") [Ⓣ][1]
Checks if `value` is an array.
@@ -3262,7 +3427,7 @@ Checks if `value` is an array.
1. `value` *(*)*: The value to check.
#### Returns
-*(boolean)*: Returns `true` if the `value` is an array, else `false`.
+*(boolean)*: Returns `true` if the `value` is an array, else `false`.
#### Example
```js
@@ -3272,16 +3437,14 @@ Checks if `value` is an array.
_.isArray([1, 2, 3]);
// => true
```
-
* * *
-
### `_.isBoolean(value)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L2575 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L2576 "View in source") [Ⓣ][1]
Checks if `value` is a boolean value.
@@ -3289,23 +3452,21 @@ Checks if `value` is a boolean value.
1. `value` *(*)*: The value to check.
#### Returns
-*(boolean)*: Returns `true` if the `value` is a boolean value, else `false`.
+*(boolean)*: Returns `true` if the `value` is a boolean value, else `false`.
#### Example
```js
_.isBoolean(null);
// => false
```
-
* * *
-
### `_.isDate(value)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L2593 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L2594 "View in source") [Ⓣ][1]
Checks if `value` is a date.
@@ -3313,23 +3474,21 @@ Checks if `value` is a date.
1. `value` *(*)*: The value to check.
#### Returns
-*(boolean)*: Returns `true` if the `value` is a date, else `false`.
+*(boolean)*: Returns `true` if the `value` is a date, else `false`.
#### Example
```js
_.isDate(new Date);
// => true
```
-
* * *
-
### `_.isElement(value)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L2610 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L2611 "View in source") [Ⓣ][1]
Checks if `value` is a DOM element.
@@ -3337,31 +3496,31 @@ Checks if `value` is a DOM element.
1. `value` *(*)*: The value to check.
#### Returns
-*(boolean)*: Returns `true` if the `value` is a DOM element, else `false`.
+*(boolean)*: Returns `true` if the `value` is a DOM element, else `false`.
#### Example
```js
_.isElement(document.body);
// => true
```
-
* * *
-
### `_.isEmpty(value)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L2635 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L2636 "View in source") [Ⓣ][1]
-Checks if `value` is empty. Arrays, strings, or `arguments` objects with a length of `0` and objects with no own enumerable properties are considered "empty".
+Checks if `value` is empty. Arrays, strings, or `arguments` objects with a
+length of `0` and objects with no own enumerable properties are considered
+"empty".
#### Arguments
1. `value` *(Array|Object|string)*: The value to inspect.
#### Returns
-*(boolean)*: Returns `true` if the `value` is empty, else `false`.
+*(boolean)*: Returns `true` if the `value` is empty, else `false`.
#### Example
```js
@@ -3374,18 +3533,20 @@ _.isEmpty({});
_.isEmpty('');
// => true
```
-
* * *
-
### `_.isEqual(a, b, [callback], [thisArg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L2692 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L2693 "View in source") [Ⓣ][1]
-Performs a deep comparison between two values to determine if they are equivalent to each other. If a callback is provided it will be executed to compare values. If the callback returns `undefined` comparisons will be handled by the method instead. The callback is bound to `thisArg` and invoked with two arguments; *(a, b)*.
+Performs a deep comparison between two values to determine if they are
+equivalent to each other. If a callback is provided it will be executed
+to compare values. If the callback returns `undefined` comparisons will
+be handled by the method instead. The callback is bound to `thisArg` and
+invoked with two arguments; (a, b).
#### Arguments
1. `a` *(*)*: The value to compare.
@@ -3394,7 +3555,7 @@ Performs a deep comparison between two values to determine if they are equivalen
4. `[thisArg]` *(*)*: The `this` binding of `callback`.
#### Returns
-*(boolean)*: Returns `true` if the values are equivalent, else `false`.
+*(boolean)*: Returns `true` if the values are equivalent, else `false`.
#### Example
```js
@@ -3419,26 +3580,26 @@ _.isEqual(words, otherWords, function(a, b) {
});
// => true
```
-
* * *
-
### `_.isFinite(value)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L2724 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L2725 "View in source") [Ⓣ][1]
Checks if `value` is, or can be coerced to, a finite number.
-
-Note: This is not the same as native `isFinite` which will return true for booleans and empty strings. See http://es5.github.io/#x15.1.2.5.
+
+
+Note: This is not the same as native `isFinite` which will return true for
+booleans and empty strings. See http://es5.github.io/#x15.1.2.5.
#### Arguments
1. `value` *(*)*: The value to check.
#### Returns
-*(boolean)*: Returns `true` if the `value` is finite, else `false`.
+*(boolean)*: Returns `true` if the `value` is finite, else `false`.
#### Example
```js
@@ -3457,16 +3618,14 @@ _.isFinite('');
_.isFinite(Infinity);
// => false
```
-
* * *
-
### `_.isFunction(value)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L2741 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L2742 "View in source") [Ⓣ][1]
Checks if `value` is a function.
@@ -3474,33 +3633,33 @@ Checks if `value` is a function.
1. `value` *(*)*: The value to check.
#### Returns
-*(boolean)*: Returns `true` if the `value` is a function, else `false`.
+*(boolean)*: Returns `true` if the `value` is a function, else `false`.
#### Example
```js
_.isFunction(_);
// => true
```
-
* * *
-
### `_.isNaN(value)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L2804 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L2805 "View in source") [Ⓣ][1]
Checks if `value` is `NaN`.
-
-Note: This is not the same as native `isNaN` which will return `true` for `undefined` and other non-numeric values. See http://es5.github.io/#x15.1.2.4.
+
+
+Note: This is not the same as native `isNaN` which will return `true` for
+`undefined` and other non-numeric values. See http://es5.github.io/#x15.1.2.4.
#### Arguments
1. `value` *(*)*: The value to check.
#### Returns
-*(boolean)*: Returns `true` if the `value` is `NaN`, else `false`.
+*(boolean)*: Returns `true` if the `value` is `NaN`, else `false`.
#### Example
```js
@@ -3516,16 +3675,14 @@ isNaN(undefined);
_.isNaN(undefined);
// => false
```
-
* * *
-
### `_.isNull(value)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L2826 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L2827 "View in source") [Ⓣ][1]
Checks if `value` is `null`.
@@ -3533,7 +3690,7 @@ Checks if `value` is `null`.
1. `value` *(*)*: The value to check.
#### Returns
-*(boolean)*: Returns `true` if the `value` is `null`, else `false`.
+*(boolean)*: Returns `true` if the `value` is `null`, else `false`.
#### Example
```js
@@ -3543,50 +3700,48 @@ _.isNull(null);
_.isNull(undefined);
// => false
```
-
* * *
-
### `_.isNumber(value)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L2845 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L2846 "View in source") [Ⓣ][1]
Checks if `value` is a number.
-
+
+
Note: `NaN` is considered a number. See http://es5.github.io/#x8.5.
#### Arguments
1. `value` *(*)*: The value to check.
#### Returns
-*(boolean)*: Returns `true` if the `value` is a number, else `false`.
+*(boolean)*: Returns `true` if the `value` is a number, else `false`.
#### Example
```js
_.isNumber(8.4 * 5);
// => true
```
-
* * *
-
### `_.isObject(value)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L2771 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L2772 "View in source") [Ⓣ][1]
-Checks if `value` is the language type of Object. *(e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)*
+Checks if `value` is the language type of Object.
+(e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
#### Arguments
1. `value` *(*)*: The value to check.
#### Returns
-*(boolean)*: Returns `true` if the `value` is an object, else `false`.
+*(boolean)*: Returns `true` if the `value` is an object, else `false`.
#### Example
```js
@@ -3599,16 +3754,14 @@ _.isObject([1, 2, 3]);
_.isObject(1);
// => false
```
-
* * *
-
### `_.isPlainObject(value)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L2874 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L2875 "View in source") [Ⓣ][1]
Checks if `value` is an object created by the `Object` constructor.
@@ -3616,7 +3769,7 @@ Checks if `value` is an object created by the `Object` constructor.
1. `value` *(*)*: The value to check.
#### Returns
-*(boolean)*: Returns `true` if `value` is a plain object, else `false`.
+*(boolean)*: Returns `true` if `value` is a plain object, else `false`.
#### Example
```js
@@ -3634,16 +3787,14 @@ _.isPlainObject([1, 2, 3]);
_.isPlainObject({ 'x': 0, 'y': 0 });
// => true
```
-
* * *
-
### `_.isRegExp(value)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L2899 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L2900 "View in source") [Ⓣ][1]
Checks if `value` is a regular expression.
@@ -3651,23 +3802,21 @@ Checks if `value` is a regular expression.
1. `value` *(*)*: The value to check.
#### Returns
-*(boolean)*: Returns `true` if the `value` is a regular expression, else `false`.
+*(boolean)*: Returns `true` if the `value` is a regular expression, else `false`.
#### Example
```js
_.isRegExp(/fred/);
// => true
```
-
* * *
-
### `_.isString(value)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L2916 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L2917 "View in source") [Ⓣ][1]
Checks if `value` is a string.
@@ -3675,23 +3824,21 @@ Checks if `value` is a string.
1. `value` *(*)*: The value to check.
#### Returns
-*(boolean)*: Returns `true` if the `value` is a string, else `false`.
+*(boolean)*: Returns `true` if the `value` is a string, else `false`.
#### Example
```js
_.isString('fred');
// => true
```
-
* * *
-
### `_.isUndefined(value)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L2934 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L2935 "View in source") [Ⓣ][1]
Checks if `value` is `undefined`.
@@ -3699,23 +3846,21 @@ Checks if `value` is `undefined`.
1. `value` *(*)*: The value to check.
#### Returns
-*(boolean)*: Returns `true` if the `value` is `undefined`, else `false`.
+*(boolean)*: Returns `true` if the `value` is `undefined`, else `false`.
#### Example
```js
_.isUndefined(void 0);
// => true
```
-
* * *
-
### `_.keys(object)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L1972 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L1973 "View in source") [Ⓣ][1]
Creates an array composed of the own enumerable property names of an object.
@@ -3723,29 +3868,35 @@ Creates an array composed of the own enumerable property names of an object.
1. `object` *(Object)*: The object to inspect.
#### Returns
-*(Array)*: Returns an array of property names.
+*(Array)*: Returns an array of property names.
#### Example
```js
_.keys({ 'one': 1, 'two': 2, 'three': 3 });
// => ['one', 'two', 'three'] (property order is not guaranteed across environments)
```
-
* * *
-
### `_.mapValues(object, [callback=identity], [thisArg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L2974 "View in source") [Ⓣ][1]
-
-Creates an object with the same keys as `object` and values generated by running each own enumerable property of `object` through the callback. The callback is bound to `thisArg` and invoked with three arguments; *(value, key, object)*.
-
-If a property name is provided for `callback` the created "_.pluck" style callback will return the property value of the given element.
-
-If an object is provided for `callback` the created "_.where" style callback will return `true` for elements that have the properties of the given object, else `false`.
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L2975 "View in source") [Ⓣ][1]
+
+Creates an object with the same keys as `object` and values generated by
+running each own enumerable property of `object` through the callback.
+The callback is bound to `thisArg` and invoked with three arguments;
+(value, key, object).
+
+
+If a property name is provided for `callback` the created "_.pluck" style
+callback will return the property value of the given element.
+
+
+If an object is provided for `callback` the created "_.where" style callback
+will return `true` for elements that have the properties of the given object,
+else `false`.
#### Arguments
1. `object` *(Object)*: The object to iterate over.
@@ -3753,7 +3904,7 @@ If an object is provided for `callback` the created "_.where" style callback wil
3. `[thisArg]` *(*)*: The `this` binding of `callback`.
#### Returns
-*(Array)*: Returns a new object with values of the results of each `callback` execution.
+*(Array)*: Returns a new object with values of the results of each `callback` execution.
#### Example
```js
@@ -3769,18 +3920,22 @@ var characters = {
_.mapValues(characters, 'age');
// => { 'fred': 40, 'pebbles': 1 }
```
-
* * *
-
### `_.merge(object, [source], [callback], [thisArg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L3035 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L3036 "View in source") [Ⓣ][1]
-Recursively merges own enumerable properties of the source object(s), that don't resolve to `undefined` into the destination object. Subsequent sources will overwrite property assignments of previous sources. If a callback is provided it will be executed to produce the merged values of the destination and source properties. If the callback returns `undefined` merging will be handled by the method instead. The callback is bound to `thisArg` and invoked with two arguments; *(objectValue, sourceValue)*.
+Recursively merges own enumerable properties of the source object(s), that
+don't resolve to `undefined` into the destination object. Subsequent sources
+will overwrite property assignments of previous sources. If a callback is
+provided it will be executed to produce the merged values of the destination
+and source properties. If the callback returns `undefined` merging will
+be handled by the method instead. The callback is bound to `thisArg` and
+invoked with two arguments; (objectValue, sourceValue).
#### Arguments
1. `object` *(Object)*: The destination object.
@@ -3789,7 +3944,7 @@ Recursively merges own enumerable properties of the source object(s), that don't
4. `[thisArg]` *(*)*: The `this` binding of `callback`.
#### Returns
-*(Object)*: Returns the destination object.
+*(Object)*: Returns the destination object.
#### Example
```js
@@ -3825,18 +3980,21 @@ _.merge(food, otherFood, function(a, b) {
});
// => { 'fruits': ['apple', 'banana'], 'vegetables': ['beet', 'carrot] }
```
-
* * *
-
### `_.omit(object, [callback], [thisArg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L3091 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L3092 "View in source") [Ⓣ][1]
-Creates a shallow clone of `object` excluding the specified properties. Property names may be specified as individual arguments or as arrays of property names. If a callback is provided it will be executed for each property of `object` omitting the properties the callback returns truey for. The callback is bound to `thisArg` and invoked with three arguments; *(value, key, object)*.
+Creates a shallow clone of `object` excluding the specified properties.
+Property names may be specified as individual arguments or as arrays of
+property names. If a callback is provided it will be executed for each
+property of `object` omitting the properties the callback returns truey
+for. The callback is bound to `thisArg` and invoked with three arguments;
+(value, key, object).
#### Arguments
1. `object` *(Object)*: The source object.
@@ -3844,7 +4002,7 @@ Creates a shallow clone of `object` excluding the specified properties. Property
3. `[thisArg]` *(*)*: The `this` binding of `callback`.
#### Returns
-*(Object)*: Returns an object without the omitted properties.
+*(Object)*: Returns an object without the omitted properties.
#### Example
```js
@@ -3856,42 +4014,44 @@ _.omit({ 'name': 'fred', 'age': 40 }, function(value) {
});
// => { 'name': 'fred' }
```
-
* * *
-
### `_.pairs(object)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L3132 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L3133 "View in source") [Ⓣ][1]
-Creates a two dimensional array of an object's key-value pairs, i.e. `[[key1, value1], [key2, value2]]`.
+Creates a two dimensional array of an object's key-value pairs,
+i.e. `[[key1, value1], [key2, value2]]`.
#### Arguments
1. `object` *(Object)*: The object to inspect.
#### Returns
-*(Array)*: Returns new array of key-value pairs.
+*(Array)*: Returns new array of key-value pairs.
#### Example
```js
_.pairs({ 'barney': 36, 'fred': 40 });
// => [['barney', 36], ['fred', 40]] (property order is not guaranteed across environments)
```
-
* * *
-
### `_.pick(object, [callback], [thisArg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L3172 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L3173 "View in source") [Ⓣ][1]
-Creates a shallow clone of `object` composed of the specified properties. Property names may be specified as individual arguments or as arrays of property names. If a callback is provided it will be executed for each property of `object` picking the properties the callback returns truey for. The callback is bound to `thisArg` and invoked with three arguments; *(value, key, object)*.
+Creates a shallow clone of `object` composed of the specified properties.
+Property names may be specified as individual arguments or as arrays of
+property names. If a callback is provided it will be executed for each
+property of `object` picking the properties the callback returns truey
+for. The callback is bound to `thisArg` and invoked with three arguments;
+(value, key, object).
#### Arguments
1. `object` *(Object)*: The source object.
@@ -3899,7 +4059,7 @@ Creates a shallow clone of `object` composed of the specified properties. Proper
3. `[thisArg]` *(*)*: The `this` binding of `callback`.
#### Returns
-*(Object)*: Returns an object composed of the picked properties.
+*(Object)*: Returns an object composed of the picked properties.
#### Example
```js
@@ -3911,18 +4071,21 @@ _.pick({ 'name': 'fred', '_userid': 'fred1' }, function(value, key) {
});
// => { 'name': 'fred' }
```
-
* * *
-
### `_.transform(object, [callback=identity], [accumulator], [thisArg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L3227 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L3228 "View in source") [Ⓣ][1]
-An alternative to `_.reduce` this method transforms `object` to a new `accumulator` object which is the result of running each of its own enumerable properties through a callback, with each callback execution potentially mutating the `accumulator` object. The callback is bound to `thisArg` and invoked with four arguments; *(accumulator, value, key, object)*. Callbacks may exit iteration early by explicitly returning `false`.
+An alternative to `_.reduce` this method transforms `object` to a new
+`accumulator` object which is the result of running each of its own
+enumerable properties through a callback, with each callback execution
+potentially mutating the `accumulator` object. The callback is bound to
+`thisArg` and invoked with four arguments; (accumulator, value, key, object).
+Callbacks may exit iteration early by explicitly returning `false`.
#### Arguments
1. `object` *(Array|Object)*: The object to iterate over.
@@ -3931,7 +4094,7 @@ An alternative to `_.reduce` this method transforms `object` to a new `accumulat
4. `[thisArg]` *(*)*: The `this` binding of `callback`.
#### Returns
-*(*)*: Returns the accumulated value.
+*(*)*: Returns the accumulated value.
#### Example
```js
@@ -3948,16 +4111,14 @@ var mapped = _.transform({ 'a': 1, 'b': 2, 'c': 3 }, function(result, num, key)
});
// => { 'a': 3, 'b': 6, 'c': 9 }
```
-
* * *
-
### `_.values(object)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L3261 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L3262 "View in source") [Ⓣ][1]
Creates an array composed of the own enumerable property values of `object`.
@@ -3965,49 +4126,27 @@ Creates an array composed of the own enumerable property values of `object`.
1. `object` *(Object)*: The object to inspect.
#### Returns
-*(Array)*: Returns an array of property values.
+*(Array)*: Returns an array of property values.
#### Example
```js
_.values({ 'one': 1, 'two': 2, 'three': 3 });
// => [1, 2, 3] (property order is not guaranteed across environments)
```
-
* * *
-
-
## `“Utilities” Methods`
-
-
-### `_.now`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L6351 "View in source") [Ⓣ][1]
-
-*(unknown)*: Gets the number of milliseconds that have elapsed since the Unix epoch *(1 January `1970 00`:00:00 UTC)*.
-
-#### Example
-```js
-var stamp = _.now();
-_.defer(function() { console.log(_.now() - stamp); });
-// => logs the number of milliseconds it took for the deferred function to be called
-```
-
-* * *
-
-
-
-
### `_.constant(value)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L6125 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L6126 "View in source") [Ⓣ][1]
Creates a function that returns `value`.
@@ -4015,7 +4154,7 @@ Creates a function that returns `value`.
1. `value` *(*)*: The value to return from the new function.
#### Returns
-*(Function)*: Returns the new function.
+*(Function)*: Returns the new function.
#### Example
```js
@@ -4024,18 +4163,19 @@ var getter = _.constant(object);
getter() === object;
// => true
```
-
* * *
-
### `_.createCallback([func=identity], [thisArg], [argCount])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L6162 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L6163 "View in source") [Ⓣ][1]
-Produces a callback bound to an optional `thisArg`. If `func` is a property name the created callback will return the property value for a given element. If `func` is an object the created callback will return `true` for elements that contain the equivalent object properties, otherwise it will return `false`.
+Produces a callback bound to an optional `thisArg`. If `func` is a property
+name the created callback will return the property value for a given element.
+If `func` is an object the created callback will return `true` for elements
+that contain the equivalent object properties, otherwise it will return `false`.
#### Arguments
1. `[func=identity]` *(*)*: The value to convert to a callback.
@@ -4043,7 +4183,7 @@ Produces a callback bound to an optional `thisArg`. If `func` is a property name
3. `[argCount]` *(number)*: The number of arguments the callback accepts.
#### Returns
-*(Function)*: Returns a callback function.
+*(Function)*: Returns a callback function.
#### Example
```js
@@ -4063,40 +4203,37 @@ _.createCallback = _.wrap(_.createCallback, function(func, callback, thisArg) {
_.filter(characters, 'age__gt38');
// => [{ 'name': 'fred', 'age': 40 }]
```
-
* * *
-
### `_.escape(string)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L6211 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L6212 "View in source") [Ⓣ][1]
-Converts the characters `&`, `<`, `>`, `"`, and `'` in `string` to their corresponding HTML entities.
+Converts the characters `&`, `<`, `>`, `"`, and `'` in `string` to their
+corresponding HTML entities.
#### Arguments
1. `string` *(string)*: The string to escape.
#### Returns
-*(string)*: Returns the escaped string.
+*(string)*: Returns the escaped string.
#### Example
```js
_.escape('Fred, Wilma, & Pebbles');
// => 'Fred, Wilma, & Pebbles'
```
-
* * *
-
### `_.identity(value)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L6229 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L6230 "View in source") [Ⓣ][1]
This method returns the first argument provided to it.
@@ -4104,7 +4241,7 @@ This method returns the first argument provided to it.
1. `value` *(*)*: Any value.
#### Returns
-*(*)*: Returns `value`.
+*(*)*: Returns `value`.
#### Example
```js
@@ -4112,18 +4249,17 @@ var object = { 'name': 'fred' };
_.identity(object) === object;
// => true
```
-
* * *
-
### `_.mixin([object=lodash], source, [options])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L6261 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L6262 "View in source") [Ⓣ][1]
-Adds function properties of a source object to the destination object. If `object` is a function methods will be added to its prototype as well.
+Adds function properties of a source object to the destination object.
+If `object` is a function methods will be added to its prototype as well.
#### Arguments
1. `[object=lodash]` *(Function|Object)*: object The destination object.
@@ -4148,36 +4284,33 @@ _.mixin({ 'capitalize': capitalize }, { 'chain': false });
_('fred').capitalize();
// => 'Fred'
```
-
* * *
-
### `_.noConflict()`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L6317 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L6318 "View in source") [Ⓣ][1]
-Reverts the '_' variable to its previous value and returns a reference to the `lodash` function.
+Reverts the '_' variable to its previous value and returns a reference to
+the `lodash` function.
#### Returns
-*(Function)*: Returns the `lodash` function.
+*(Function)*: Returns the `lodash` function.
#### Example
```js
var lodash = _.noConflict();
```
-
* * *
-
### `_.noop()`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L6334 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L6335 "View in source") [Ⓣ][1]
A no-operation function.
@@ -4187,51 +4320,70 @@ var object = { 'name': 'fred' };
_.noop(object) === undefined;
// => true
```
-
* * *
+
+
+### `_.now`
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L6352 "View in source") [Ⓣ][1]
+
+Gets the number of milliseconds that have elapsed since the Unix epoch
+(1 January 1970 00:00:00 UTC).
+
+#### Example
+```js
+var stamp = _.now();
+_.defer(function() { console.log(_.now() - stamp); });
+// => logs the number of milliseconds it took for the deferred function to be called
+```
+* * *
+
+
### `_.parseInt(value, [radix])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L6374 "View in source") [Ⓣ][1]
-
-Converts the given value into an integer of the specified radix. If `radix` is `undefined` or `0` a `radix` of `10` is used unless the `value` is a hexadecimal, in which case a `radix` of `16` is used.
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L6375 "View in source") [Ⓣ][1]
-Note: This method avoids differences in native ES3 and ES5 `parseInt` implementations. See http://es5.github.io/#E.
+Converts the given value into an integer of the specified radix.
+If `radix` is `undefined` or `0` a `radix` of `10` is used unless the
+`value` is a hexadecimal, in which case a `radix` of `16` is used.
+
+
+Note: This method avoids differences in native ES3 and ES5 `parseInt`
+implementations. See http://es5.github.io/#E.
#### Arguments
1. `value` *(string)*: The value to parse.
2. `[radix]` *(number)*: The radix used to interpret the value to parse.
#### Returns
-*(number)*: Returns the new integer value.
+*(number)*: Returns the new integer value.
#### Example
```js
_.parseInt('08');
// => 8
```
-
* * *
-
### `_.property(key)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L6403 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L6404 "View in source") [Ⓣ][1]
-Creates a "_.pluck" style function, which returns the `key` value of a given object.
+Creates a "_.pluck" style function, which returns the `key` value of a
+given object.
#### Arguments
1. `key` *(string)*: The name of the property to retrieve.
#### Returns
-*(Function)*: Returns the new function.
+*(Function)*: Returns the new function.
#### Example
```js
@@ -4248,18 +4400,19 @@ _.map(characters, getName);
_.sortBy(characters, getName);
// => [{ 'name': 'barney', 'age': 36 }, { 'name': 'fred', 'age': 40 }]
```
-
* * *
-
### `_.random([min=0], [max=1], [floating=false])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L6436 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L6437 "View in source") [Ⓣ][1]
-Produces a random number between `min` and `max` *(inclusive)*. If only one argument is provided a number between `0` and the given number will be returned. If `floating` is truey or either `min` or `max` are floats a floating-point number will be returned instead of an integer.
+Produces a random number between `min` and `max` (inclusive). If only one
+argument is provided a number between `0` and the given number will be
+returned. If `floating` is truey or either `min` or `max` are floats a
+floating-point number will be returned instead of an integer.
#### Arguments
1. `[min=0]` *(number)*: The minimum possible value.
@@ -4267,7 +4420,7 @@ Produces a random number between `min` and `max` *(inclusive)*. If only one argu
3. `[floating=false]` *(boolean)*: Specify returning a floating-point number.
#### Returns
-*(number)*: Returns a random number.
+*(number)*: Returns a random number.
#### Example
```js
@@ -4283,25 +4436,26 @@ _.random(5, true);
_.random(1.2, 5.2);
// => a floating-point number between 1.2 and 5.2
```
-
* * *
-
### `_.result(object, key)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L6494 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L6495 "View in source") [Ⓣ][1]
-Resolves the value of property `key` on `object`. If `key` is a function it will be invoked with the `this` binding of `object` and its result returned, else the property value is returned. If `object` is falsey then `undefined` is returned.
+Resolves the value of property `key` on `object`. If `key` is a function
+it will be invoked with the `this` binding of `object` and its result returned,
+else the property value is returned. If `object` is falsey then `undefined`
+is returned.
#### Arguments
1. `object` *(Object)*: The object to inspect.
2. `key` *(string)*: The name of the property to resolve.
#### Returns
-*(*)*: Returns the resolved value.
+*(*)*: Returns the resolved value.
#### Example
```js
@@ -4318,16 +4472,14 @@ _.result(object, 'cheese');
_.result(object, 'stuff');
// => 'nonsense'
```
-
* * *
-
### `_.runInContext([context=root])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L469 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L469 "View in source") [Ⓣ][1]
Create a new `lodash` function using the given context object.
@@ -4335,25 +4487,29 @@ Create a new `lodash` function using the given context object.
1. `[context=root]` *(Object)*: The context object.
#### Returns
-*(Function)*: Returns the `lodash` function.
+*(Function)*: Returns the `lodash` function.
* * *
-
-### `_.template(text, data, [options], [options.escape], [options.evaluate], [options.imports], [options.interpolate], [sourceURL], [variable])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L6587 "View in source") [Ⓣ][1]
-
-A micro-templating method that handles arbitrary delimiters, preserves whitespace, and correctly escapes quotes within interpolated code.
-
-Note: In the development build, `_.template` utilizes sourceURLs for easier debugging. See http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl
+### `_.template(text, data, [options], [sourceURL], [variable])`
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L6588 "View in source") [Ⓣ][1]
+A micro-templating method that handles arbitrary delimiters, preserves
+whitespace, and correctly escapes quotes within interpolated code.
+
+
+Note: In the development build, `_.template` utilizes sourceURLs for easier
+debugging. See http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl
+
+
For more information on precompiling templates see:
-http://lodash.com/custom-builds
-
+https://lodash.com/custom-builds
+
+
For more information on Chrome extension sandboxes see:
http://developer.chrome.com/stable/extensions/sandboxingEval.html
@@ -4369,7 +4525,8 @@ http://developer.chrome.com/stable/extensions/sandboxingEval.html
9. `[variable]` *(string)*: The data object variable name.
#### Returns
-*(Function, string)*: Returns a compiled function when no `data` object is given, else it returns the interpolated text.
+*(Function|string)*: Returns a compiled function when no `data` object
+is given, else it returns the interpolated text.
#### Example
```js
@@ -4430,18 +4587,18 @@ fs.writeFileSync(path.join(cwd, 'jst.js'), '\
};\
');
```
-
* * *
-
### `_.times(n, callback, [thisArg])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L6710 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L6711 "View in source") [Ⓣ][1]
-Executes the callback `n` times, returning an array of the results of each callback execution. The callback is bound to `thisArg` and invoked with one argument; *(index)*.
+Executes the callback `n` times, returning an array of the results
+of each callback execution. The callback is bound to `thisArg` and invoked
+with one argument; (index).
#### Arguments
1. `n` *(number)*: The number of times to execute the callback.
@@ -4449,7 +4606,7 @@ Executes the callback `n` times, returning an array of the results of each callb
3. `[thisArg]` *(*)*: The `this` binding of `callback`.
#### Returns
-*(Array)*: Returns an array of the results of each `callback` execution.
+*(Array)*: Returns an array of the results of each `callback` execution.
#### Example
```js
@@ -4462,40 +4619,38 @@ _.times(3, function(n) { mage.castSpell(n); });
_.times(3, function(n) { this.cast(n); }, mage);
// => also calls `mage.castSpell(n)` three times
```
-
* * *
-
### `_.unescape(string)`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L6737 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L6738 "View in source") [Ⓣ][1]
-The inverse of `_.escape` this method converts the HTML entities `&`, `<`, `>`, `"`, and `'` in `string` to their corresponding characters.
+The inverse of `_.escape` this method converts the HTML entities
+`&`, `<`, `>`, `"`, and `'` in `string` to their
+corresponding characters.
#### Arguments
1. `string` *(string)*: The string to unescape.
#### Returns
-*(string)*: Returns the unescaped string.
+*(string)*: Returns the unescaped string.
#### Example
```js
_.unescape('Fred, Barney & Pebbles');
// => 'Fred, Barney & Pebbles'
```
-
* * *
-
### `_.uniqueId([prefix])`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L6757 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L6758 "View in source") [Ⓣ][1]
Generates a unique ID. If `prefix` is provided the ID will be appended to it.
@@ -4503,7 +4658,7 @@ Generates a unique ID. If `prefix` is provided the ID will be appended to it.
1. `[prefix]` *(string)*: The value to prefix the ID with.
#### Returns
-*(string)*: Returns the unique ID.
+*(string)*: Returns the unique ID.
#### Example
```js
@@ -4513,15 +4668,12 @@ _.uniqueId('contact_');
_.uniqueId();
// => '105'
```
-
* * *
-
-
## `Methods`
@@ -4529,7 +4681,7 @@ _.uniqueId();
### `_.templateSettings.imports._`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L867 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L867 "View in source") [Ⓣ][1]
A reference to the `lodash` function.
@@ -4537,10 +4689,8 @@ A reference to the `lodash` function.
-
-
## `Properties`
@@ -4548,243 +4698,240 @@ A reference to the `lodash` function.
### `_.VERSION`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L7078 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L7079 "View in source") [Ⓣ][1]
-*(string)*: The semantic version number.
+(string): The semantic version number.
* * *
-
### `_.support`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L676 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L676 "View in source") [Ⓣ][1]
-*(Object)*: An object used to flag environments features.
+(Object): An object used to flag environments features.
* * *
-
### `_.support.argsClass`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L693 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L693 "View in source") [Ⓣ][1]
-*(boolean)*: Detect if an `arguments` object's [[Class]] is resolvable *(all but Firefox < `4`, IE < `9`)*.
+(boolean): Detect if an `arguments` object's [[Class]] is resolvable (all but Firefox < 4, IE < 9).
* * *
-
### `_.support.argsObject`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L701 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L701 "View in source") [Ⓣ][1]
-*(boolean)*: Detect if `arguments` objects are `Object` objects *(all but Narwhal and Opera < `10.5`)*.
+(boolean): Detect if `arguments` objects are `Object` objects (all but Narwhal and Opera < 10.5).
* * *
-
### `_.support.enumErrorProps`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L710 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L710 "View in source") [Ⓣ][1]
-*(boolean)*: Detect if `name` or `message` properties of `Error.prototype` are enumerable by default. *(IE < `9`, Safari < `5.1`)*
+(boolean): Detect if `name` or `message` properties of `Error.prototype` are
+enumerable by default. (IE < 9, Safari < 5.1)
* * *
-
### `_.support.enumPrototypes`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L723 "View in source") [Ⓣ][1]
-
-*(boolean)*: Detect if `prototype` properties are enumerable by default.
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L723 "View in source") [Ⓣ][1]
-Firefox < `3.6`, Opera > `9.50` - Opera < `11.60`, and Safari < `5.1` *(if the prototype or a property on the prototype has been set)* incorrectly sets a function's `prototype` property [[Enumerable]] value to `true`.
+(boolean): Detect if `prototype` properties are enumerable by default.
+
+
+Firefox < 3.6, Opera > 9.50 - Opera < 11.60, and Safari < 5.1
+(if the prototype or a property on the prototype has been set)
+incorrectly sets a function's `prototype` property [[Enumerable]]
+value to `true`.
* * *
-
### `_.support.funcDecomp`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L732 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L732 "View in source") [Ⓣ][1]
-*(boolean)*: Detect if functions can be decompiled by `Function#toString` *(all but PS3 and older Opera mobile browsers & avoided in Windows `8` apps)*.
+(boolean): Detect if functions can be decompiled by `Function#toString`
+(all but PS3 and older Opera mobile browsers & avoided in Windows 8 apps).
* * *
-
### `_.support.funcNames`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L740 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L740 "View in source") [Ⓣ][1]
-*(boolean)*: Detect if `Function#name` is supported *(all but IE)*.
+(boolean): Detect if `Function#name` is supported (all but IE).
* * *
-
### `_.support.nonEnumArgs`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L749 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L749 "View in source") [Ⓣ][1]
-*(boolean)*: Detect if `arguments` object indexes are non-enumerable *(Firefox < `4`, IE < `9`, PhantomJS, Safari < `5.1`)*.
+(boolean): Detect if `arguments` object indexes are non-enumerable
+(Firefox < 4, IE < 9, PhantomJS, Safari < 5.1).
* * *
-
### `_.support.nonEnumShadows`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L760 "View in source") [Ⓣ][1]
-
-*(boolean)*: Detect if properties shadowing those on `Object.prototype` are non-enumerable.
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L760 "View in source") [Ⓣ][1]
-In IE < `9` an objects own properties, shadowing non-enumerable ones, are made non-enumerable as well *(a.k.a the JScript [[DontEnum]] bug)*.
+(boolean): Detect if properties shadowing those on `Object.prototype` are non-enumerable.
+
+
+In IE < 9 an objects own properties, shadowing non-enumerable ones, are
+made non-enumerable as well (a.k.a the JScript [[DontEnum]] bug).
* * *
-
### `_.support.ownLast`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L768 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L768 "View in source") [Ⓣ][1]
-*(boolean)*: Detect if own properties are iterated after inherited properties *(all but IE < `9`)*.
+(boolean): Detect if own properties are iterated after inherited properties (all but IE < 9).
* * *
-
### `_.support.spliceObjects`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L782 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L782 "View in source") [Ⓣ][1]
-*(boolean)*: Detect if `Array#shift` and `Array#splice` augment array-like objects correctly.
-
-Firefox < `10`, IE compatibility mode, and IE < `9` have buggy Array `shift()` and `splice()` functions that fail to remove the last element, `value[0]`, of array-like objects even though the `length` property is set to `0`. The `shift()` method is buggy in IE `8` compatibility mode, while `splice()` is buggy regardless of mode in IE < `9` and buggy in compatibility mode in IE `9`.
+(boolean): Detect if `Array#shift` and `Array#splice` augment array-like objects correctly.
+
+
+Firefox < 10, IE compatibility mode, and IE < 9 have buggy Array `shift()`
+and `splice()` functions that fail to remove the last element, `value[0]`,
+of array-like objects even though the `length` property is set to `0`.
+The `shift()` method is buggy in IE 8 compatibility mode, while `splice()`
+is buggy regardless of mode in IE < 9 and buggy in compatibility mode in IE 9.
* * *
-
### `_.support.unindexedChars`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L793 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L793 "View in source") [Ⓣ][1]
-*(boolean)*: Detect lack of support for accessing string characters by index.
-
-IE < `8` can't access characters by index and IE `8` can only access characters by index on string literals.
+(boolean): Detect lack of support for accessing string characters by index.
+
+
+IE < 8 can't access characters by index and IE 8 can only access
+characters by index on string literals.
* * *
-
### `_.templateSettings`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L819 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L819 "View in source") [Ⓣ][1]
-*(Object)*: By default, the template delimiters used by Lo-Dash are similar to those in embedded Ruby *(ERB)*. Change the following template settings to use alternative delimiters.
+(Object): By default, the template delimiters used by Lo-Dash are similar to those in
+embedded Ruby (ERB). Change the following template settings to use alternative
+delimiters.
* * *
-
### `_.templateSettings.escape`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L827 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L827 "View in source") [Ⓣ][1]
-*(RegExp)*: Used to detect `data` property values to be HTML-escaped.
+(RegExp): Used to detect `data` property values to be HTML-escaped.
* * *
-
### `_.templateSettings.evaluate`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L835 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L835 "View in source") [Ⓣ][1]
-*(RegExp)*: Used to detect code to be evaluated.
+(RegExp): Used to detect code to be evaluated.
* * *
-
-### `_.templateSettings.interpolate`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L843 "View in source") [Ⓣ][1]
+### `_.templateSettings.imports`
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L859 "View in source") [Ⓣ][1]
-*(RegExp)*: Used to detect `data` property values to inject.
+(Object): Used to import variables into the compiled template.
* * *
-
-### `_.templateSettings.variable`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L851 "View in source") [Ⓣ][1]
+### `_.templateSettings.interpolate`
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L843 "View in source") [Ⓣ][1]
-*(string)*: Used to reference the data object in the template text.
+(RegExp): Used to detect `data` property values to inject.
* * *
-
-### `_.templateSettings.imports`
-# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.1/lodash.js#L859 "View in source") [Ⓣ][1]
+### `_.templateSettings.variable`
+# [Ⓢ](https://github.com/lodash/lodash/blob/2.4.2/lodash.js#L851 "View in source") [Ⓣ][1]
-*(Object)*: Used to import variables into the compiled template.
+(string): Used to reference the data object in the template text.
* * *
-
-
-
- [1]: #arrays "Jump back to the TOC."
+ [1]: #arrays "Jump back to the TOC."
diff --git a/lodash.js b/lodash.js
index 5b3790361d..5013f5c1f9 100644
--- a/lodash.js
+++ b/lodash.js
@@ -1,10 +1,10 @@
/**
* @license
- * Lo-Dash 2.4.1