diff --git a/doc/README.md b/doc/README.md
index 3356ad45f..f09e0975b 100644
--- a/doc/README.md
+++ b/doc/README.md
@@ -12,7 +12,7 @@
* [`_.bind`](#_bindfunc--thisarg-arg1-arg2-)
* [`_.bindAll`](#_bindallobject--methodname1-methodname2-)
* [`_.chain`](#_chainvalue)
-* [`_.clone`](#_clonevalue-deep--guard)
+* [`_.clone`](#_clonevalue-deep--guard-thorough)
* [`_.compact`](#_compactarray)
* [`_.compose`](#_composefunc1-func2-)
* [`_.contains`](#_containscollection-target)
@@ -47,7 +47,7 @@
* [`_.isDate`](#_isdatevalue)
* [`_.isElement`](#_iselementvalue)
* [`_.isEmpty`](#_isemptyvalue)
-* [`_.isEqual`](#_isequala-b)
+* [`_.isEqual`](#_isequala-b-thorough)
* [`_.isFinite`](#_isfinitevalue)
* [`_.isFunction`](#_isfunctionvalue)
* [`_.isNaN`](#_isnanvalue)
@@ -90,6 +90,7 @@
* [`_.uniq`](#_uniqarray--issortedfalse-callbackidentity-thisarg)
* [`_.uniqueId`](#_uniqueidprefix)
* [`_.values`](#_valuesobject)
+* [`_.where`](#_wherecollection-properties)
* [`_.without`](#_withoutarray--value1-value2-)
* [`_.wrap`](#_wrapvalue-wrapper)
* [`_.zip`](#_ziparray1-array2-)
@@ -132,7 +133,7 @@
### `_(value)`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L216 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L226 "View in source") [Ⓣ][1]
The `lodash` function.
@@ -150,7 +151,7 @@ The `lodash` function.
### `_.VERSION`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3792 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3873 "View in source") [Ⓣ][1]
*(String)*: The semantic version number.
@@ -162,7 +163,7 @@ The `lodash` function.
### `_.after(n, func)`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2040 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2981 "View in source") [Ⓣ][1]
Creates a new function that is restricted to executing only after it is called `n` times.
@@ -190,7 +191,7 @@ _.forEach(notes, function(note) {
### `_.bind(func [, thisArg, arg1, arg2, ...])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2094 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3035 "View in source") [Ⓣ][1]
Creates a new function that, when called, invokes `func` with the `this` binding of `thisArg` and prepends any additional `bind` arguments to those passed to the bound function. Lazy defined methods may be bound by passing the object they are bound to as `func` and the method name as `thisArg`.
@@ -241,7 +242,7 @@ func();
### `_.bindAll(object [, methodName1, methodName2, ...])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2164 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3105 "View in source") [Ⓣ][1]
Binds methods on `object` to `object`, overwriting the existing method. If no method names are provided, all the function properties of `object` will be bound.
@@ -272,7 +273,7 @@ jQuery('#lodash_button').on('click', buttonView.onClick);
### `_.chain(value)`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3717 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3798 "View in source") [Ⓣ][1]
Wraps the value in a `lodash` wrapper object.
@@ -305,8 +306,8 @@ var youngest = _.chain(stooges)
-### `_.clone(value, deep [, guard])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2512 "View in source") [Ⓣ][1]
+### `_.clone(value, deep [, guard], thorough)`
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L832 "View in source") [Ⓣ][1]
Create a clone of `value`. If `deep` is `true`, all nested objects, excluding functons and `arguments` objects, will be cloned otherwise they will be assigned by reference.
@@ -314,6 +315,7 @@ Create a clone of `value`. If `deep` is `true`, all nested objects, excluding fu
1. `value` *(Mixed)*: The value to clone.
2. `deep` *(Boolean)*: A flag to indicate a deep clone.
3. `[guard]` *(Object)*: Internally used to allow this method to work with others like `_.map` without using their callback `index` argument for `deep`.
+4. `thorough` *(Boolean)*: Internally used to indicate whether or not to perform a more thorough clone of non-object values.
#### Returns
*(Mixed)*: Returns the cloned `value`.
@@ -346,7 +348,7 @@ shallow[0] === stooges[0];
### `_.compact(array)`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1281 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2222 "View in source") [Ⓣ][1]
Creates a new array with all falsey values of `array` removed. The values `false`, `null`, `0`, `""`, `undefined` and `NaN` are all falsey.
@@ -370,7 +372,7 @@ _.compact([0, 1, false, 2, '', 3]);
### `_.compose([func1, func2, ...])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2200 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3141 "View in source") [Ⓣ][1]
Creates a new function that is the composition of the passed functions, where each function consumes the return value of the function that follows. In math terms, composing the functions `f()`, `g()`, and `h()` produces `f(g(h()))`.
@@ -397,16 +399,16 @@ welcome('moe');
### `_.contains(collection, target)`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L803 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1709 "View in source") [Ⓣ][1]
-Checks if a given `target` value is present in a `collection` using strict equality for comparisons, i.e. `===`.
+Checks if a given `target` element is present in a `collection` using strict equality for comparisons, i.e. `===`.
#### Arguments
1. `collection` *(Array|Object|String)*: The collection to iterate over.
2. `target` *(Mixed)*: The value to check for.
#### Returns
-*(Boolean)*: Returns `true` if `target` value is found, else `false`.
+*(Boolean)*: Returns `true` if the `target` element is found, else `false`.
#### Example
~~~ js
@@ -428,7 +430,7 @@ _.contains('curly', 'ur');
### `_.countBy(collection, callback [, thisArg])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L839 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1745 "View in source") [Ⓣ][1]
Creates an object composed of keys returned from running each element of `collection` through a `callback`. The corresponding value of each key is the number of times the key was returned by `callback`. The `callback` is bound to `thisArg` and invoked with `3` arguments; *(value, index|key, collection)*. The `callback` argument may also be the name of a property to count by *(e.g. 'length')*.
@@ -460,7 +462,7 @@ _.countBy(['one', 'two', 'three'], 'length');
### `_.debounce(func, wait, immediate)`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2233 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3174 "View in source") [Ⓣ][1]
Creates a new function that will delay the execution of `func` until after `wait` milliseconds have elapsed since the last time it was invoked. Pass `true` for `immediate` to cause debounce to invoke `func` on the leading, instead of the trailing, edge of the `wait` timeout. Subsequent calls to the debounced function will return the result of the last `func` call.
@@ -486,7 +488,7 @@ jQuery(window).on('resize', lazyLayout);
### `_.defaults(object [, default1, default2, ...])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2622 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L952 "View in source") [Ⓣ][1]
Assigns enumerable properties of the default object(s) to the `destination` object for all `destination` properties that resolve to `null`/`undefined`. Once a property is set, additional defaults of the same property will be ignored.
@@ -512,7 +514,7 @@ _.defaults(iceCream, { 'flavor': 'vanilla', 'sprinkles': 'rainbow' });
### `_.defer(func [, arg1, arg2, ...])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2298 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3239 "View in source") [Ⓣ][1]
Defers executing the `func` function until the current call stack has cleared. Additional arguments will be passed to `func` when it is invoked.
@@ -537,7 +539,7 @@ _.defer(function() { alert('deferred'); });
### `_.delay(func, wait [, arg1, arg2, ...])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2278 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3219 "View in source") [Ⓣ][1]
Executes the `func` function after `wait` milliseconds. Additional arguments will be passed to `func` when it is invoked.
@@ -564,16 +566,16 @@ _.delay(log, 1000, 'logged later');
### `_.difference(array [, array1, array2, ...])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1313 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2254 "View in source") [Ⓣ][1]
-Creates a new array of `array` values not present in the other arrays using strict equality for comparisons, i.e. `===`.
+Creates a new array of `array` elements not present in the other arrays using strict equality for comparisons, i.e. `===`.
#### Arguments
1. `array` *(Array)*: The array to process.
2. `[array1, array2, ...]` *(Array)*: Arrays to check.
#### Returns
-*(Array)*: Returns a new array of `array` values not present in the other arrays.
+*(Array)*: Returns a new array of `array` elements not present in the other arrays.
#### Example
~~~ js
@@ -589,7 +591,7 @@ _.difference([1, 2, 3, 4, 5], [5, 2, 10]);
### `_.drop(object [, prop1, prop2, ...])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2642 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L972 "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.
@@ -614,7 +616,7 @@ _.drop({ 'name': 'moe', 'age': 40, 'userid': 'moe1' }, 'userid');
### `_.escape(string)`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3352 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3433 "View in source") [Ⓣ][1]
Escapes a string for inclusion in HTML, replacing `&`, `<`, `"`, and `'` characters.
@@ -638,7 +640,7 @@ _.escape('Curly, Larry & Moe');
### `_.every(collection [, callback=identity, thisArg])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L859 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1765 "View in source") [Ⓣ][1]
Checks if the `callback` returns a truthy value for **all** elements of a `collection`. The `callback` is bound to `thisArg` and invoked with `3` arguments; *(value, index|key, collection)*.
@@ -648,7 +650,7 @@ Checks if the `callback` returns a truthy value for **all** elements of a `colle
3. `[thisArg]` *(Mixed)*: The `this` binding for the callback.
#### Returns
-*(Boolean)*: Returns `true` if all values pass the callback check, else `false`.
+*(Boolean)*: Returns `true` if all elements pass the callback check, else `false`.
#### Example
~~~ js
@@ -664,7 +666,7 @@ _.every([true, 1, null, 'yes'], Boolean);
### `_.extend(object [, source1, source2, ...])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2666 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L996 "View in source") [Ⓣ][1]
Assigns enumerable properties of the source object(s) to the `destination` object. Subsequent sources will overwrite propery assignments of previous sources.
@@ -689,9 +691,9 @@ _.extend({ 'name': 'moe' }, { 'age': 40 });
### `_.filter(collection [, callback=identity, thisArg])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L879 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1785 "View in source") [Ⓣ][1]
-Examines each value in a `collection`, returning an array of all values the `callback` returns truthy for. The `callback` is bound to `thisArg` and invoked with `3` arguments; *(value, index|key, collection)*.
+Examines each element in a `collection`, returning an array of all elements the `callback` returns truthy for. The `callback` is bound to `thisArg` and invoked with `3` arguments; *(value, index|key, collection)*.
#### Arguments
1. `collection` *(Array|Object|String)*: The collection to iterate over.
@@ -699,7 +701,7 @@ Examines each value in a `collection`, returning an array of all values the `cal
3. `[thisArg]` *(Mixed)*: The `this` binding for the callback.
#### Returns
-*(Array)*: Returns a new array of values that passed callback check.
+*(Array)*: Returns a new array of elements that passed callback check.
#### Example
~~~ js
@@ -715,9 +717,9 @@ var evens = _.filter([1, 2, 3, 4, 5, 6], function(num) { return num % 2 == 0; })
### `_.find(collection, callback [, thisArg])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L900 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1806 "View in source") [Ⓣ][1]
-Examines each value in a `collection`, returning the first one the `callback` returns truthy for. The function returns as soon as it finds an acceptable value, and does not iterate over the entire `collection`. The `callback` is bound to `thisArg` and invoked with `3` arguments; *(value, index|key, collection)*.
+Examines each element in a `collection`, returning the first one the `callback` returns truthy for. The function returns as soon as it finds an acceptable element, and does not iterate over the entire `collection`. The `callback` is bound to `thisArg` and invoked with `3` arguments; *(value, index|key, collection)*.
#### Arguments
1. `collection` *(Array|Object|String)*: The collection to iterate over.
@@ -725,7 +727,7 @@ Examines each value in a `collection`, returning the first one the `callback` re
3. `[thisArg]` *(Mixed)*: The `this` binding for the callback.
#### Returns
-*(Mixed)*: Returns the value that passed the callback check, else `undefined`.
+*(Mixed)*: Returns the element that passed the callback check, else `undefined`.
#### Example
~~~ js
@@ -741,9 +743,9 @@ var even = _.find([1, 2, 3, 4, 5, 6], function(num) { return num % 2 == 0; });
### `_.first(array [, n, guard])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1350 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2291 "View in source") [Ⓣ][1]
-Gets the first value of the `array`. Pass `n` to return the first `n` values of the `array`.
+Gets the first element of the `array`. Pass `n` to return the first `n` elements of the `array`.
#### Arguments
1. `array` *(Array)*: The array to query.
@@ -751,7 +753,7 @@ Gets the first value of the `array`. Pass `n` to return the first `n` values of
3. `[guard]` *(Object)*: Internally used to allow this method to work with others like `_.map` without using their callback `index` argument for `n`.
#### Returns
-*(Mixed)*: Returns the first value or an array of the first `n` values of `array`.
+*(Mixed)*: Returns the first element or an array of the first `n` elements of `array`.
#### Example
~~~ js
@@ -767,7 +769,7 @@ _.first([5, 4, 3, 2, 1]);
### `_.flatten(array, shallow)`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1374 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2315 "View in source") [Ⓣ][1]
Flattens a nested array *(the nesting can be to any depth)*. If `shallow` is truthy, `array` will only be flattened a single level.
@@ -795,9 +797,9 @@ _.flatten([1, [2], [3, [[4]]]], true);
### `_.forEach(collection, callback [, thisArg])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L926 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1832 "View in source") [Ⓣ][1]
-Iterates over a `collection`, executing the `callback` for each value in the `collection`. The `callback` is bound to `thisArg` and invoked with `3` arguments; *(value, index|key, collection)*.
+Iterates over a `collection`, executing the `callback` for each element in the `collection`. The `callback` is bound to `thisArg` and invoked with `3` arguments; *(value, index|key, collection)*.
#### Arguments
1. `collection` *(Array|Object|String)*: The collection to iterate over.
@@ -824,7 +826,7 @@ _.forEach({ 'one': 1, 'two': 2, 'three': 3 }, alert);
### `_.forIn(object, callback [, thisArg])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2695 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1025 "View in source") [Ⓣ][1]
Iterates over `object`'s own and inherited enumerable properties, executing the `callback` for each property. The `callback` is bound to `thisArg` and invoked with `3` arguments; *(value, key, object)*.
@@ -860,7 +862,7 @@ _.forIn(new Dog('Dagny'), function(value, key) {
### `_.forOwn(object, callback [, thisArg])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2718 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1048 "View in source") [Ⓣ][1]
Iterates over `object`'s own enumerable properties, executing the `callback` for each property. The `callback` is bound to `thisArg` and invoked with `3` arguments; *(value, key, object)*.
@@ -888,7 +890,7 @@ _.forOwn({ '0': 'zero', '1': 'one', 'length': 2 }, function(num, key) {
### `_.functions(object)`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2735 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1065 "View in source") [Ⓣ][1]
Creates a sorted array of all enumerable properties, own and inherited, of `object` that have function values.
@@ -912,7 +914,7 @@ _.functions(_);
### `_.groupBy(collection, callback [, thisArg])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L954 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1860 "View in source") [Ⓣ][1]
Creates an object composed of keys returned from running each element of `collection` through a `callback`. The corresponding value of each key is an array of elements passed to `callback` that returned the key. The `callback` is bound to `thisArg` and invoked with `3` arguments; *(value, index|key, collection)*. The `callback` argument may also be the name of a property to count by *(e.g. 'length')*.
@@ -944,7 +946,7 @@ _.groupBy(['one', 'two', 'three'], 'length');
### `_.has(object, property)`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2758 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1088 "View in source") [Ⓣ][1]
Checks if the specified object `property` exists and is a direct property, instead of an inherited property.
@@ -969,7 +971,7 @@ _.has({ 'a': 1, 'b': 2, 'c': 3 }, 'b');
### `_.identity(value)`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3371 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3452 "View in source") [Ⓣ][1]
This function returns the first argument passed to it. Note: It is used throughout Lo-Dash as a default callback.
@@ -994,7 +996,7 @@ moe === _.identity(moe);
### `_.indexOf(array, value [, fromIndex=0])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1418 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2359 "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, passing `true` for `isSorted` will run a faster binary search.
@@ -1026,9 +1028,9 @@ _.indexOf([1, 1, 2, 2, 3, 3], 2, true);
### `_.initial(array [, n, guard])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1458 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2399 "View in source") [Ⓣ][1]
-Gets all but the last value of `array`. Pass `n` to exclude the last `n` values from the result.
+Gets all but the last element of `array`. Pass `n` to exclude the last `n` elements from the result.
#### Arguments
1. `array` *(Array)*: The array to query.
@@ -1036,7 +1038,7 @@ Gets all but the last value of `array`. Pass `n` to exclude the last `n` values
3. `[guard]` *(Object)*: Internally used to allow this method to work with others like `_.map` without using their callback `index` argument for `n`.
#### Returns
-*(Array)*: Returns all but the last value or `n` values of `array`.
+*(Array)*: Returns all but the last element or `n` elements of `array`.
#### Example
~~~ js
@@ -1052,7 +1054,7 @@ _.initial([3, 2, 1]);
### `_.intersection([array1, array2, ...])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1479 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2420 "View in source") [Ⓣ][1]
Computes the intersection of all the passed-in arrays.
@@ -1060,7 +1062,7 @@ Computes the intersection of all the passed-in arrays.
1. `[array1, array2, ...]` *(Array)*: Arrays to process.
#### Returns
-*(Array)*: Returns a new array of unique values, in order, that are present in **all** of the arrays.
+*(Array)*: Returns a new array of unique elements, in order, that are present in **all** of the arrays.
#### Example
~~~ js
@@ -1076,7 +1078,7 @@ _.intersection([1, 2, 3], [101, 2, 1, 10], [2, 1]);
### `_.invoke(collection, methodName [, arg1, arg2, ...])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L982 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1888 "View in source") [Ⓣ][1]
Invokes the method named by `methodName` on each element in the `collection`. Additional arguments will be passed to each invoked method. If `methodName` is a function it will be invoked for, and `this` bound to, each element in the `collection`.
@@ -1105,7 +1107,7 @@ _.invoke([123, 456], String.prototype.split, '');
### `_.isArguments(value)`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2778 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1108 "View in source") [Ⓣ][1]
Checks if `value` is an `arguments` object.
@@ -1132,7 +1134,7 @@ _.isArguments([1, 2, 3]);
### `_.isArray(value)`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2804 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1134 "View in source") [Ⓣ][1]
Checks if `value` is an array.
@@ -1159,7 +1161,7 @@ _.isArray([1, 2, 3]);
### `_.isBoolean(value)`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2821 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1151 "View in source") [Ⓣ][1]
Checks if `value` is a boolean *(`true` or `false`)* value.
@@ -1183,7 +1185,7 @@ _.isBoolean(null);
### `_.isDate(value)`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2838 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1168 "View in source") [Ⓣ][1]
Checks if `value` is a date.
@@ -1207,7 +1209,7 @@ _.isDate(new Date);
### `_.isElement(value)`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2855 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1185 "View in source") [Ⓣ][1]
Checks if `value` is a DOM element.
@@ -1231,7 +1233,7 @@ _.isElement(document.body);
### `_.isEmpty(value)`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2880 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1210 "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".
@@ -1260,14 +1262,15 @@ _.isEmpty('');
-### `_.isEqual(a, b)`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2915 "View in source") [Ⓣ][1]
+### `_.isEqual(a, b, thorough)`
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1247 "View in source") [Ⓣ][1]
Performs a deep comparison between two values to determine if they are equivalent to each other.
#### Arguments
1. `a` *(Mixed)*: The value to compare.
2. `b` *(Mixed)*: The other value to compare.
+3. `thorough` *(Boolean)*: Internally used to indicate whether or not to perform a more thorough comparison of non-object values.
#### Returns
*(Boolean)*: Returns `true` if the values are equvalent, else `false`.
@@ -1292,7 +1295,7 @@ _.isEqual(moe, clone);
### `_.isFinite(value)`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3068 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1417 "View in source") [Ⓣ][1]
Checks if `value` is a finite number. Note: This is not the same as native `isFinite`, which will return true for booleans and other values. See http://es5.github.com/#x15.1.2.5.
@@ -1322,7 +1325,7 @@ _.isFinite(Infinity);
### `_.isFunction(value)`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3085 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1434 "View in source") [Ⓣ][1]
Checks if `value` is a function.
@@ -1346,7 +1349,7 @@ _.isFunction(''.concat);
### `_.isNaN(value)`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3137 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1486 "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 values. See http://es5.github.com/#x15.1.2.4.
@@ -1379,7 +1382,7 @@ _.isNaN(undefined);
### `_.isNull(value)`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3160 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1509 "View in source") [Ⓣ][1]
Checks if `value` is `null`.
@@ -1406,7 +1409,7 @@ _.isNull(undefined);
### `_.isNumber(value)`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3177 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1526 "View in source") [Ⓣ][1]
Checks if `value` is a number.
@@ -1430,7 +1433,7 @@ _.isNumber(8.4 * 5;
### `_.isObject(value)`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3106 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1455 "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('')`)*
@@ -1457,7 +1460,7 @@ _.isObject(1);
### `_.isRegExp(value)`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3194 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1543 "View in source") [Ⓣ][1]
Checks if `value` is a regular expression.
@@ -1481,7 +1484,7 @@ _.isRegExp(/moe/);
### `_.isString(value)`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3211 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1560 "View in source") [Ⓣ][1]
Checks if `value` is a string.
@@ -1505,7 +1508,7 @@ _.isString('moe');
### `_.isUndefined(value)`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3229 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1578 "View in source") [Ⓣ][1]
Checks if `value` is `undefined`.
@@ -1529,7 +1532,7 @@ _.isUndefined(void 0);
### `_.keys(object)`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3246 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1595 "View in source") [Ⓣ][1]
Creates an array composed of the own enumerable property names of `object`.
@@ -1553,9 +1556,9 @@ _.keys({ 'one': 1, 'two': 2, 'three': 3 });
### `_.last(array [, n, guard])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1520 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2461 "View in source") [Ⓣ][1]
-Gets the last value of the `array`. Pass `n` to return the lasy `n` values of the `array`.
+Gets the last element of the `array`. Pass `n` to return the lasy `n` elementsvof the `array`.
#### Arguments
1. `array` *(Array)*: The array to query.
@@ -1563,7 +1566,7 @@ Gets the last value of the `array`. Pass `n` to return the lasy `n` values of th
3. `[guard]` *(Object)*: Internally used to allow this method to work with others like `_.map` without using their callback `index` argument for `n`.
#### Returns
-*(Mixed)*: Returns the last value or an array of the last `n` values of `array`.
+*(Mixed)*: Returns the last element or an array of the last `n` elements of `array`.
#### Example
~~~ js
@@ -1579,7 +1582,7 @@ _.last([3, 2, 1]);
### `_.lastIndexOf(array, value [, fromIndex=array.length-1])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1546 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2487 "View in source") [Ⓣ][1]
Gets the index at which the last occurrence of `value` is found using strict equality for comparisons, i.e. `===`.
@@ -1608,7 +1611,7 @@ _.lastIndexOf([1, 2, 3, 1, 2, 3], 2, 3);
### `_.map(collection [, callback=identity, thisArg])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1018 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1924 "View in source") [Ⓣ][1]
Creates a new array of values by running each element in the `collection` through a `callback`. The `callback` is bound to `thisArg` and invoked with `3` arguments; *(value, index|key, collection)*.
@@ -1618,7 +1621,7 @@ Creates a new array of values by running each element in the `collection` throug
3. `[thisArg]` *(Mixed)*: The `this` binding for the callback.
#### Returns
-*(Array)*: Returns a new array of values returned by the callback.
+*(Array)*: Returns a new array of elements returned by the callback.
#### Example
~~~ js
@@ -1637,7 +1640,7 @@ _.map({ 'one': 1, 'two': 2, 'three': 3 }, function(num) { return num * 3; });
### `_.max(array [, callback, thisArg])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1586 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2527 "View in source") [Ⓣ][1]
Retrieves the maximum value of an `array`. If `callback` is passed, it will be executed for each value in the `array` to generate the criterion by which the value is ranked. The `callback` is bound to `thisArg` and invoked with `3` arguments; *(value, index, array)*.
@@ -1669,7 +1672,7 @@ _.max(stooges, function(stooge) { return stooge.age; });
### `_.memoize(func [, resolver])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2321 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3262 "View in source") [Ⓣ][1]
Creates a new function that memoizes the result of `func`. If `resolver` is passed, it will be used to determine the cache key for storing the result based on the arguments passed to the memoized function. By default, the first argument passed to the memoized function is used as the cache key.
@@ -1695,7 +1698,7 @@ var fibonacci = _.memoize(function(n) {
### `_.min(array [, callback, thisArg])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1636 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2577 "View in source") [Ⓣ][1]
Retrieves the minimum value of an `array`. If `callback` is passed, it will be executed for each value in the `array` to generate the criterion by which the value is ranked. The `callback` is bound to `thisArg` and invoked with `3` arguments; *(value, index, array)*.
@@ -1721,7 +1724,7 @@ _.min([10, 5, 100, 2, 1000]);
### `_.mixin(object)`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3397 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3478 "View in source") [Ⓣ][1]
Adds functions properties of `object` to the `lodash` function and chainable wrapper.
@@ -1751,7 +1754,7 @@ _('larry').capitalize();
### `_.noConflict()`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3428 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3509 "View in source") [Ⓣ][1]
Reverts the '_' variable to its previous value and returns a reference to the `lodash` function.
@@ -1771,7 +1774,7 @@ var lodash = _.noConflict();
### `_.once(func)`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2347 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3288 "View in source") [Ⓣ][1]
Creates a new function that is restricted to one execution. Repeat calls to the function will return the value of the first call.
@@ -1797,7 +1800,7 @@ initialize();
### `_.partial(func [, arg1, arg2, ...])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2379 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3320 "View in source") [Ⓣ][1]
Creates a new function that, when called, invokes `func` with any additional `partial` arguments prepended to those passed to the new function. This method is similar `bind`, except it does **not** alter the `this` binding.
@@ -1824,7 +1827,7 @@ hi('moe');
### `_.pick(object [, prop1, prop2, ...])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3269 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1618 "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.
@@ -1849,7 +1852,7 @@ _.pick({ 'name': 'moe', 'age': 40, 'userid': 'moe1' }, 'name', 'age');
### `_.pluck(collection, property)`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1041 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1947 "View in source") [Ⓣ][1]
Retrieves the value of a specified property from all elements in the `collection`.
@@ -1880,7 +1883,7 @@ _.pluck(stooges, 'name');
### `_.range([start=0], end [, step=1])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1697 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2638 "View in source") [Ⓣ][1]
Creates an array of numbers *(positive and/or negative)* progressing from `start` up to but not including `stop`. This method is a port of Python's `range()` function. See http://docs.python.org/library/functions.html#range.
@@ -1918,7 +1921,7 @@ _.range(0);
### `_.reduce(collection, callback [, accumulator, thisArg])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1069 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1975 "View in source") [Ⓣ][1]
Boils down a `collection` to a single value. The initial state of the reduction is `accumulator` and each successive step of it should be returned by the `callback`. The `callback` is bound to `thisArg` and invoked with `4` arguments; for arrays they are *(accumulator, value, index|key, collection)*.
@@ -1945,7 +1948,7 @@ var sum = _.reduce([1, 2, 3], function(memo, num) { return memo + num; });
### `_.reduceRight(collection, callback [, accumulator, thisArg])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1106 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2012 "View in source") [Ⓣ][1]
The right-associative version of `_.reduce`.
@@ -1973,7 +1976,7 @@ var flat = _.reduceRight(list, function(a, b) { return a.concat(b); }, []);
### `_.reject(collection [, callback=identity, thisArg])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1161 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2067 "View in source") [Ⓣ][1]
The opposite of `_.filter`, this method returns the values of a `collection` that `callback` does **not** return truthy for.
@@ -1983,7 +1986,7 @@ The opposite of `_.filter`, this method returns the values of a `collection` tha
3. `[thisArg]` *(Mixed)*: The `this` binding for the callback.
#### Returns
-*(Array)*: Returns a new array of values that did **not** pass the callback check.
+*(Array)*: Returns a new array of elements that did **not** pass the callback check.
#### Example
~~~ js
@@ -1999,7 +2002,7 @@ var odds = _.reject([1, 2, 3, 4, 5, 6], function(num) { return num % 2 == 0; });
### `_.rest(array [, n, guard])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1736 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2677 "View in source") [Ⓣ][1]
The opposite of `_.initial`, this method gets all but the first value of `array`. Pass `n` to exclude the first `n` values from the result.
@@ -2025,7 +2028,7 @@ _.rest([3, 2, 1]);
### `_.result(object, property)`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3460 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3541 "View in source") [Ⓣ][1]
Resolves the value of `property` on `object`. If `property` is a function it will be invoked and its result returned, else the property value is returned. If `object` is falsey, then `null` is returned.
@@ -2060,7 +2063,7 @@ _.result(object, 'stuff');
### `_.shuffle(array)`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1757 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2698 "View in source") [Ⓣ][1]
Creates a new array of shuffled `array` values, using a version of the Fisher-Yates shuffle. See http://en.wikipedia.org/wiki/Fisher-Yates_shuffle.
@@ -2084,7 +2087,7 @@ _.shuffle([1, 2, 3, 4, 5, 6]);
### `_.size(value)`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3308 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1657 "View in source") [Ⓣ][1]
Gets the size of `value` by returning `value.length` if `value` is an array, string, or `arguments` object. If `value` is an object, size is determined by returning the number of own enumerable properties it has.
@@ -2114,7 +2117,7 @@ _.size('curly');
### `_.some(collection [, callback=identity, thisArg])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1184 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2090 "View in source") [Ⓣ][1]
Checks if the `callback` returns a truthy value for **any** element of a `collection`. The function returns as soon as it finds passing value, and does not iterate over the entire `collection`. The `callback` is bound to `thisArg` and invoked with `3` arguments; *(value, index|key, collection)*.
@@ -2124,7 +2127,7 @@ Checks if the `callback` returns a truthy value for **any** element of a `collec
3. `[thisArg]` *(Mixed)*: The `this` binding for the callback.
#### Returns
-*(Boolean)*: Returns `true` if any value passes the callback check, else `false`.
+*(Boolean)*: Returns `true` if any element passes the callback check, else `false`.
#### Example
~~~ js
@@ -2140,7 +2143,7 @@ _.some([null, 0, 'yes', false]);
### `_.sortBy(collection, callback [, thisArg])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1214 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2120 "View in source") [Ⓣ][1]
Creates a new sorted array, sorted in ascending order by the results of running each element of `collection` through a `callback`. The `callback` is bound to `thisArg` and invoked with `3` arguments; *(value, index|key, collection)*. The `callback` argument may also be the name of a property to sort by *(e.g. 'length')*.
@@ -2150,7 +2153,7 @@ Creates a new sorted array, sorted in ascending order by the results of running
3. `[thisArg]` *(Mixed)*: The `this` binding for the callback.
#### Returns
-*(Array)*: Returns a new array of sorted values.
+*(Array)*: Returns a new array of sorted elements.
#### Example
~~~ js
@@ -2172,7 +2175,7 @@ _.sortBy(['larry', 'brendan', 'moe'], 'length');
### `_.sortedIndex(array, value [, callback=identity, thisArg])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1809 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2750 "View in source") [Ⓣ][1]
Uses a binary search to determine the smallest index at which the `value` should be inserted into `array` in order to maintain the sort order of the sorted `array`. If `callback` is passed, it will be executed for `value` and each element in `array` to compute their sort ranking. The `callback` is bound to `thisArg` and invoked with `1` argument; *(value)*.
@@ -2213,7 +2216,7 @@ _.sortedIndex(['twenty', 'thirty', 'fourty'], 'thirty-five', function(word) {
### `_.tap(value, interceptor)`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3744 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3825 "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.
@@ -2243,7 +2246,7 @@ _.chain([1,2,3,200])
### `_.template(text, data, options)`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3520 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3601 "View in source") [Ⓣ][1]
A micro-templating method that handles arbitrary delimiters, preserves whitespace, and correctly escapes quotes within interpolated code.
@@ -2302,7 +2305,7 @@ _.template('<%= data.hasWith %>', { 'hasWith': 'no' }, { 'variable': 'data' });
### `_.throttle(func, wait)`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2415 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3356 "View in source") [Ⓣ][1]
Creates a new function that, when executed, will only call the `func` function at most once per every `wait` milliseconds. If the throttled function is invoked more than once during the `wait` timeout, `func` will also be called on the trailing edge of the timeout. Subsequent calls to the throttled function will return the result of the last `func` call.
@@ -2327,7 +2330,7 @@ jQuery(window).on('scroll', throttled);
### `_.times(n, callback [, thisArg])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3660 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3741 "View in source") [Ⓣ][1]
Executes the `callback` function `n` times. The `callback` is bound to `thisArg` and invoked with `1` argument; *(index)*.
@@ -2353,7 +2356,7 @@ _.times(3, function() { this.grantWish(); }, genie);
### `_.toArray(collection)`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1249 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2155 "View in source") [Ⓣ][1]
Converts the `collection`, into an array. Useful for converting the `arguments` object.
@@ -2377,7 +2380,7 @@ Converts the `collection`, into an array. Useful for converting the `arguments`
### `_.union([array1, array2, ...])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1849 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2790 "View in source") [Ⓣ][1]
Computes the union of the passed-in arrays.
@@ -2401,7 +2404,7 @@ _.union([1, 2, 3], [101, 2, 1, 10], [2, 1]);
### `_.uniq(array [, isSorted=false, callback=identity, thisArg])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1893 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2834 "View in source") [Ⓣ][1]
Creates a duplicate-value-free version of the `array` using strict equality for comparisons, i.e. `===`. If the `array` is already sorted, passing `true` for `isSorted` will run a faster algorithm. If `callback` is passed, each element of `array` is passed through a callback` before uniqueness is computed. The `callback` is bound to `thisArg` and invoked with `3` arguments; *(value, index, array)*.
@@ -2437,7 +2440,7 @@ _.uniq([1, 2, 1.5, 3, 2.5], function(num) { return this.floor(num); }, Math);
### `_.uniqueId([prefix])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3687 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3768 "View in source") [Ⓣ][1]
Generates a unique id. If `prefix` is passed, the id will be appended to it.
@@ -2461,7 +2464,7 @@ _.uniqueId('contact_');
### `_.values(object)`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3330 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1679 "View in source") [Ⓣ][1]
Creates an array composed of the own enumerable property values of `object`.
@@ -2482,10 +2485,41 @@ _.values({ 'one': 1, 'two': 2, 'three': 3 });
+
+
+### `_.where(collection, properties)`
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2192 "View in source") [Ⓣ][1]
+
+Examines each element in a `collection`, returning an array of all elements that contain the given `properties`.
+
+#### Arguments
+1. `collection` *(Array|Object|String)*: The collection to iterate over.
+2. `properties` *(Object)*: The object of properties/values to filter by.
+
+#### Returns
+*(Array)*: Returns a new array of elements that contain the given `properties`.
+
+#### Example
+~~~ js
+var stooges = [
+ { 'name': 'moe', 'age': 40 },
+ { 'name': 'larry', 'age': 50 },
+ { 'name': 'curly', 'age': 60 }
+];
+
+_.where(stooges, { 'age': 40 });
+// => [{ 'name': 'moe', 'age': 40 }]
+~~~
+
+* * *
+
+
+
+
### `_.without(array [, value1, value2, ...])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1942 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2883 "View in source") [Ⓣ][1]
Creates a new array with all occurrences of the passed values removed using strict equality for comparisons, i.e. `===`.
@@ -2510,7 +2544,7 @@ _.without([1, 2, 1, 0, 3, 1, 4], 0, 1);
### `_.wrap(value, wrapper)`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2466 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3407 "View in source") [Ⓣ][1]
Creates a new function that passes `value` to the `wrapper` function as its first argument. Additional arguments passed to the new function are appended to those passed to the `wrapper` function.
@@ -2539,7 +2573,7 @@ hello();
### `_.zip([array1, array2, ...])`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1975 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2916 "View in source") [Ⓣ][1]
Merges the elements of each array at their corresponding indexes. Useful for separate data sources that are coordinated through matching array indexes. For a matrix of nested arrays, `_.zip.apply(...)` can transpose the matrix in a similar fashion.
@@ -2563,7 +2597,7 @@ _.zip(['moe', 'larry', 'curly'], [30, 40, 50], [true, false, false]);
### `_.zipObject(keys)`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2004 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2945 "View in source") [Ⓣ][1]
Merges an array of `keys` and an array of `values` into a single object.
@@ -2594,7 +2628,7 @@ _.zipObject(['moe', 'larry', 'curly'], [30, 40, 50]);
### `_.prototype.chain()`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3762 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3843 "View in source") [Ⓣ][1]
Enables method chaining on the wrapper object.
@@ -2615,7 +2649,7 @@ _([1, 2, 3]).value();
### `_.prototype.value()`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3779 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3860 "View in source") [Ⓣ][1]
Extracts the wrapped value.
@@ -2643,7 +2677,7 @@ _([1, 2, 3]).value();
### `_.templateSettings`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L244 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L254 "View in source") [Ⓣ][1]
*(Object)*: By default, Lo-Dash uses embedded Ruby *(ERB)* style template delimiters, change the following template settings to use alternative delimiters.
@@ -2655,7 +2689,7 @@ _([1, 2, 3]).value();
### `_.templateSettings.escape`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L253 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L263 "View in source") [Ⓣ][1]
*(RegExp)*: Used to detect `data` property values to be HTML-escaped.
@@ -2667,7 +2701,7 @@ _([1, 2, 3]).value();
### `_.templateSettings.evaluate`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L262 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L272 "View in source") [Ⓣ][1]
*(RegExp)*: Used to detect code to be evaluated.
@@ -2679,7 +2713,7 @@ _([1, 2, 3]).value();
### `_.templateSettings.interpolate`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L271 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L281 "View in source") [Ⓣ][1]
*(RegExp)*: Used to detect `data` property values to inject.
@@ -2691,7 +2725,7 @@ _([1, 2, 3]).value();
### `_.templateSettings.variable`
-# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L280 "View in source") [Ⓣ][1]
+# [Ⓢ](https://github.com/bestiejs/lodash/blob/master/lodash.js#L290 "View in source") [Ⓣ][1]
*(String)*: Used to reference the data object in the template text.
diff --git a/lodash.min.js b/lodash.min.js
index 530e3efee..18721e82f 100644
--- a/lodash.min.js
+++ b/lodash.min.js
@@ -2,36 +2,38 @@
Lo-Dash 0.4.2 lodash.com/license
Underscore.js 1.3.3 github.com/documentcloud/underscore/blob/master/LICENSE
*/
-;(function(e,t){"use strict";function s(e){return new o(e)}function o(e){if(e&&e._wrapped)return e;this._wrapped=e}function u(e,t,n){t||(t=0);var r=e.length,i=r-t>=(n||30),s=i?{}:e;if(i)for(var o=t-1;++o>>0){"),u.n&&(t+="if(N.call(t)==K){t=t.split('')}"),t+=u.c.d+";while(++pn;n++)t+="p='"+u.o[n]+"';if(","constructor"==u.o[n]&&(t+="!(k&&k.prototype===t)&&"),t+="n.call(t,p)){"+u.m.i+"}"}u.c&&(t+="}")}return t+=u.e+";return H",Function("c,d,e,f,i,j,l,n,o,q,r,v,B,y,G,J,K,N"
-,"return function("+e+"){"+t+"}")(ct,kt,j,C,f,et,dt,tt,O,E,L,p,Ot,ft,rt,it,yt,st)}function f(e,n){return e=e.a,n=n.a,e===t?1:n===t?-1:en?1:0}function l(e,t){return Z[t]}function c(e){return"\\"+Mt[e]}function h(e){return At[e]}function p(e,t){return function(n,r,i){return e.call(t,n,r,i)}}function d(){}function v(e,t){if(R.test(t))return"";var n=Z.length;return Z[n]="'+__e("+t+")+'",Y+n}function m(e,t,n,r){return e=Z.length,t?Z[e]="'+__e("+t+")+'":r?Z[e]="';"+r+";__p+='":n&&(Z[
-e]="'+((__t=("+n+"))==null?'':__t)+'"),Y+e}function g(e,t){if(R.test(t))return"";var n=Z.length;return Z[n]="'+((__t=("+t+"))==null?'':__t)+'",Y+n}function y(e,t,n,r){if(!e)return n;var i=e.length,s=3>arguments.length;r&&(t=p(t,r));if(i===i>>>0){var o=Tt&&st.call(e)==yt?e.split(""):e;for(i&&s&&(n=o[--i]);i--;)n=t(n,o[i],i,e);return n}o=cn(e);for((i=o.length)&&s&&(n=e[o[--i]]);i--;)s=o[i],n=t(n,e[s],s,e);return n}function b(e,t,n){if(e)return t==r||n?e[0]:it.call(e,0,t)}function w(e,t){
-var n=[];if(!e)return n;for(var r,i=-1,s=e.length;++in?Math.max(0,i+n):n)-1}for(;++ri&&(i=e[s]);return i}for(n&&(t=p(t,n));++sr&&(r=n,i=e[s]);return i}function x(e,t,n){return e?
-it.call(e,t==r||n?1:t):[]}function T(e,t,n,r){if(!e)return 0;var i=0,s=e.length;if(n){r&&(n=C(n,r));for(t=n(t);i>>1,n(e[r])>>1,e[r]E(a,r))a.push(r),s.push(e[o]);return s}function C(e,t){function n(){var o=arguments,u=t;return i||(e=t[r]),s.length&&(o=o.length?
-et.apply(s,o):s),this instanceof n?(d.prototype=e.prototype,u=new d,(o=e.apply(u,o))&&Ot[typeof o]?o:u):e.apply(u,o)}var r,i=st.call(e)==dt;if(i){if(Nt||ot&&2++u&&(l=G[u],!tt.call(e,l)||!!(a=tt.call(t,l)&&A(e[l],t[l],s))););}return a}function O(e){return e}function M(e){Vt(an(e),function(t){var r=s[t]=e[t];o.prototype[t]=function(){var e=[this._wrapped
-];return arguments.length&&nt.apply(e,arguments),e=r.apply(s,e),this._chain&&(e=new o(e),e._chain=n),e}})}var n=!0,r=null,i=!1,_,D,P,H,B="object"==typeof exports&&exports&&("object"==typeof global&&global&&global==global.global&&(e=global),exports),j=Array.prototype,F=Object.prototype,I=0,q=e._,R=/[-+=!~*%&^<>|{(\/]|\[\D|\b(?:delete|in|instanceof|new|typeof|void)\b/,U=/\b__p\+='';/g,z=/\b(__p\+=)''\+/g,W=/(__e\(.*?\)|\b__t\))\+'';/g,X=/\w*$/,V=/(?:__e|__t=)\(\s*(?![\d\s"']|this\.)/g,$=RegExp("^"+
-(F.valueOf+"").replace(/[.*+?^=!:${}()|[\]\/\\]/g,"\\$&").replace(/valueOf|for [^\]]+/g,".+?")+"$"),J=/__token__(\d+)/g,K=/[&<"']/g,Q=/['\n\r\t\u2028\u2029\\]/g,G="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),Y="__token__",Z=[],et=j.concat,tt=F.hasOwnProperty,nt=j.push,rt=F.propertyIsEnumerable,it=j.slice,st=F.toString,ot=$.test(ot=it.bind)&&ot,ut=$.test(ut=Array.isArray)&&ut,at=e.isFinite,ft=$.test(ft=Object.keys)&&ft,lt="[object Arguments]"
-,ct="[object Array]",ht="[object Boolean]",pt="[object Date]",dt="[object Function]",vt="[object Number]",mt="[object Object]",gt="[object RegExp]",yt="[object String]",bt=e.clearTimeout,wt=e.setTimeout,Et=!rt.call({valueOf:0},"valueOf"),St=!L(arguments),xt="x"!=it.call("x")[0],Tt="xx"!="x"[0]+Object("x")[0],Nt=ot&&/\n|Opera/.test(ot+st.call(e.opera)),Ct=ft&&/^.+$|true/.test(ft+!!e.attachEvent),kt={"[object Arguments]":n,"[object Array]":n,"[object String]":n},Lt={"[object Array]":n,"[object Boolean]"
-:n,"[object Date]":n,"[object Number]":n,"[object Object]":n,"[object RegExp]":n,"[object String]":n},At={"&":"&","<":"<",'"':""","'":"'"},Ot={"boolean":i,"function":n,object:n,number:i,string:i,"undefined":i},Mt={"\\":"\\","'":"'","\n":"n","\r":"r"," ":"t","\u2028":"u2028","\u2029":"u2029"};s.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,variable:"obj"};var _t={a:"h,g,M",j:"h",p:"if(!g){g=o}else if(M)g=v(g,M)",i:"g(t[p],p,h)"
-},Dt={j:"{}",p:"var C;if(typeof g!='function'){var P=g;g=function(O){return O[P]}}else if(M)g=v(g,M)",i:"C=g(t[p],p,h);(n.call(H,C)?H[C]++:H[C]=1)"},Pt={j:"true",i:"if(!g(t[p],p,h))return!H"},Ht={q:i,r:i,a:"A",j:"A",p:"for(var u=1,w=arguments.length;u-1"},i:"if(t[p]===L)return true"}),Ut=a(_t,Dt),zt=a(_t,Pt),Wt=a(_t,Bt),Xt=a(_t,jt,{j:"",i:"if(g(t[p],p,h))return t[p]"}),Vt=a(_t,jt),$t=a(_t,Dt,{i:"C=g(t[p],p,h);(n.call(H,C)?H[C]:H[C]=[]).push(t[p])"}),Jt=a(It,{a:"h,x",p:"var b=J.call(arguments,2),s=typeof x=='function'",i:{b:"H[p]=(s?x:t[p][x]).apply(t[p],b)"
-,l:"H"+(Ct?"[D]=":".push")+"((s?x:t[p][x]).apply(t[p],b))"}}),Kt=a(_t,It),Qt=a(It,{a:"h,F",i:{b:"H[p]=t[p][F]",l:"H"+(Ct?"[D]=":".push")+"(t[p][F])"}}),Gt=a({a:"h,g,a,M",j:"a",p:"var z=arguments.length<3;if(M)g=v(g,M)",d:{b:"if(z)H=h[++p]"},i:{b:"H=g(H,t[p],p,h)",l:"H=z?(z=false,t[p]):g(H,t[p],p,h)"}}),Yt=a(_t,Bt,{i:"!"+Bt.i}),Zt=a(_t,Pt,{j:"false",i:Pt.i.replace("!","")}),en=a(_t,Dt,It,{i:{b:"H[p]={a:g(t[p],p,h),b:t[p]}",l:"H"+(Ct?"[D]=":".push")+"({a:g(t[p],p,h),b:t[p]})"},e:"H.sort(i);w=H.length;while(w--){H[w]=H[w].b}"
-}),tn=a({q:i,r:i,a:"A",j:"A",p:"var m=arguments,w=m.length;if(w>1){for(var p=1;pe?t():function(){if(1>--e)return t.apply(this,arguments)}},s.bind=C,s.bindAll=tn,s.chain=function(e){return e=new o(e),
-e._chain=n,e},s.clone=k,s.compact=function(e){var t=[];if(!e)return t;for(var n=-1,r=e.length;++nE(t,n)&&zt(s,function(e,t){return(o[t]||(o[t]=u(e)))(n)})&&t.push(n);return t},s.invoke=Jt,s.isArguments=L,s.isArray=fn,s.isBoolean=function(e){return e===n||e===i||st.call(e)==ht},s.isElement=function(e){return!!e&&1==e.nodeType},s.isEmpty=ln,s.isEqual=
-A,s.isFinite=function(e){return at(e)&&st.call(e)==vt},s.isNaN=function(e){return st.call(e)==vt&&e!=+e},s.isNull=function(e){return e===r},s.isObject=function(e){return e&&Ot[typeof e]},s.isUndefined=function(e){return e===t},s.keys=cn,s.last=function(e,t,n){if(e){var i=e.length;return t==r||n?e[i-1]:it.call(e,-t||i)}},s.lastIndexOf=function(e,t,n){if(!e)return-1;var r=e.length;for(n&&"number"==typeof n&&(r=(0>n?Math.max(0,r+n):Math.min(n,r-1))+1);r--;)if(e[r]===t)return r;return-1},s.map=Kt,s.max=
-S,s.memoize=function(e,t){var n={};return function(){var r=t?t.apply(this,arguments):arguments[0];return tt.call(n,r)?n[r]:n[r]=e.apply(this,arguments)}},s.min=function(e,t,n){var r=Infinity,i=r;if(!e)return i;var s=-1,o=e.length;if(!t){for(;++s|"+(a?"|"+a.source:""),"g")),o=Z.length,e=e.replace(H,m),o=o!=Z.length,e="__p += '"+e.replace(Q,c).replace(J,l)+"';",Z.length=0,n||(n=h.variable||D||"obj",o?e="with("+n+"){"+e+"}":(n!=D&&(D=n,P=RegExp("(\\(\\s*)"+n+"\\."+n+"\\b","g")),e=e.replace(V,"$&"+n+".").replace(P,"$1__d"))),e=(o?e.replace(U,""):e).replace(z,"$1").replace(W,"$1;"
-),e="function("+n+"){"+n+"||("+n+"={});var __t,__p='',__e=_.escape"+(o?",__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}":",__d="+n+"."+n+"||"+n+";")+e+"return __p}";try{u=Function("_","return "+e)(s)}catch(p){u=function(){throw p}}return t?u(t):(u.source=e,u)},s.throttle=function(e,t){function n(){a=new Date,u=r,e.apply(o,i)}var i,s,o,u,a=0;return function(){var r=new Date,f=t-(r-a);return i=arguments,o=this,0>=f?(a=r,s=e.apply(o,i)):u||(u=wt(n,f)),s}},s.times=function(e,t
-,n){var r=-1;if(n)for(;++r>>0?(xt?st.call(e)==yt:"string"==typeof e)?e.split(""):it.call(e):hn(e)},s.union=function(){for(var e=-1,t=[],n=et.apply(t,arguments),r=n.length;++eE(t,n[e])&&t.push(n[e]);return t},s.uniq=N,s.uniqueId=function(e){var t=I++;return e?e+t:t},s.values=hn,s.without=function(e){var t=[];if(!e)return t;for(var n=-1
-,r=e.length,i=u(arguments,1,20);++n=(n||30),s=i?{}:e;if(i)for(var o=t-1;++o>>0){"),u.n&&(t+="if(T.call(u)==Q){u=u.split('')}"),t+=u.c.d+";while(++qn;n++)t+="q='"+u.o[n]+"';if(","constructor"==u.o[n]&&(t+="!(k&&k.prototype===u)&&"),t+="o.call(u,q)){U=u[q];"+
+u.m.i+"}"}u.c&&(t+="}")}return t+=u.e+";return N",Function("c,d,e,f,i,j,l,m,o,p,r,s,w,C,z,J,P,Q,T","return function("+e+"){"+t+"}")(dt,Mt,j,A,f,rt,Jt,gt,it,O,T,b,p,Pt,ht,ot,ut,Et,at)}function f(e,n){return e=e.a,n=n.a,e===t?1:n===t?-1:en?1:0}function l(e,t){return nt[t]}function c(e){return"\\"+Ht[e]}function h(e){return Dt[e]}function p(e,t){return function(n,r,i){return e.call(t,n,r,i)}}function d(){}function v(e,t){if(W.test(t))return"";var n=nt.length;return nt[n]="'+__e("+
+t+")+'",tt+n}function m(e,t,n,r){return e=nt.length,t?nt[e]="'+__e("+t+")+'":r?nt[e]="';"+r+";__p+='":n&&(nt[e]="'+((__t=("+n+"))==null?'':__t)+'"),tt+e}function g(e,t){if(W.test(t))return"";var n=nt.length;return nt[n]="'+((__t=("+t+"))==null?'':__t)+'",tt+n}function y(e,t,s,o,u){if(e==r)return e;var a="object"==typeof e;o||(o=[]),s&&(t=i),u==r&&(u=!(!F.clone&&!q.clone&&!R.clone));if((a||u)&&e.clone&&at.call(e.clone)==gt)return e.clone(t);if(a){var f=at.call(e);if(!_t[f]||Nt&&b(e))return e
+;var l,c=e.constructor,h=f==dt;if(f==bt){if(a=!Lt||"function"==typeof e.toString||"string"!=typeof (e+""))l=at.call(c)==gt,a=!l||c instanceof c;a&&(Jt(e,function(e,t){a=t}),a=a==n||it.call(e,a))}}if(!a||!t)return a?h?ut.call(e):$t({},e):e;switch(f){case vt:return new c(e==n);case mt:return new c(+e);case yt:case Et:return new c(e);case wt:return c(e.source,J.exec(e))}for(s=o.length;s--;)if(o[s].value==e)return o[s].clone;var s=e.length,p=h?c(s):l?new c:{};o.push({clone:p,value:e});if(h)for(l=-1;++
+l++u;)if(c=et[u],it.call(e,c)&&(!it.call(t,c)||!w(e[c],t[c],s,o)))return i;return n}return i}function E(e,t,n,r){if(!e)return n;var i=e.length,s=3>arguments.length;r&&(t=p(t,r));if(i===i>>>0){var o=kt&&at.call(e)==Et?e.split(""):e;for(i&&s&&(n=o[--i]);i--;)n=t(n,o[i],i,e);return n}o=Zt(e);for((i=o.length)&&s&&(n=e[o[--i]]);i--;)
+s=o[i],n=t(n,e[s],s,e);return n}function S(e,t,n){if(e)return t==r||n?e[0]:ut.call(e,0,t)}function x(e,t){var n=[];if(!e)return n;for(var r,i=-1,s=e.length;++in?Math.max(0,i+n):n)-1}for(;++ri&&(i=e
+[s]);return i}for(n&&(t=p(t,n));++sr&&(r=n,i=e[s]);return i}function C(e,t,n){return e?ut.call(e,t==r||n?1:t):[]}function k(e,t,n,r){if(!e)return 0;var i=0,s=e.length;if(n){r&&(n=A(n,r));for(t=n(t);i>>1,n(e[r])>>1,e[r]T(a,r))a.push(r),s
+.push(e[o]);return s}function A(e,t){function n(){var o=arguments,u=t;return i||(e=t[r]),s.length&&(o=o.length?rt.apply(s,o):s),this instanceof n?(d.prototype=e.prototype,u=new d,(o=e.apply(u,o))&&Pt[typeof o]?o:u):e.apply(u,o)}var r,i=at.call(e)==gt;if(i){if(At||ft&&2|{(\/]|\[\D|\b(?:delete|in|instanceof|new|typeof|void)\b/,X=/\b__p\+='';/g,V=/\b(__p\+=)''\+/g,$=/(__e\(.*?\)|\b__t\))\+'';/g,J=/\w*$/,K=/(?:__e|__t=)\(\s*(?![\d\s"']|this\.)/g
+,Q=RegExp("^"+(I.valueOf+"").replace(/[.*+?^=!:${}()|[\]\/\\]/g,"\\$&").replace(/valueOf|for [^\]]+/g,".+?")+"$"),G=/__token__(\d+)/g,Y=/[&<"']/g,Z=/['\n\r\t\u2028\u2029\\]/g,et="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),tt="__token__",nt=[],rt=j.concat,it=I.hasOwnProperty,st=j.push,ot=I.propertyIsEnumerable,ut=j.slice,at=I.toString,ft=Q.test(ft=ut.bind)&&ft,lt=Q.test(lt=Array.isArray)&<,ct=e.isFinite,ht=Q.test(ht=Object.keys)&&ht,
+pt="[object Arguments]",dt="[object Array]",vt="[object Boolean]",mt="[object Date]",gt="[object Function]",yt="[object Number]",bt="[object Object]",wt="[object RegExp]",Et="[object String]",St=e.clearTimeout,xt=e.setTimeout,Tt=!ot.call({valueOf:0},"valueOf"),Nt=!b(arguments),Ct="x"!=ut.call("x")[0],kt="xx"!="x"[0]+Object("x")[0],Lt=at.call(e.document||{})==bt,At=ft&&/\n|Opera/.test(ft+at.call(e.opera)),Ot=ht&&/^.+$|true/.test(ht+!!e.attachEvent),Mt={"[object Arguments]":n,"[object Array]":n,"[object Boolean]"
+:i,"[object Date]":i,"[object Function]":i,"[object Number]":i,"[object Object]":i,"[object RegExp]":i,"[object String]":n},_t={"[object Arguments]":i,"[object Array]":n,"[object Boolean]":n,"[object Date]":n,"[object Function]":i,"[object Number]":n,"[object Object]":n,"[object RegExp]":n,"[object String]":n},Dt={"&":"&","<":"<",'"':""","'":"'"},Pt={"boolean":i,"function":n,object:n,number:i,string:i,"undefined":i,unknown:n},Ht={"\\":"\\","'":"'","\n":"n","\r":"r"," ":"t","\u2028"
+:"u2028","\u2029":"u2029"};s.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,variable:"obj"};var Bt={a:"h,g,S",j:"h",p:"if(!g){g=p}else if(S)g=w(g,S)",i:"g(U,q,h)"},jt={j:"{}",p:"var G;if(typeof g!='function'){var V=g;g=function(U){return U[V]}}else if(S)g=w(g,S)",i:"G=g(U,q,h);(o.call(N,G)?N[G]++:N[G]=1)"},Ft={j:"true",i:"if(!g(U,q,h))return!N"},It={q:i,r:i,a:"B",j:"B",p:"for(var v=1,x=arguments.length;v-1"},i:"if(U===R)return true"}),nn=a(Bt,jt),rn=a(Bt,Ft),sn=a(Bt,qt
+),on=a(Bt,Rt,{j:"",i:"if(g(U,q,h))return U"}),un=a(Bt,Rt),an=a(Bt,jt,{i:"G=g(U,q,h);(o.call(N,G)?N[G]:N[G]=[]).push(U)"}),fn=a(zt,{a:"h,y",p:"var b=P.call(arguments,2),t=typeof y=='function'",i:{b:"N[q]=(t?y:U[y]).apply(U,b)",l:"N"+(Ot?"[D]=":".push")+"((t?y:U[y]).apply(U,b))"}}),ln=a(Bt,zt),cn=a(zt,{a:"h,I",i:{b:"N[q]=U[I]",l:"N"+(Ot?"[D]=":".push")+"(U[I])"}}),hn=a({a:"h,g,a,S",j:"a",p:"var A=arguments.length<3;if(S)g=w(g,S)",d:{b:"if(A)N=h[++q]"},i:{b:"N=g(N,U,q,h)",l:"N=A?(A=false,U):g(N,U,q,h)"
+}}),pn=a(Bt,qt,{i:"!"+qt.i}),dn=a(Bt,Ft,{j:"false",i:Ft.i.replace("!","")}),vn=a(Bt,jt,zt,{i:{b:"N[q]={a:g(U,q,h),b:U}",l:"N"+(Ot?"[D]=":".push")+"({a:g(U,q,h),b:U})"},e:"N.sort(i);x=N.length;while(x--){N[x]=N[x].b}"}),mn=a(qt,{a:"h,H",p:"var F,G,K,L=[];l(H,function(U,G){L.push(G)});var M=L.length",i:"for(F=true,K=0;K1){for(var q=1;qe?t():function(){if(1>--e)return t.apply(this,arguments)}},s.bind=A,s.bindAll=gn,s.chain=function(e){return e=new o(e),e._chain=n,e},s.clone=y,s.compact=function(e){var t=[];if(!e)return t;for(var n=-1,r=e.length;++nT(t,n)&&rn(s,function(e,t){return(o[t]||(o[t]=u(e)))(n)})&&t.push(n);return t},s.invoke=fn
+,s.isArguments=b,s.isArray=Gt,s.isBoolean=function(e){return e===n||e===i||at.call(e)==vt},s.isElement=function(e){return!!e&&1==e.nodeType},s.isEmpty=Yt,s.isEqual=w,s.isFinite=function(e){return ct(e)&&at.call(e)==yt},s.isNaN=function(e){return at.call(e)==yt&&e!=+e},s.isNull=function(e){return e===r},s.isObject=function(e){return e&&Pt[typeof e]},s.isUndefined=function(e){return e===t},s.keys=Zt,s.last=function(e,t,n){if(e){var i=e.length;return t==r||n?e[i-1]:ut.call(e,-t||i)}},s.lastIndexOf=function(
+e,t,n){if(!e)return-1;var r=e.length;for(n&&"number"==typeof n&&(r=(0>n?Math.max(0,r+n):Math.min(n,r-1))+1);r--;)if(e[r]===t)return r;return-1},s.map=ln,s.max=N,s.memoize=function(e,t){var n={};return function(){var r=t?t.apply(this,arguments):arguments[0];return it.call(n,r)?n[r]:n[r]=e.apply(this,arguments)}},s.min=function(e,t,n){var r=Infinity,i=r;if(!e)return i;var s=-1,o=e.length;if(!t){for(;++s|"+(a?"|"+a.source:""),"g")),o=nt.length,e=e.replace(H,m),o=o!=nt.length,e="__p += '"+e.replace(Z,c).replace(G,l)+"';",nt.length=0,n||(n=h.variable||D||"obj",o?e="with("+n+"){"+
+e+"}":(n!=D&&(D=n,P=RegExp("(\\(\\s*)"+n+"\\."+n+"\\b","g")),e=e.replace(K,"$&"+n+".").replace(P,"$1__d"))),e=(o?e.replace(X,""):e).replace(V,"$1").replace($,"$1;"),e="function("+n+"){"+n+"||("+n+"={});var __t,__p='',__e=_.escape"+(o?",__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}":",__d="+n+"."+n+"||"+n+";")+e+"return __p}";try{u=Function("_","return "+e)(s)}catch(p){u=function(){throw p}}return t?u(t):(u.source=e,u)},s.throttle=function(e,t){function n(){a=new Date,u=r,
+e.apply(o,i)}var i,s,o,u,a=0;return function(){var r=new Date,f=t-(r-a);return i=arguments,o=this,0>=f?(a=r,s=e.apply(o,i)):u||(u=xt(n,f)),s}},s.times=function(e,t,n){var r=-1;if(n)for(;++r>>0?(Ct?at.call(e)==Et:"string"==typeof e)?e.split(""):ut.call(e):en(e)},s.union=function(){for(var e=-1,t=[],n=rt.apply(t,arguments),r=n.length;++e
+T(t,n[e])&&t.push(n[e]);return t},s.uniq=L,s.uniqueId=function(e){var t=U++;return e?e+t:t},s.values=en,s.where=mn,s.without=function(e){var t=[];if(!e)return t;for(var n=-1,r=e.length,i=u(arguments,1,20);++n