Update minified build, documentation, and Backbone submodule.

Former-commit-id: cca2cf2f55e2750486d1d32b8da26fbc5576a65b
This commit is contained in:
John-David Dalton
2012-06-03 21:58:35 -04:00
parent 9ac64623fc
commit d9aee5ae60
3 changed files with 148 additions and 123 deletions

View File

@@ -22,9 +22,9 @@
* [`_.delay`](#_delayfunc-wait--arg1-arg2-)
* [`_.difference`](#_differencearray--array1-array2-)
* [`_.escape`](#_escapestring)
* [`_.every`](#_everycollection-callback--thisarg)
* [`_.every`](#_everycollection--callbackidentity-thisarg)
* [`_.extend`](#_extendobject--source1-source2-)
* [`_.filter`](#_filtercollection-callback--thisarg)
* [`_.filter`](#_filtercollection--callbackidentity-thisarg)
* [`_.find`](#_findcollection-callback--thisarg)
* [`_.first`](#_firstarray--n-guard)
* [`_.flatten`](#_flattenarray-shallow)
@@ -56,7 +56,7 @@
* [`_.keys`](#_keysobject)
* [`_.last`](#_lastarray--n-guard)
* [`_.lastIndexOf`](#_lastindexofarray-value--fromindexarraylength-1)
* [`_.map`](#_mapcollection-callback--thisarg)
* [`_.map`](#_mapcollection--callbackidentity-thisarg)
* [`_.max`](#_maxarray--callback-thisarg)
* [`_.memoize`](#_memoizefunc--resolver)
* [`_.min`](#_minarray--callback-thisarg)
@@ -69,21 +69,21 @@
* [`_.range`](#_rangestart0-end--step1)
* [`_.reduce`](#_reducecollection-callback--accumulator-thisarg)
* [`_.reduceRight`](#_reducerightcollection-callback--accumulator-thisarg)
* [`_.reject`](#_rejectcollection-callback--thisarg)
* [`_.reject`](#_rejectcollection--callbackidentity-thisarg)
* [`_.rest`](#_restarray--n-guard)
* [`_.result`](#_resultobject-property)
* [`_.shuffle`](#_shufflearray)
* [`_.size`](#_sizevalue)
* [`_.some`](#_somecollection-callback--thisarg)
* [`_.some`](#_somecollection--callbackidentity-thisarg)
* [`_.sortBy`](#_sortbyarray-callback--thisarg)
* [`_.sortedIndex`](#_sortedindexarray-value--callback)
* [`_.sortedIndex`](#_sortedindexarray-value--callbackidentity-thisarg)
* [`_.tap`](#_tapvalue-interceptor)
* [`_.template`](#_templatetext-data-options)
* [`_.throttle`](#_throttlefunc-wait)
* [`_.times`](#_timesn-callback--thisarg)
* [`_.toArray`](#_toarraycollection)
* [`_.union`](#_unionarray1-array2-)
* [`_.uniq`](#_uniqarray--issortedfalse-callback)
* [`_.uniq`](#_uniqarray--issortedfalse-callbackidentity-thisarg)
* [`_.uniqueId`](#_uniqueidprefix)
* [`_.values`](#_valuescollection)
* [`_.without`](#_withoutarray--value1-value2-)
@@ -145,7 +145,7 @@ The `lodash` function.
<!-- div -->
### <a id="_version"></a>`_.VERSION`
<a href="#_version">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3147 "View in source") [&#x24C9;][1]
<a href="#_version">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3184 "View in source") [&#x24C9;][1]
*(String)*: The semantic version number.
@@ -157,7 +157,7 @@ The `lodash` function.
<!-- div -->
### <a id="_aftern-func"></a>`_.after(n, func)`
<a href="#_aftern-func">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1669 "View in source") [&#x24C9;][1]
<a href="#_aftern-func">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1706 "View in source") [&#x24C9;][1]
Creates a new function that is restricted to executing only after it is called `n` times.
@@ -185,7 +185,7 @@ _.forEach(notes, function(note) {
<!-- div -->
### <a id="_bindfunc--thisarg-arg1-arg2-"></a>`_.bind(func [, thisArg, arg1, arg2, ...])`
<a href="#_bindfunc--thisarg-arg1-arg2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1720 "View in source") [&#x24C9;][1]
<a href="#_bindfunc--thisarg-arg1-arg2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1757 "View in source") [&#x24C9;][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`.
@@ -233,7 +233,7 @@ func();
<!-- div -->
### <a id="_bindallobject--methodname1-methodname2-"></a>`_.bindAll(object [, methodName1, methodName2, ...])`
<a href="#_bindallobject--methodname1-methodname2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1791 "View in source") [&#x24C9;][1]
<a href="#_bindallobject--methodname1-methodname2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1828 "View in source") [&#x24C9;][1]
Binds methods on the `object` to the object, overwriting the non-bound method. If no method names are provided, all the function properties of the `object` will be bound.
@@ -265,7 +265,7 @@ jQuery('#lodash_button').on('click', buttonView.onClick);
<!-- div -->
### <a id="_chainvalue"></a>`_.chain(value)`
<a href="#_chainvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3099 "View in source") [&#x24C9;][1]
<a href="#_chainvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3136 "View in source") [&#x24C9;][1]
Wraps the value in a `lodash` chainable object.
@@ -299,7 +299,7 @@ var youngest = _.chain(stooges)
<!-- div -->
### <a id="_clonevalue"></a>`_.clone(value)`
<a href="#_clonevalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2117 "View in source") [&#x24C9;][1]
<a href="#_clonevalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2154 "View in source") [&#x24C9;][1]
Create a shallow clone of the `value`. Any nested objects or arrays will be assigned by reference and not cloned.
@@ -347,7 +347,7 @@ _.compact([0, 1, false, 2, '', 3]);
<!-- div -->
### <a id="_composefunc1-func2-"></a>`_.compose([func1, func2, ...])`
<a href="#_composefunc1-func2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1823 "View in source") [&#x24C9;][1]
<a href="#_composefunc1-func2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1860 "View in source") [&#x24C9;][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 thefunctions `f()`, `g()`, and `h()` produces `f(g(h()))`.
@@ -399,7 +399,7 @@ _.contains([1, 2, 3], 3);
<!-- div -->
### <a id="_debouncefunc-wait-immediate"></a>`_.debounce(func, wait, immediate)`
<a href="#_debouncefunc-wait-immediate">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1856 "View in source") [&#x24C9;][1]
<a href="#_debouncefunc-wait-immediate">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1893 "View in source") [&#x24C9;][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.
@@ -425,7 +425,7 @@ jQuery(window).on('resize', lazyLayout);
<!-- div -->
### <a id="_defaultsobject--defaults1-defaults2-"></a>`_.defaults(object [, defaults1, defaults2, ...])`
<a href="#_defaultsobject--defaults1-defaults2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2140 "View in source") [&#x24C9;][1]
<a href="#_defaultsobject--defaults1-defaults2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2177 "View in source") [&#x24C9;][1]
Assigns missing properties in `object` with default values from the defaults objects. As soon as a property is set, additional defaults of the same property will be ignored.
@@ -439,8 +439,8 @@ Assigns missing properties in `object` with default values from the defaults obj
#### Example
~~~ js
var iceCream = { 'flavor': 'chocolate' };
_.defaults(iceCream, { 'flavor': 'vanilla', 'sprinkles': 'lots' });
// => { 'flavor': 'chocolate', 'sprinkles': 'lots' }
_.defaults(iceCream, { 'flavor': 'vanilla', 'sprinkles': 'rainbow' });
// => { 'flavor': 'chocolate', 'sprinkles': 'rainbow' }
~~~
* * *
@@ -451,7 +451,7 @@ _.defaults(iceCream, { 'flavor': 'vanilla', 'sprinkles': 'lots' });
<!-- div -->
### <a id="_deferfunc--arg1-arg2-"></a>`_.defer(func [, arg1, arg2, ...])`
<a href="#_deferfunc--arg1-arg2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1921 "View in source") [&#x24C9;][1]
<a href="#_deferfunc--arg1-arg2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1958 "View in source") [&#x24C9;][1]
Defers executing the `func` function until the current call stack has cleared. Additional arguments are passed to `func` when it is invoked.
@@ -476,7 +476,7 @@ _.defer(function() { alert('deferred'); });
<!-- div -->
### <a id="_delayfunc-wait--arg1-arg2-"></a>`_.delay(func, wait [, arg1, arg2, ...])`
<a href="#_delayfunc-wait--arg1-arg2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1901 "View in source") [&#x24C9;][1]
<a href="#_delayfunc-wait--arg1-arg2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1938 "View in source") [&#x24C9;][1]
Executes the `func` function after `wait` milliseconds. Additional arguments are passed to `func` when it is invoked.
@@ -528,7 +528,7 @@ _.difference([1, 2, 3, 4, 5], [5, 2, 10]);
<!-- div -->
### <a id="_escapestring"></a>`_.escape(string)`
<a href="#_escapestring">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2788 "View in source") [&#x24C9;][1]
<a href="#_escapestring">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2825 "View in source") [&#x24C9;][1]
Escapes a string for insertion into HTML, replacing `&`, `<`, `"`, `'`, and `/` characters.
@@ -551,14 +551,14 @@ _.escape('Curly, Larry & Moe');
<!-- div -->
### <a id="_everycollection-callback--thisarg"></a>`_.every(collection, callback [, thisArg])`
<a href="#_everycollection-callback--thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L579 "View in source") [&#x24C9;][1]
### <a id="_everycollection--callbackidentity-thisarg"></a>`_.every(collection [, callback=identity, thisArg])`
<a href="#_everycollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L579 "View in source") [&#x24C9;][1]
Checks if the `callback` returns a truthy value for **all** elements of a `collection`. The `callback` is invoked with `3` arguments; for arrays they are *(value, index, array)* and for objects they are *(value, key, object)*.
#### Arguments
1. `collection` *(Array|Object)*: The collection to iterate over.
2. `callback` *(Function)*: The function called per iteration.
2. `[callback=identity]` *(Function)*: The function called per iteration.
3. `[thisArg]` *(Mixed)*: The `this` binding for the callback.
#### Returns
@@ -578,7 +578,7 @@ _.every([true, 1, null, 'yes'], Boolean);
<!-- div -->
### <a id="_extendobject--source1-source2-"></a>`_.extend(object [, source1, source2, ...])`
<a href="#_extendobject--source1-source2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2159 "View in source") [&#x24C9;][1]
<a href="#_extendobject--source1-source2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2196 "View in source") [&#x24C9;][1]
Copies enumerable properties from the source objects to the `destination` object. Subsequent sources will overwrite propery assignments of previous sources.
@@ -602,14 +602,14 @@ _.extend({ 'name': 'moe' }, { 'age': 40 });
<!-- div -->
### <a id="_filtercollection-callback--thisarg"></a>`_.filter(collection, callback [, thisArg])`
<a href="#_filtercollection-callback--thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L600 "View in source") [&#x24C9;][1]
### <a id="_filtercollection--callbackidentity-thisarg"></a>`_.filter(collection [, callback=identity, thisArg])`
<a href="#_filtercollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L600 "View in source") [&#x24C9;][1]
Examines each value in a `collection`, returning an array of all values the `callback` returns truthy for. The `callback` is invoked with `3` arguments; for arrays they are *(value, index, array)* and for objects they are *(value, key, object)*.
#### Arguments
1. `collection` *(Array|Object)*: The collection to iterate over.
2. `callback` *(Function)*: The function called per iteration.
2. `[callback=identity]` *(Function)*: The function called per iteration.
3. `[thisArg]` *(Mixed)*: The `this` binding for the callback.
#### Returns
@@ -738,7 +738,7 @@ _([1, 2, 3]).forEach(function(num) { alert(num); }).join(',');
<!-- div -->
### <a id="_functionsobject"></a>`_.functions(object)`
<a href="#_functionsobject">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2176 "View in source") [&#x24C9;][1]
<a href="#_functionsobject">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2213 "View in source") [&#x24C9;][1]
Produces a sorted array of the properties, own and inherited, of `object` that have function values.
@@ -794,7 +794,7 @@ _.groupBy(['one', 'two', 'three'], 'length');
<!-- div -->
### <a id="_hasobject-property"></a>`_.has(object, property)`
<a href="#_hasobject-property">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2199 "View in source") [&#x24C9;][1]
<a href="#_hasobject-property">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2236 "View in source") [&#x24C9;][1]
Checks if the specified object `property` exists and is a direct property, instead of an inherited property.
@@ -819,7 +819,7 @@ _.has({ 'a': 1, 'b': 2, 'c': 3 }, 'b');
<!-- div -->
### <a id="_identityvalue"></a>`_.identity(value)`
<a href="#_identityvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2814 "View in source") [&#x24C9;][1]
<a href="#_identityvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2851 "View in source") [&#x24C9;][1]
This function returns the first argument passed to it. Note: It is used throughout Lo-Dash as a default callback.
@@ -890,8 +890,8 @@ Gets all but the last value of the `array`. Pass `n` to exclude the last `n` val
#### Example
~~~ js
_.initial([5, 4, 3, 2, 1]);
// => [5, 4, 3, 2]
_.initial([3, 2, 1]);
// => [3, 2]
~~~
* * *
@@ -952,7 +952,7 @@ _.invoke([[5, 1, 7], [3, 2, 1]], 'sort');
<!-- div -->
### <a id="_isargumentsvalue"></a>`_.isArguments(value)`
<a href="#_isargumentsvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2219 "View in source") [&#x24C9;][1]
<a href="#_isargumentsvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2256 "View in source") [&#x24C9;][1]
Checks if a `value` is an `arguments` object.
@@ -979,7 +979,7 @@ _.isArguments([1, 2, 3]);
<!-- div -->
### <a id="_isarrayvalue"></a>`_.isArray(value)`
<a href="#_isarrayvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2245 "View in source") [&#x24C9;][1]
<a href="#_isarrayvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2282 "View in source") [&#x24C9;][1]
Checks if a `value` is an array.
@@ -1006,7 +1006,7 @@ _.isArray([1, 2, 3]);
<!-- div -->
### <a id="_isbooleanvalue"></a>`_.isBoolean(value)`
<a href="#_isbooleanvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2262 "View in source") [&#x24C9;][1]
<a href="#_isbooleanvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2299 "View in source") [&#x24C9;][1]
Checks if a `value` is a boolean *(`true` or `false`)* value.
@@ -1030,7 +1030,7 @@ _.isBoolean(null);
<!-- div -->
### <a id="_isdatevalue"></a>`_.isDate(value)`
<a href="#_isdatevalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2279 "View in source") [&#x24C9;][1]
<a href="#_isdatevalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2316 "View in source") [&#x24C9;][1]
Checks if a `value` is a date.
@@ -1054,7 +1054,7 @@ _.isDate(new Date);
<!-- div -->
### <a id="_iselementvalue"></a>`_.isElement(value)`
<a href="#_iselementvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2296 "View in source") [&#x24C9;][1]
<a href="#_iselementvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2333 "View in source") [&#x24C9;][1]
Checks if a `value` is a DOM element.
@@ -1078,7 +1078,7 @@ _.isElement(document.body);
<!-- div -->
### <a id="_isemptyvalue"></a>`_.isEmpty(value)`
<a href="#_isemptyvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2317 "View in source") [&#x24C9;][1]
<a href="#_isemptyvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2354 "View in source") [&#x24C9;][1]
Checks if a `value` is empty. Arrays or strings with a length of `0` and objects with no enumerable own properties are considered "empty".
@@ -1105,7 +1105,7 @@ _.isEmpty({});
<!-- div -->
### <a id="_isequala-b--stack"></a>`_.isEqual(a, b [, stack])`
<a href="#_isequala-b--stack">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2351 "View in source") [&#x24C9;][1]
<a href="#_isequala-b--stack">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2388 "View in source") [&#x24C9;][1]
Performs a deep comparison between two values to determine if they are equivalent to each other.
@@ -1137,7 +1137,7 @@ _.isEqual(moe, clone);
<!-- div -->
### <a id="_isfinitevalue"></a>`_.isFinite(value)`
<a href="#_isfinitevalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2503 "View in source") [&#x24C9;][1]
<a href="#_isfinitevalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2540 "View in source") [&#x24C9;][1]
Checks if a `value` is a finite number.
@@ -1167,7 +1167,7 @@ _.isFinite(Infinity);
<!-- div -->
### <a id="_isfunctionvalue"></a>`_.isFunction(value)`
<a href="#_isfunctionvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2520 "View in source") [&#x24C9;][1]
<a href="#_isfunctionvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2557 "View in source") [&#x24C9;][1]
Checks if a `value` is a function.
@@ -1191,7 +1191,7 @@ _.isFunction(''.concat);
<!-- div -->
### <a id="_isnanvalue"></a>`_.isNaN(value)`
<a href="#_isnanvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2571 "View in source") [&#x24C9;][1]
<a href="#_isnanvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2608 "View in source") [&#x24C9;][1]
Checks if a `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.
@@ -1224,7 +1224,7 @@ _.isNaN(undefined);
<!-- div -->
### <a id="_isnullvalue"></a>`_.isNull(value)`
<a href="#_isnullvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2593 "View in source") [&#x24C9;][1]
<a href="#_isnullvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2630 "View in source") [&#x24C9;][1]
Checks if a `value` is `null`.
@@ -1251,7 +1251,7 @@ _.isNull(undefined);
<!-- div -->
### <a id="_isnumbervalue"></a>`_.isNumber(value)`
<a href="#_isnumbervalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2610 "View in source") [&#x24C9;][1]
<a href="#_isnumbervalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2647 "View in source") [&#x24C9;][1]
Checks if a `value` is a number.
@@ -1275,7 +1275,7 @@ _.isNumber(8.4 * 5;
<!-- div -->
### <a id="_isobjectvalue"></a>`_.isObject(value)`
<a href="#_isobjectvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2541 "View in source") [&#x24C9;][1]
<a href="#_isobjectvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2578 "View in source") [&#x24C9;][1]
Checks if a `value` is the language type of Object. *(e.g. arrays, functions, objects, regexps, `new Number(0)*`, and `new String('')`)
@@ -1302,7 +1302,7 @@ _.isObject(1);
<!-- div -->
### <a id="_isregexpvalue"></a>`_.isRegExp(value)`
<a href="#_isregexpvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2627 "View in source") [&#x24C9;][1]
<a href="#_isregexpvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2664 "View in source") [&#x24C9;][1]
Checks if a `value` is a regular expression.
@@ -1326,7 +1326,7 @@ _.isRegExp(/moe/);
<!-- div -->
### <a id="_isstringvalue"></a>`_.isString(value)`
<a href="#_isstringvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2644 "View in source") [&#x24C9;][1]
<a href="#_isstringvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2681 "View in source") [&#x24C9;][1]
Checks if a `value` is a string.
@@ -1350,7 +1350,7 @@ _.isString('moe');
<!-- div -->
### <a id="_isundefinedvalue"></a>`_.isUndefined(value)`
<a href="#_isundefinedvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2661 "View in source") [&#x24C9;][1]
<a href="#_isundefinedvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2698 "View in source") [&#x24C9;][1]
Checks if a `value` is `undefined`.
@@ -1374,7 +1374,7 @@ _.isUndefined(void 0);
<!-- div -->
### <a id="_keysobject"></a>`_.keys(object)`
<a href="#_keysobject">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2678 "View in source") [&#x24C9;][1]
<a href="#_keysobject">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2715 "View in source") [&#x24C9;][1]
Produces an array of the `object`'s enumerable own property names.
@@ -1412,7 +1412,7 @@ Gets the last value of the `array`. Pass `n` to return the lasy `n` values of th
#### Example
~~~ js
_.last([5, 4, 3, 2, 1]);
_.last([3, 2, 1]);
// => 1
~~~
@@ -1452,14 +1452,14 @@ _.lastIndexOf([1, 2, 3, 1, 2, 3], 2, 3);
<!-- div -->
### <a id="_mapcollection-callback--thisarg"></a>`_.map(collection, callback [, thisArg])`
<a href="#_mapcollection-callback--thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L673 "View in source") [&#x24C9;][1]
### <a id="_mapcollection--callbackidentity-thisarg"></a>`_.map(collection [, callback=identity, thisArg])`
<a href="#_mapcollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L673 "View in source") [&#x24C9;][1]
Produces a new array of values by mapping each value in the `collection` through a transformation `callback`. The `callback` is bound to the `thisArg` value, if one is passed. The `callback` is invoked with `3` arguments; for arrays they are *(value, index, array)* and for objects they are *(value, key, object)*.
#### Arguments
1. `collection` *(Array|Object)*: The collection to iterate over.
2. `callback` *(Function)*: The function called per iteration.
2. `[callback=identity]` *(Function)*: The function called per iteration.
3. `[thisArg]` *(Mixed)*: The `this` binding for the callback.
#### Returns
@@ -1514,7 +1514,7 @@ _.max(stooges, function(stooge) { return stooge.age; });
<!-- div -->
### <a id="_memoizefunc--resolver"></a>`_.memoize(func [, resolver])`
<a href="#_memoizefunc--resolver">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1944 "View in source") [&#x24C9;][1]
<a href="#_memoizefunc--resolver">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1981 "View in source") [&#x24C9;][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.
@@ -1566,7 +1566,7 @@ _.min([10, 5, 100, 2, 1000]);
<!-- div -->
### <a id="_mixinobject"></a>`_.mixin(object)`
<a href="#_mixinobject">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2840 "View in source") [&#x24C9;][1]
<a href="#_mixinobject">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2877 "View in source") [&#x24C9;][1]
Adds functions properties of `object` to the `lodash` function and chainable wrapper.
@@ -1596,7 +1596,7 @@ _('larry').capitalize();
<!-- div -->
### <a id="_noconflict"></a>`_.noConflict()`
<a href="#_noconflict">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2871 "View in source") [&#x24C9;][1]
<a href="#_noconflict">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2908 "View in source") [&#x24C9;][1]
Reverts the '_' variable to its previous value and returns a reference to the `lodash` function.
@@ -1616,7 +1616,7 @@ var lodash = _.noConflict();
<!-- div -->
### <a id="_oncefunc"></a>`_.once(func)`
<a href="#_oncefunc">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1970 "View in source") [&#x24C9;][1]
<a href="#_oncefunc">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2007 "View in source") [&#x24C9;][1]
Creates a new function that is restricted to one execution. Repeat calls to the function will return the value of the first call.
@@ -1642,7 +1642,7 @@ initialize();
<!-- div -->
### <a id="_partialfunc--arg1-arg2-"></a>`_.partial(func [, arg1, arg2, ...])`
<a href="#_partialfunc--arg1-arg2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2003 "View in source") [&#x24C9;][1]
<a href="#_partialfunc--arg1-arg2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2040 "View in source") [&#x24C9;][1]
Creates a new function that, when called, invokes `func` with any additional `partial` arguments prepended to those passed to the partially applied function. This method is similar `bind`, except it does **not** alter the `this` binding.
@@ -1669,7 +1669,7 @@ hi('moe');
<!-- div -->
### <a id="_pickobject--prop1-prop2-"></a>`_.pick(object [, prop1, prop2, ...])`
<a href="#_pickobject--prop1-prop2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2700 "View in source") [&#x24C9;][1]
<a href="#_pickobject--prop1-prop2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2737 "View in source") [&#x24C9;][1]
Creates an object composed of the specified properties. Property names may be specified as individual arguments or as arrays of property names.
@@ -1817,14 +1817,14 @@ var flat = _.reduceRight(list, function(a, b) { return a.concat(b); }, []);
<!-- div -->
### <a id="_rejectcollection-callback--thisarg"></a>`_.reject(collection, callback [, thisArg])`
<a href="#_rejectcollection-callback--thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L818 "View in source") [&#x24C9;][1]
### <a id="_rejectcollection--callbackidentity-thisarg"></a>`_.reject(collection [, callback=identity, thisArg])`
<a href="#_rejectcollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L818 "View in source") [&#x24C9;][1]
The opposite of `_.filter`, this method returns the values of a `collection` that `callback` does **not** return truthy for. The `callback` is invoked with `3` arguments; for arrays they are *(value, index, array)* and for objects they are *(value, key, object)*.
#### Arguments
1. `collection` *(Array|Object)*: The collection to iterate over.
2. `callback` *(Function)*: The function called per iteration.
2. `[callback=identity]` *(Function)*: The function called per iteration.
3. `[thisArg]` *(Mixed)*: The `this` binding for the callback.
#### Returns
@@ -1858,8 +1858,8 @@ The opposite of `_.initial`, this method gets all but the first value of the `ar
#### Example
~~~ js
_.rest([5, 4, 3, 2, 1]);
// => [4, 3, 2, 1]
_.rest([3, 2, 1]);
// => [2, 1]
~~~
* * *
@@ -1870,7 +1870,7 @@ _.rest([5, 4, 3, 2, 1]);
<!-- div -->
### <a id="_resultobject-property"></a>`_.result(object, property)`
<a href="#_resultobject-property">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2901 "View in source") [&#x24C9;][1]
<a href="#_resultobject-property">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2938 "View in source") [&#x24C9;][1]
Resolves the value of `property` on `object`. If the property is a function it will be invoked and its result returned, else the property value is returned.
@@ -1929,7 +1929,7 @@ _.shuffle([1, 2, 3, 4, 5, 6]);
<!-- div -->
### <a id="_sizevalue"></a>`_.size(value)`
<a href="#_sizevalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2739 "View in source") [&#x24C9;][1]
<a href="#_sizevalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2776 "View in source") [&#x24C9;][1]
Gets the size of a `value` by returning `value.length` if `value` is a string or array, or the number of own enumerable properties if `value` is an object.
@@ -1958,14 +1958,14 @@ _.size('curly');
<!-- div -->
### <a id="_somecollection-callback--thisarg"></a>`_.some(collection, callback [, thisArg])`
<a href="#_somecollection-callback--thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L842 "View in source") [&#x24C9;][1]
### <a id="_somecollection--callbackidentity-thisarg"></a>`_.some(collection [, callback=identity, thisArg])`
<a href="#_somecollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L842 "View in source") [&#x24C9;][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 invoked with `3` arguments; for arrays they are *(value, index, array)* and for objects they are *(value, key, object)*.
#### Arguments
1. `collection` *(Array|Object)*: The collection to iterate over.
2. `callback` *(Function)*: The function called per iteration.
2. `[callback=identity]` *(Function)*: The function called per iteration.
3. `[thisArg]` *(Mixed)*: The `this` binding for the callback.
#### Returns
@@ -1999,11 +1999,11 @@ Produces a new sorted array, ranked in ascending order by the results of running
#### Example
~~~ js
_.sortBy([1, 2, 3, 4, 5, 6], function(num) { return Math.sin(num); });
// => [5, 4, 6, 3, 1, 2]
_.sortBy([1, 2, 3], function(num) { return Math.sin(num); });
// => [3, 1, 2]
_.sortBy([1, 2, 3, 4, 5, 6], function(num) { return this.sin(num); }, Math);
// => [5, 4, 6, 3, 1, 2]
_.sortBy([1, 2, 3], function(num) { return this.sin(num); }, Math);
// => [3, 1, 2]
_.sortBy(['larry', 'brendan', 'moe'], 'length');
// => ['moe', 'larry', 'brendan']
@@ -2016,23 +2016,38 @@ _.sortBy(['larry', 'brendan', 'moe'], 'length');
<!-- div -->
### <a id="_sortedindexarray-value--callback"></a>`_.sortedIndex(array, value [, callback])`
<a href="#_sortedindexarray-value--callback">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1504 "View in source") [&#x24C9;][1]
### <a id="_sortedindexarray-value--callbackidentity-thisarg"></a>`_.sortedIndex(array, value [, callback=identity, thisArg])`
<a href="#_sortedindexarray-value--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1519 "View in source") [&#x24C9;][1]
Uses a binary search to determine the smallest index at which the `value` should be inserted into the `array` in order to maintain the sort order of the `array`. If `callback` is passed, it will be executed for each value in the `array` to compute their sort ranking. The `callback` is invoked with `1` argument; *(value)*.
Uses a binary search to determine the smallest index at which the `value` should be inserted into the `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 the `array` to compute their sort ranking. The `callback` is invoked with `1` argument; *(value)*.
#### Arguments
1. `array` *(Array)*: The array to iterate over.
2. `value` *(Mixed)*: The value to evaluate.
3. `[callback]` *(Function)*: The function called per iteration.
3. `[callback=identity]` *(Function)*: The function called per iteration.
4. `[thisArg]` *(Mixed)*: The `this` binding for the callback.
#### Returns
*(Number)*: Returns the index at which the value should be inserted into the array.
#### Example
~~~ js
_.sortedIndex([10, 20, 30, 40, 50], 35);
// => 3
_.sortedIndex([20, 30, 40], 35);
// => 2
var dict = {
'wordToNumber': { 'twenty': 20, 'thirty': 30, 'thirty-five': 35, 'fourty': 40 }
};
_.sortedIndex(['twenty', 'thirty', 'fourty'], 'thirty-five', function(word) {
return dict.wordToNumber[word];
});
// => 2
_.sortedIndex(['twenty', 'thirty', 'fourty'], 'thirty-five', function(word) {
return this.wordToNumber[word];
}, dict);
// => 2
~~~
* * *
@@ -2043,7 +2058,7 @@ _.sortedIndex([10, 20, 30, 40, 50], 35);
<!-- div -->
### <a id="_tapvalue-interceptor"></a>`_.tap(value, interceptor)`
<a href="#_tapvalue-interceptor">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2767 "View in source") [&#x24C9;][1]
<a href="#_tapvalue-interceptor">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2804 "View in source") [&#x24C9;][1]
Invokes `interceptor` with the `value` as the first argument, and then returns `value`. The primary purpose of this method is to "tap into" a method chain, in order to performoperations on intermediate results within the chain.
@@ -2073,7 +2088,7 @@ _.chain([1,2,3,200])
<!-- div -->
### <a id="_templatetext-data-options"></a>`_.template(text, data, options)`
<a href="#_templatetext-data-options">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2961 "View in source") [&#x24C9;][1]
<a href="#_templatetext-data-options">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2998 "View in source") [&#x24C9;][1]
A JavaScript micro-templating method, similar to John Resig's implementation. Lo-Dash templating handles arbitrary delimiters, preserves whitespace, and correctly escapes quotes within interpolated code.
@@ -2133,7 +2148,7 @@ _.template('<%= data.hasWith %>', { 'hasWith': 'no' }, { 'variable': 'data' });
<!-- div -->
### <a id="_throttlefunc-wait"></a>`_.throttle(func, wait)`
<a href="#_throttlefunc-wait">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2039 "View in source") [&#x24C9;][1]
<a href="#_throttlefunc-wait">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2076 "View in source") [&#x24C9;][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, `func` will also be called on the trailing edge of the `wait` timeout. Subsequent calls to the throttled function will return the result of the last `func` call.
@@ -2158,7 +2173,7 @@ jQuery(window).on('scroll', throttled);
<!-- div -->
### <a id="_timesn-callback--thisarg"></a>`_.times(n, callback [, thisArg])`
<a href="#_timesn-callback--thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3042 "View in source") [&#x24C9;][1]
<a href="#_timesn-callback--thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3079 "View in source") [&#x24C9;][1]
Executes the `callback` function `n` times. The `callback` is invoked with `1` argument; *(index)*.
@@ -2208,7 +2223,7 @@ Converts the `collection`, into an array. Useful for converting the `arguments`
<!-- div -->
### <a id="_unionarray1-array2-"></a>`_.union([array1, array2, ...])`
<a href="#_unionarray1-array2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1537 "View in source") [&#x24C9;][1]
<a href="#_unionarray1-array2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1553 "View in source") [&#x24C9;][1]
Computes the union of the passed-in arrays.
@@ -2231,23 +2246,33 @@ _.union([1, 2, 3], [101, 2, 1, 10], [2, 1]);
<!-- div -->
### <a id="_uniqarray--issortedfalse-callback"></a>`_.uniq(array [, isSorted=false, callback])`
<a href="#_uniqarray--issortedfalse-callback">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1572 "View in source") [&#x24C9;][1]
### <a id="_uniqarray--issortedfalse-callbackidentity-thisarg"></a>`_.uniq(array [, isSorted=false, callback=identity, thisArg])`
<a href="#_uniqarray--issortedfalse-callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1598 "View in source") [&#x24C9;][1]
Produces 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 value of `array` is passed through a transformation `callback` before uniqueness is computed. The `callback` is invoked with `3` arguments; *(value, index, array)*.
#### Arguments
1. `array` *(Array)*: The array to process.
2. `[isSorted=false]` *(Boolean)*: A flag to indicate that the `array` is already sorted.
3. `[callback]` *(Function)*: A
3. `[callback=identity]` *(Function)*: The function called per iteration.
4. `[thisArg]` *(Mixed)*: The `this` binding for the callback.
#### Returns
*(Array)*: Returns a duplicate-value-free array.
#### Example
~~~ js
_.uniq([1, 2, 1, 3, 1, 4]);
// => [1, 2, 3, 4]
_.uniq([1, 2, 1, 3, 1]);
// => [1, 2, 3]
_.uiq([1, 1, 2, 2, 3], true);
// => [1, 2, 3]
_.uniq([1, 2, 1.5, 3, 2.5], function(num) { return Math.floor(num); });
// => [1, 2, 3]
_.uniq([1, 2, 1.5, 3, 2.5], function(num) { return this.floor(num); }, Math);
// => [1, 2, 3]
~~~
* * *
@@ -2258,7 +2283,7 @@ _.uniq([1, 2, 1, 3, 1, 4]);
<!-- div -->
### <a id="_uniqueidprefix"></a>`_.uniqueId([prefix])`
<a href="#_uniqueidprefix">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3069 "View in source") [&#x24C9;][1]
<a href="#_uniqueidprefix">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3106 "View in source") [&#x24C9;][1]
Generates a unique id. If `prefix` is passed, the id will be appended to it.
@@ -2306,7 +2331,7 @@ _.values({ 'one': 1, 'two': 2, 'three': 3 });
<!-- div -->
### <a id="_withoutarray--value1-value2-"></a>`_.without(array [, value1, value2, ...])`
<a href="#_withoutarray--value1-value2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1607 "View in source") [&#x24C9;][1]
<a href="#_withoutarray--value1-value2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1644 "View in source") [&#x24C9;][1]
Produces a new array with all occurrences of the passed values removed using strict equality for comparisons, i.e. `===`.
@@ -2331,7 +2356,7 @@ _.without([1, 2, 1, 0, 3, 1, 4], 0, 1);
<!-- div -->
### <a id="_wrapfunc-wrapper--arg1-arg2-"></a>`_.wrap(func, wrapper [, arg1, arg2, ...])`
<a href="#_wrapfunc-wrapper--arg1-arg2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2091 "View in source") [&#x24C9;][1]
<a href="#_wrapfunc-wrapper--arg1-arg2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2128 "View in source") [&#x24C9;][1]
Create a new function that passes the `func` function to the `wrapper` function as its first argument. Additional arguments are appended to those passed to the `wrapper` function.
@@ -2361,7 +2386,7 @@ hello();
<!-- div -->
### <a id="_ziparray1-array2-"></a>`_.zip([array1, array2, ...])`
<a href="#_ziparray1-array2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1637 "View in source") [&#x24C9;][1]
<a href="#_ziparray1-array2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1674 "View in source") [&#x24C9;][1]
Merges together the values of each of the arrays with the value at the corresponding position. 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.
@@ -2392,7 +2417,7 @@ _.zip(['moe', 'larry', 'curly'], [30, 40, 50], [true, false, false]);
<!-- div -->
### <a id="_prototypechain"></a>`_.prototype.chain()`
<a href="#_prototypechain">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3117 "View in source") [&#x24C9;][1]
<a href="#_prototypechain">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3154 "View in source") [&#x24C9;][1]
Extracts the value from a wrapped chainable object.
@@ -2413,7 +2438,7 @@ _([1, 2, 3]).value();
<!-- div -->
### <a id="_prototypevalue"></a>`_.prototype.value()`
<a href="#_prototypevalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3134 "View in source") [&#x24C9;][1]
<a href="#_prototypevalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3171 "View in source") [&#x24C9;][1]
Extracts the value from a wrapped chainable object.

52
lodash.min.js vendored
View File

@@ -2,29 +2,29 @@
Lo-Dash 0.2.2 lodash.com/license
Underscore.js 1.3.3 github.com/documentcloud/underscore/blob/master/LICENSE
*/
;(function(u,n){"use strict";function T(a){return"[object Arguments]"==j.call(a)}function b(a){return new p(a)}function p(a){if(a&&a._wrapped)return a;this._wrapped=a}function k(){for(var a,d,c,g=-1,b=arguments.length,e={e:"",f:"",k:"",q:"",c:{d:"",m:"++k<m"},o:{d:""}};++g<b;)for(d in a=arguments[g],a)c=(c=a[d])==o?"":c,/d|m|j/.test(d)?("string"==typeof c&&(c={b:c,n:c}),e.c[d]=c.b,e.o[d]=c.n):e[d]=c;a=e.a,d=e.c,c=e.o;var g=/^[^,]+/.exec(a)[0],b=c.m,h=/\S+$/.exec(b||g)[0];e.g=g,e.i=H,e.h="i.call("+
h+",k)",e.l=h,e.p=ca,e.r=e.r!==q,e.f||(e.f="if(!"+g+")return r");if("n"==g||!d.j)e.c=o;return b||(c.m="k in "+h),Function("b,h,i,j,l,o,v,y,z,g,A",'"use strict";return function('+a+"){"+ua(e)+"}")(I,r,s,da,x,J,K,j,m,q)}function va(a,d){return v[d]}function wa(a){return"\\"+xa[a]}function x(a,d){return function(c,g,b){return a.call(d,c,g,b)}}function ea(){}function ya(a,d){var c=v.length;return v[c]="'+((__t=("+d+"))==null?'':_['escape'](__t))+'",U+c}function za(a,d){var c=v.length;return v[c]="'+((__t=("+
d+"))==null?'':__t)+'",U+c}function Aa(a,d){var c=v.length;return v[c]="';"+d+";__p+='",U+c}function fa(a,d,c,g){if(!a)return c;var b=a.length,e=3>arguments.length;g&&(d=x(d,g));if(b===+b){for(b&&e&&(c=a[--b]);b--;)c=d(c,a[b],b,a);return c}var h=V(a);for((b=h.length)&&e&&(c=a[h[--b]]);b--;)e=h[b],c=d(c,a[e],e,a);return c}function W(a,d,c){return d==n||c?a[0]:l.call(a,0,d)}function ga(a,d){for(var c,g=-1,b=a.length,e=[];++g<b;)c=a[g],X(c)?L.apply(e,d?c:ga(c)):e.push(c);return e}function w(a,d,c){var g=-1
,b=a.length;if(c){if(c!==+c)return g=ha(a,d),a[g]===d?g:-1;g=(0>c?Math.max(0,b+c):c)-1}for(;++g<b;)if(a[g]===d)return g;return-1}function ia(a,d,c){var g=-Infinity,b=-1,e=a.length,h=g;if(!d){for(;++b<e;)a[b]>h&&(h=a[b]);return h}for(c&&(d=x(d,c));++b<e;)c=d(a[b],b,a),c>g&&(g=c,h=a[b]);return h}function ja(a,d,c){return l.call(a,d==n||c?1:d)}function ha(a,d,c){var b,f=0,e=a.length;for(c&&(d=c(d));f<e;)b=f+e>>1,(c?c(a[b]):a[b])<d?f=b+1:e=b;return f}function ka(a,d,c){for(var b,f=-1,e=a.length,h=[],
i=[];++f<e;)if(b=c?c(a[f]):a[f],d?!f||i[i.length-1]!==b:0>w(i,b))i.push(b),h.push(a[f]);return h}function la(a,d){function c(){var h=arguments,i=d;return f||(a=d[b]),e.length&&(h=h.length?M.apply(e,h):e),this instanceof c?(ea.prototype=a.prototype,i=new ea,h=a.apply(i,h),J[typeof h]&&h!==o?h:i):a.apply(i,h)}var b,f=j.call(a)==r;if(f){if(y)return y.call.apply(y,arguments)}else b=d,d=a;var e=l.call(arguments,2);return c}function N(a,d,c){c||(c=[]);if(a===d)return 0!==a||1/a==1/d;if(a==n||d==n)return a===
d;a._chain&&(a=a._wrapped),d._chain&&(d=d._wrapped);if(a.isEqual&&j.call(a.isEqual)==r)return a.isEqual(d);if(d.isEqual&&j.call(d.isEqual)==r)return d.isEqual(a);var b=j.call(a);if(b!=j.call(d))return q;switch(b){case K:return a==""+d;case O:return a!=+a?d!=+d:0==a?1/a==1/d:a==+d;case ma:case na:return+a==+d;case oa:return a.source==d.source&&a.global==d.global&&a.multiline==d.multiline&&a.ignoreCase==d.ignoreCase}if("object"!=typeof a||"object"!=typeof d)return q;for(var f=c.length;f--;)if(c[f]==
a)return m;var f=-1,e=m,h=0;c.push(a);if(b==I){if(h=a.length,e=h==d.length)for(;h--&&(e=N(a[h],d[h],c)););}else{if("constructor"in a!="constructor"in d||a.constructor!=d.constructor)return q;for(var i in a)if(s.call(a,i)&&(h++,!(e=s.call(d,i)&&N(a[i],d[i],c))))break;if(e){for(i in d)if(s.call(d,i)&&!(h--))break;e=!h}if(e&&H)for(;7>++f&&(i=ca[f],!s.call(a,i)||!!(e=s.call(d,i)&&N(a[i],d[i],c))););}return c.pop(),e}function da(a){return a}function pa(a){C(P(a),function(d){var c=b[d]=a[d];p.prototype
[d]=function(){var a=[this._wrapped];return arguments.length&&L.apply(a,arguments),a=1==a.length?c.call(b,a[0]):c.apply(b,a),this._chain&&(a=new p(a),a._chain=m),a}})}var m=!0,o=null,q=!1,Y="object"==typeof exports&&exports&&("object"==typeof global&&global&&global==global.global&&(u=global),exports),xa={"\\":"\\","'":"'","\n":"n","\r":"r"," ":"t","\u2028":"u2028","\u2029":"u2029"},H=!{valueOf:0}.propertyIsEnumerable("valueOf"),Ba=0,J={"boolean":q,"function":m,object:m,number:q,string:q,"undefined"
:q},Ca=u._,z=RegExp("^"+({}.valueOf+"").replace(/[.*+?^=!:${}()|[\]\/\\]/g,"\\$&").replace(/valueOf|for [^\]]+/g,".+?")+"$"),Da=/__token__(\d+)/g,Ea=/['\n\r\t\u2028\u2029\\]/g,ca="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),U="__token__",v=[],I="[object Array]",ma="[object Boolean]",na="[object Date]",r="[object Function]",O="[object Number]",oa="[object RegExp]",K="[object String]",A=Array.prototype,D=Object.prototype,M=A.concat,s=D.hasOwnProperty
,L=A.push,l=A.slice,j=D.toString,y=z.test(y=l.bind)&&/\n|Opera/.test(y+j.call(u.opera))&&y,E=z.test(E=Array.isArray)&&E,Fa=u.isFinite,Q=z.test(Q=Object.keys)&&Q,Ga=u.clearTimeout,R=u.setTimeout;b.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,variable:"obj"};var ua=Function("obj","var __p;with(obj){__p='var k,r';if(k){__p+='='+k};__p+=';'+f+';'+q+';';if(c){__p+='var m='+g+'.length;k=-1;';if(o){__p+='if(m===+m){'};__p+=''+c['d']+';while('+c['m']+'){'+c['j']+'}';if(o){__p+='}'}}if(o){if(c){__p+='else{'}if(!i){__p+='var s=typeof '+l+'==\\'function\\';'};__p+=''+o['d']+';for('+o['m']+'){';if(i){if(r){__p+='if('+h+'){'};__p+=''+o['j']+';';if(r){__p+='}'}}else{__p+='if(!(s&&k==\\'prototype\\')';if(r){__p+='&&'+h};__p+='){'+o['j']+'}'};__p+='}';if(i){__p+='var f='+l+'.constructor;';for(var k=0;k<7;k++){__p+='k=\\''+p[k]+'\\';if(';if(p[k]=='constructor'){__p+='!(f&&f.prototype==='+l+')&&'};__p+=''+h+'){'+o['j']+'}'}}if(c){__p+='}'}};__p+=''+e+';return r'}return __p"
),t={a:"e,c,x",k:"e",q:"if(!c){c=j}else if(x){c=l(c,x)}",j:"c(e[k],k,e)"},Z={k:"z",j:"if(!c(e[k],k,e))return!r"},$={a:"n",k:"n",q:"for(var t,u=1,m=arguments.length;u<m;u++){t=arguments[u];"+(H?"if(t){":""),m:"k in t",r:q,j:"n[k]=t[k]",e:(H?"}":"")+"}"},F={k:"[]",j:"c(e[k],k,e)&&r.push(e[k])"},B={q:"if(x)c=l(c,x)"},G={k:"",f:"if(!e)return[]",d:{b:"r=Array(m)",n:"r=[]"},j:{b:"r[k]=c(e[k],k,e)",n:"r.push(c(e[k],k,e))"}},qa=k({a:"n",f:"if(!o[typeof n]||n===null)throw TypeError()",k:"[]",j:"r.push(k)"
}),z=k({a:"e,w",k:"g",j:"if(e[k]===w)return z"}),aa=k(t,Z),D=k(t,F),ra=k(t,B,{k:"",j:"if(c(e[k],k,e))return e[k]"}),C=k(t,B),ba=k(t,G),S=k(G,{a:"e,q",j:{b:"r[k]=e[k][q]",n:"r.push(e[k][q])"}}),B=k({a:"e,c,a,x",k:"a",q:"var p=arguments.length<3;if(x)c=l(c,x)",d:{b:"if(p)r=e[++k]"},j:{b:"r=c(r,e[k],k,e)",n:"r=p?(p=g,e[k]):c(r,e[k],k,e)"}}),F=k(t,F,{j:"!"+F.j}),t=k(t,Z,{k:"g",j:Z.j.replace("!","")}),sa=k(G,{a:"e",j:{b:"r[k]=e[k]",n:"r.push(e[k])"}}),G=k($,{j:"if(n[k]==A)"+$.j}),ta=k($),P=k({a:"n",k:"[]"
,r:q,j:"if(y.call(n[k])==h)r.push(k)",e:"r.sort()"});T(arguments)||(T=function(a){return!!a&&!!s.call(a,"callee")});var X=E||function(a){return j.call(a)==I},E=k({a:"B",k:"z",q:"var d=y.call(B);if(d==b||d==v)return!B.length",j:{n:"return g"}}),V=Q?function(a){return"function"==typeof a?qa(a):Q(a)}:qa;b.VERSION="0.2.2",b.after=function(a,d){return 1>a?d():function(){if(1>--a)return d.apply(this,arguments)}},b.bind=la,b.bindAll=function(a){var d=arguments,c=1;1==d.length&&(c=0,d=P(a));for(var b=d.length
;c<b;c++)a[d[c]]=la(a[d[c]],a);return a},b.chain=function(a){return a=new p(a),a._chain=m,a},b.clone=function(a){return J[typeof a]&&a!==o?X(a)?a.slice():ta({},a):a},b.compact=function(a){for(var d=-1,c=a.length,b=[];++d<c;)a[d]&&b.push(a[d]);return b},b.compose=function(){var a=arguments;return function(){for(var d=arguments,c=a.length;c--;)d=[a[c].apply(this,d)];return d[0]}},b.contains=z,b.debounce=function(a,d,c){function b(){i=n,c||a.apply(h,f)}var f,e,h,i;return function(){var j=c&&!i;return f=
arguments,h=this,Ga(i),i=R(b,d),j&&(e=a.apply(h,f)),e}},b.defaults=G,b.defer=function(a){var d=l.call(arguments,1);return R(function(){return a.apply(n,d)},1)},b.delay=function(a,d){var c=l.call(arguments,2);return R(function(){return a.apply(n,c)},d)},b.difference=function(a){for(var d=-1,c=a.length,b=[],f=M.apply(b,l.call(arguments,1));++d<c;)0>w(f,a[d])&&b.push(a[d]);return b},b.escape=function(a){return(a+"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;"
)},b.every=aa,b.extend=ta,b.filter=D,b.find=ra,b.first=W,b.flatten=ga,b.forEach=C,b.functions=P,b.groupBy=function(a,d,c){var b,f=-1,e=j.call(d)==r,h=a.length,i={};for(e&&c&&(d=x(d,c));++f<h;)b=a[f],c=e?d(b,f,a):b[d],(s.call(i,c)?i[c]:i[c]=[]).push(b);return i},b.has=function(a,d){return s.call(a,d)},b.identity=da,b.indexOf=w,b.initial=function(a,d,c){return l.call(a,0,-(d==n||c?1:d))},b.intersection=function(a){for(var d,c=-1,b=a.length,f=l.call(arguments,1),e=[];++c<b;)d=a[c],0>w(e,d)&&aa(f,function(
a){return-1<w(a,d)})&&e.push(d);return e},b.invoke=function(a,d){for(var c=l.call(arguments,2),b=-1,f=a.length,e=j.call(d)==r,h=[];++b<f;)h[b]=(e?d:a[b][d]).apply(a[b],c);return h},b.isArguments=T,b.isArray=X,b.isBoolean=function(a){return a===m||a===q||j.call(a)==ma},b.isDate=function(a){return j.call(a)==na},b.isElement=function(a){return!!a&&1==a.nodeType},b.isEmpty=E,b.isEqual=N,b.isFinite=function(a){return Fa(a)&&j.call(a)==O},b.isFunction=function(a){return j.call(a)==r},b.isNaN=function(a
){return j.call(a)==O&&a!=+a},b.isNull=function(a){return a===o},b.isNumber=function(a){return j.call(a)==O},b.isObject=function(a){return J[typeof a]&&a!==o},b.isRegExp=function(a){return j.call(a)==oa},b.isString=function(a){return j.call(a)==K},b.isUndefined=function(a){return a===n},b.keys=V,b.last=function(a,d,c){var b=a.length;return d==n||c?a[b-1]:l.call(a,-d||b)},b.lastIndexOf=function(a,d,c){var b=a.length;for(c&&c===+c&&(b=(0>c?Math.max(0,b+c):Math.min(c,b-1))+1);b--;)if(a[b]===d)return b
;return-1},b.map=ba,b.max=ia,b.memoize=function(a,d){var c={};return function(){var b=d?d.apply(this,arguments):arguments[0];return s.call(c,b)?c[b]:c[b]=a.apply(this,arguments)}},b.min=function(a,d,c){var b=Infinity,f=-1,e=a.length,h=b;if(!d){for(;++f<e;)a[f]<h&&(h=a[f]);return h}for(c&&(d=x(d,c));++f<e;)c=d(a[f],f,a),c<b&&(b=c,h=a[f]);return h},b.mixin=pa,b.noConflict=function(){return u._=Ca,this},b.once=function(a){var d,c=q;return function(){return c?d:(c=m,d=a.apply(this,arguments))}},b.partial=
function(a){var d=l.call(arguments,1),c=d.length;return function(){var b;return b=arguments,b.length&&(d.length=c,L.apply(d,b)),b=1==d.length?a.call(this,d[0]):a.apply(this,d),d.length=c,b}},b.pick=function(a){for(var d,b=0,g=M.apply(A,arguments),f=g.length,e={};++b<f;)d=g[b],d in a&&(e[d]=a[d]);return e},b.pluck=S,b.range=function(a,d,b){b||(b=1),2>arguments.length&&(d=a||0,a=0);for(var g=-1,f=Math.max(Math.ceil((d-a)/b),0),e=Array(f);++g<f;)e[g]=a,a+=b;return e},b.reduce=B,b.reduceRight=fa,b.reject=
F,b.rest=ja,b.result=function(a,d){if(!a)return o;var b=a[d];return j.call(b)==r?a[d]():b},b.shuffle=function(a){for(var b,c=-1,g=a.length,f=Array(g);++c<g;)b=Math.floor(Math.random()*(c+1)),f[c]=f[b],f[b]=a[c];return f},b.size=function(a){var b=j.call(a);return b==I||b==K?a.length:V(a).length},b.some=t,b.sortBy=function(a,b,c){if(j.call(b)!=r)var g=b,b=function(a){return a[g]};else c&&(b=x(b,c));return S(ba(a,function(c,e){return{a:b(c,e,a),b:c}}).sort(function(a,b){var d=a.a,c=b.a;return d===n?1
:c===n?-1:d<c?-1:d>c?1:0}),"b")},b.sortedIndex=ha,b.tap=function(a,b){return b(a),a},b.template=function(a,d,c){c||(c={});var g;g=b.templateSettings;var f=c.escape,e=c.evaluate,h=c.interpolate,c=c.variable;return f==o&&(f=g.escape),e==o&&(e=g.evaluate),h==o&&(h=g.interpolate),f&&(a=a.replace(f,ya)),h&&(a=a.replace(h,za)),e&&(a=a.replace(e,Aa)),a="__p='"+a.replace(Ea,wa).replace(Da,va)+"';\n",v.length=0,c||(c=g.variable,a="with("+c+"||{}){"+a+"}"),a="function("+c+"){var __p,__t,__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}"+
a+"return __p}",g=Function("_","return "+a)(b),d?g(d):(g.source=a,g)},b.throttle=function(a,b){function c(){i=new Date,h=n,a.apply(e,g)}var g,f,e,h,i=0;return function(){var j=new Date,k=b-(j-i);return g=arguments,e=this,0>=k?(i=j,f=a.apply(e,g)):h||(h=R(c,k)),f}},b.times=function(a,b,c){var g=-1;if(c)for(;++g<a;)b.call(c,g);else for(;++g<a;)b(g)},b.toArray=function(a){if(!a)return[];if(j.call(a.toArray)==r)return a.toArray();var b=a.length;return b===+b?l.call(a):sa(a)},b.union=function(){for(var a=-1
,b=[],c=M.apply(b,arguments),g=c.length;++a<g;)0>w(b,c[a])&&b.push(c[a]);return b},b.uniq=ka,b.uniqueId=function(a){var b=Ba++;return a?a+b:b},b.values=sa,b.without=function(a){for(var b=l.call(arguments,1),c=-1,g=a.length,f=[];++c<g;)0>w(b,a[c])&&f.push(a[c]);return f},b.wrap=function(a,b){return function(){var c=[a];return arguments.length&&L.apply(c,arguments),b.apply(this,c)}},b.zip=function(){for(var a=-1,b=ia(S(arguments,"length")),c=Array(b);++a<b;)c[a]=S(arguments,a);return c},b.all=aa,b.
any=t,b.collect=ba,b.detect=ra,b.each=C,b.foldl=B,b.foldr=fa,b.head=W,b.include=z,b.inject=B,b.methods=P,b.select=D,b.tail=ja,b.take=W,b.unique=ka,p.prototype=b.prototype,pa(b),p.prototype.chain=function(){return this._chain=m,this},p.prototype.value=function(){return this._wrapped},C("pop push reverse shift sort splice unshift".split(" "),function(a){var b=A[a];p.prototype[a]=function(){var a=this._wrapped;return arguments.length?b.apply(a,arguments):b.call(a),a.length===0&&delete a[0],this._chain&&
(a=new p(a),a._chain=m),a}}),C(["concat","join","slice"],function(a){var b=A[a];p.prototype[a]=function(){var a=this._wrapped,a=arguments.length?b.apply(a,arguments):b.call(a);return this._chain&&(a=new p(a),a._chain=m),a}}),typeof define=="function"&&typeof define.amd=="object"&&define.amd?(u._=b,define(function(){return b})):Y?"object"==typeof module&&module&&module.s==Y?(module.s=b)._=b:Y._=b:u._=b})(this);
;(function(t,n){"use strict";function T(a){return"[object Arguments]"==j.call(a)}function b(a){return new p(a)}function p(a){if(a&&a._wrapped)return a;this._wrapped=a}function k(){for(var a,c,d,h=-1,b=arguments.length,e={e:"",f:"",k:"",q:"",c:{d:"",m:"++k<m"},o:{d:""}};++h<b;)for(c in a=arguments[h],a)d=(d=a[c])==o?"":d,/d|m|j/.test(c)?("string"==typeof d&&(d={b:d,n:d}),e.c[c]=d.b,e.o[c]=d.n):e[c]=d;a=e.a,c=e.c,d=e.o;var h=/^[^,]+/.exec(a)[0],b=d.m,g=/\S+$/.exec(b||h)[0];e.g=h,e.i=H,e.h="i.call("+
g+",k)",e.l=g,e.p=da,e.r=e.r!==q,e.f||(e.f="if(!"+h+")return r");if("n"==h||!c.j)e.c=o;return b||(d.m="k in "+g),Function("b,h,i,j,l,o,v,y,z,g,A",'"use strict";return function('+a+"){"+ua(e)+"}")(I,u,r,U,w,J,K,j,l,q)}function va(a,c){return v[c]}function wa(a){return"\\"+xa[a]}function w(a,c){return function(d,h,b){return a.call(c,d,h,b)}}function ea(){}function ya(a,c){var d=v.length;return v[d]="'+((__t=("+c+"))==null?'':_.escape(__t))+'",V+d}function za(a,c){var d=v.length;return v[d]="'+((__t=("+
c+"))==null?'':__t)+'",V+d}function Aa(a,c){var d=v.length;return v[d]="';"+c+";__p+='",V+d}function fa(a,c,d,h){if(!a)return d;var b=a.length,e=3>arguments.length;h&&(c=w(c,h));if("number"==typeof b){for(b&&e&&(d=a[--b]);b--;)d=c(d,a[b],b,a);return d}var g=W(a);for((b=g.length)&&e&&(d=a[g[--b]]);b--;)e=g[b],d=c(d,a[e],e,a);return d}function X(a,c,d){return c==n||d?a[0]:m.call(a,0,c)}function ga(a,c){for(var d,h=-1,b=a.length,e=[];++h<b;)d=a[h],Y(d)?L.apply(e,c?d:ga(d)):e.push(d);return e}function x
(a,c,d){var h=-1,b=a.length;if(d){if("number"!=typeof d)return h=ha(a,c),a[h]===c?h:-1;h=(0>d?Math.max(0,b+d):d)-1}for(;++h<b;)if(a[h]===c)return h;return-1}function ia(a,c,d){var h=-Infinity,b=-1,e=a.length,g=h;if(!c){for(;++b<e;)a[b]>g&&(g=a[b]);return g}for(d&&(c=w(c,d));++b<e;)d=c(a[b],b,a),d>h&&(h=d,g=a[b]);return g}function ja(a,c,d){return m.call(a,c==n||d?1:c)}function ha(a,c,d,b){var f,e=0,g=a.length;if(d)for(c=d.call(b,c);e<g;)f=e+g>>>1,d.call(b,a[f])<c?e=f+1:g=f;else for(;e<g;)f=e+g>>>1
,a[f]<c?e=f+1:g=f;return e}function ka(a,c,d,b){var f=-1,e=a.length,g=[],i=[];"function"==typeof c&&(b=d,d=c,c=q);for(d?b&&(d=w(d,b)):d=U;++f<e;)if(b=d(a[f],f,a),c?!f||i[i.length-1]!==b:0>x(i,b))i.push(b),g.push(a[f]);return g}function la(a,c){function d(){var g=arguments,i=c;return f||(a=c[b]),e.length&&(g=g.length?M.apply(e,g):e),this instanceof d?(ea.prototype=a.prototype,i=new ea,g=a.apply(i,g),J[typeof g]&&g!==o?g:i):a.apply(i,g)}var b,f=j.call(a)==u;if(f){if(y)return y.call.apply(y,arguments
)}else b=c,c=a;var e=m.call(arguments,2);return d}function N(a,c,d){d||(d=[]);if(a===c)return 0!==a||1/a==1/c;if(a==n||c==n)return a===c;a._chain&&(a=a._wrapped),c._chain&&(c=c._wrapped);if(a.isEqual&&j.call(a.isEqual)==u)return a.isEqual(c);if(c.isEqual&&j.call(c.isEqual)==u)return c.isEqual(a);var b=j.call(a);if(b!=j.call(c))return q;switch(b){case K:return a==""+c;case O:return a!=+a?c!=+c:0==a?1/a==1/c:a==+c;case ma:case na:return+a==+c;case oa:return a.source==c.source&&a.global==c.global&&a
.multiline==c.multiline&&a.ignoreCase==c.ignoreCase}if("object"!=typeof a||"object"!=typeof c)return q;for(var f=d.length;f--;)if(d[f]==a)return l;var f=-1,e=l,g=0;d.push(a);if(b==I){if(g=a.length,e=g==c.length)for(;g--&&(e=N(a[g],c[g],d)););}else{if("constructor"in a!="constructor"in c||a.constructor!=c.constructor)return q;for(var i in a)if(r.call(a,i)&&(g++,!(e=r.call(c,i)&&N(a[i],c[i],d))))break;if(e){for(i in c)if(r.call(c,i)&&!(g--))break;e=!g}if(e&&H)for(;7>++f&&(i=da[f],!r.call(a,i)||!!(e=
r.call(c,i)&&N(a[i],c[i],d))););}return d.pop(),e}function U(a){return a}function pa(a){C(P(a),function(c){var d=b[c]=a[c];p.prototype[c]=function(){var a=[this._wrapped];return arguments.length&&L.apply(a,arguments),a=1==a.length?d.call(b,a[0]):d.apply(b,a),this._chain&&(a=new p(a),a._chain=l),a}})}var l=!0,o=null,q=!1,Z="object"==typeof exports&&exports&&("object"==typeof global&&global&&global==global.global&&(t=global),exports),xa={"\\":"\\","'":"'","\n":"n","\r":"r"," ":"t","\u2028":"u2028","\u2029"
:"u2029"},H=!{valueOf:0}.propertyIsEnumerable("valueOf"),Ba=0,J={"boolean":q,"function":l,object:l,number:q,string:q,"undefined":q},Ca=t._,z=RegExp("^"+({}.valueOf+"").replace(/[.*+?^=!:${}()|[\]\/\\]/g,"\\$&").replace(/valueOf|for [^\]]+/g,".+?")+"$"),Da=/__token__(\d+)/g,Ea=/['\n\r\t\u2028\u2029\\]/g,da="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),V="__token__",v=[],I="[object Array]",ma="[object Boolean]",na="[object Date]",u="[object Function]"
,O="[object Number]",oa="[object RegExp]",K="[object String]",A=Array.prototype,D=Object.prototype,M=A.concat,r=D.hasOwnProperty,L=A.push,m=A.slice,j=D.toString,y=z.test(y=m.bind)&&/\n|Opera/.test(y+j.call(t.opera))&&y,E=z.test(E=Array.isArray)&&E,Fa=t.isFinite,Q=z.test(Q=Object.keys)&&Q,Ga=t.clearTimeout,R=t.setTimeout;b.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,variable:"obj"};var ua=Function("obj","var __p;with(obj){__p='var k,r';if(k){__p+='='+k};__p+=';'+f+';'+q+';';if(c){__p+='var m='+g+'.length;k=-1;';if(o){__p+='if(typeof m==\\'number\\'){'};__p+=''+c['d']+';while('+c['m']+'){'+c['j']+'}';if(o){__p+='}'}}if(o){if(c){__p+='else{'}if(!i){__p+='var s=typeof '+l+'==\\'function\\';'};__p+=''+o['d']+';for('+o['m']+'){';if(i){if(r){__p+='if('+h+'){'};__p+=''+o['j']+';';if(r){__p+='}'}}else{__p+='if(!(s&&k==\\'prototype\\')';if(r){__p+='&&'+h};__p+='){'+o['j']+'}'};__p+='}';if(i){__p+='var f='+l+'.constructor;';for(var k=0;k<7;k++){__p+='k=\\''+p[k]+'\\';if(';if(p[k]=='constructor'){__p+='!(f&&f.prototype==='+l+')&&'};__p+=''+h+'){'+o['j']+'}'}}if(c){__p+='}'}};__p+=''+e+';return r'}return __p"
),s={a:"e,c,x",k:"e",q:"if(!c){c=j}else if(x){c=l(c,x)}",j:"c(e[k],k,e)"},$={k:"z",j:"if(!c(e[k],k,e))return!r"},aa={a:"n",k:"n",q:"for(var t,u=1,m=arguments.length;u<m;u++){t=arguments[u];"+(H?"if(t){":""),m:"k in t",r:q,j:"n[k]=t[k]",e:(H?"}":"")+"}"},F={k:"[]",j:"c(e[k],k,e)&&r.push(e[k])"},B={q:"if(x)c=l(c,x)"},G={k:"",f:"if(!e)return[]",d:{b:"r=Array(m)",n:"r=[]"},j:{b:"r[k]=c(e[k],k,e)",n:"r.push(c(e[k],k,e))"}},qa=k({a:"n",f:"if(!o[typeof n]||n===null)throw TypeError()",k:"[]",j:"r.push(k)"
}),z=k({a:"e,w",k:"g",j:"if(e[k]===w)return z"}),ba=k(s,$),D=k(s,F),ra=k(s,B,{k:"",j:"if(c(e[k],k,e))return e[k]"}),C=k(s,B),ca=k(s,G),S=k(G,{a:"e,q",j:{b:"r[k]=e[k][q]",n:"r.push(e[k][q])"}}),B=k({a:"e,c,a,x",k:"a",q:"var p=arguments.length<3;if(x)c=l(c,x)",d:{b:"if(p)r=e[++k]"},j:{b:"r=c(r,e[k],k,e)",n:"r=p?(p=g,e[k]):c(r,e[k],k,e)"}}),F=k(s,F,{j:"!"+F.j}),s=k(s,$,{k:"g",j:$.j.replace("!","")}),sa=k(G,{a:"e",j:{b:"r[k]=e[k]",n:"r.push(e[k])"}}),G=k(aa,{j:"if(n[k]==A)"+aa.j}),ta=k(aa),P=k({a:"n"
,k:"[]",r:q,j:"if(y.call(n[k])==h)r.push(k)",e:"r.sort()"});T(arguments)||(T=function(a){return!!a&&!!r.call(a,"callee")});var Y=E||function(a){return j.call(a)==I},E=k({a:"B",k:"z",q:"var d=y.call(B);if(d==b||d==v)return!B.length",j:{n:"return g"}}),W=Q?function(a){return"function"==typeof a?qa(a):Q(a)}:qa;b.VERSION="0.2.2",b.after=function(a,c){return 1>a?c():function(){if(1>--a)return c.apply(this,arguments)}},b.bind=la,b.bindAll=function(a){var c=arguments,d=1;1==c.length&&(d=0,c=P(a));for(var b=
c.length;d<b;d++)a[c[d]]=la(a[c[d]],a);return a},b.chain=function(a){return a=new p(a),a._chain=l,a},b.clone=function(a){return J[typeof a]&&a!==o?Y(a)?a.slice():ta({},a):a},b.compact=function(a){for(var c=-1,d=a.length,b=[];++c<d;)a[c]&&b.push(a[c]);return b},b.compose=function(){var a=arguments;return function(){for(var c=arguments,d=a.length;d--;)c=[a[d].apply(this,c)];return c[0]}},b.contains=z,b.debounce=function(a,c,d){function b(){i=n,d||a.apply(g,f)}var f,e,g,i;return function(){var j=d&&!
i;return f=arguments,g=this,Ga(i),i=R(b,c),j&&(e=a.apply(g,f)),e}},b.defaults=G,b.defer=function(a){var c=m.call(arguments,1);return R(function(){return a.apply(n,c)},1)},b.delay=function(a,c){var d=m.call(arguments,2);return R(function(){return a.apply(n,d)},c)},b.difference=function(a){for(var c=-1,d=a.length,b=[],f=M.apply(b,m.call(arguments,1));++c<d;)0>x(f,a[c])&&b.push(a[c]);return b},b.escape=function(a){return(a+"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace
(/'/g,"&#x27;")},b.every=ba,b.extend=ta,b.filter=D,b.find=ra,b.first=X,b.flatten=ga,b.forEach=C,b.functions=P,b.groupBy=function(a,c,d){var b,f=-1,e=j.call(c)==u,g=a.length,i={};for(e&&d&&(c=w(c,d));++f<g;)b=a[f],d=e?c(b,f,a):b[c],(r.call(i,d)?i[d]:i[d]=[]).push(b);return i},b.has=function(a,c){return r.call(a,c)},b.identity=U,b.indexOf=x,b.initial=function(a,c,d){return m.call(a,0,-(c==n||d?1:c))},b.intersection=function(a){for(var c,d=-1,b=a.length,f=m.call(arguments,1),e=[];++d<b;)c=a[d],0>x(e
,c)&&ba(f,function(a){return-1<x(a,c)})&&e.push(c);return e},b.invoke=function(a,c){for(var d=m.call(arguments,2),b=-1,f=a.length,e=j.call(c)==u,g=[];++b<f;)g[b]=(e?c:a[b][c]).apply(a[b],d);return g},b.isArguments=T,b.isArray=Y,b.isBoolean=function(a){return a===l||a===q||j.call(a)==ma},b.isDate=function(a){return j.call(a)==na},b.isElement=function(a){return!!a&&1==a.nodeType},b.isEmpty=E,b.isEqual=N,b.isFinite=function(a){return Fa(a)&&j.call(a)==O},b.isFunction=function(a){return j.call(a)==u}
,b.isNaN=function(a){return j.call(a)==O&&a!=+a},b.isNull=function(a){return a===o},b.isNumber=function(a){return j.call(a)==O},b.isObject=function(a){return J[typeof a]&&a!==o},b.isRegExp=function(a){return j.call(a)==oa},b.isString=function(a){return j.call(a)==K},b.isUndefined=function(a){return a===n},b.keys=W,b.last=function(a,c,d){var b=a.length;return c==n||d?a[b-1]:m.call(a,-c||b)},b.lastIndexOf=function(a,c,d){var b=a.length;for(d&&"number"==typeof d&&(b=(0>d?Math.max(0,b+d):Math.min(d,b-1
))+1);b--;)if(a[b]===c)return b;return-1},b.map=ca,b.max=ia,b.memoize=function(a,c){var d={};return function(){var b=c?c.apply(this,arguments):arguments[0];return r.call(d,b)?d[b]:d[b]=a.apply(this,arguments)}},b.min=function(a,c,d){var b=Infinity,f=-1,e=a.length,g=b;if(!c){for(;++f<e;)a[f]<g&&(g=a[f]);return g}for(d&&(c=w(c,d));++f<e;)d=c(a[f],f,a),d<b&&(b=d,g=a[f]);return g},b.mixin=pa,b.noConflict=function(){return t._=Ca,this},b.once=function(a){var c,d=q;return function(){return d?c:(d=l,c=a
.apply(this,arguments))}},b.partial=function(a){var c=m.call(arguments,1),d=c.length;return function(){var b;return b=arguments,b.length&&(c.length=d,L.apply(c,b)),b=1==c.length?a.call(this,c[0]):a.apply(this,c),c.length=d,b}},b.pick=function(a){for(var c,b=0,h=M.apply(A,arguments),f=h.length,e={};++b<f;)c=h[b],c in a&&(e[c]=a[c]);return e},b.pluck=S,b.range=function(a,c,b){b||(b=1),2>arguments.length&&(c=a||0,a=0);for(var h=-1,f=Math.max(Math.ceil((c-a)/b),0),e=Array(f);++h<f;)e[h]=a,a+=b;return e
},b.reduce=B,b.reduceRight=fa,b.reject=F,b.rest=ja,b.result=function(a,c){if(!a)return o;var b=a[c];return j.call(b)==u?a[c]():b},b.shuffle=function(a){for(var c,b=-1,h=a.length,f=Array(h);++b<h;)c=Math.floor(Math.random()*(b+1)),f[b]=f[c],f[c]=a[b];return f},b.size=function(a){var b=j.call(a);return b==I||b==K?a.length:W(a).length},b.some=s,b.sortBy=function(a,b,d){if("string"==typeof b)var h=b,b=function(a){return a[h]};else d&&(b=w(b,d));return S(ca(a,function(d,e){return{a:b(d,e,a),b:d}}).sort
(function(a,b){var c=a.a,d=b.a;return c===n?1:d===n?-1:c<d?-1:c>d?1:0}),"b")},b.sortedIndex=ha,b.tap=function(a,b){return b(a),a},b.template=function(a,c,d){d||(d={});var h;h=b.templateSettings;var f=d.escape,e=d.evaluate,g=d.interpolate,d=d.variable;return f==o&&(f=h.escape),e==o&&(e=h.evaluate),g==o&&(g=h.interpolate),f&&(a=a.replace(f,ya)),g&&(a=a.replace(g,za)),e&&(a=a.replace(e,Aa)),a="__p='"+a.replace(Ea,wa).replace(Da,va)+"';\n",v.length=0,d||(d=h.variable,a="with("+d+"||{}){"+a+"}"),a="function("+
d+"){var __p,__t,__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}"+a+"return __p}",h=Function("_","return "+a)(b),c?h(c):(h.source=a,h)},b.throttle=function(a,b){function d(){i=new Date,g=n,a.apply(e,h)}var h,f,e,g,i=0;return function(){var j=new Date,k=b-(j-i);return h=arguments,e=this,0>=k?(i=j,f=a.apply(e,h)):g||(g=R(d,k)),f}},b.times=function(a,b,d){var h=-1;if(d)for(;++h<a;)b.call(d,h);else for(;++h<a;)b(h)},b.toArray=function(a){return a?j.call(a.toArray)==u?a.toArray(
):"number"==typeof a.length?m.call(a):sa(a):[]},b.union=function(){for(var a=-1,b=[],d=M.apply(b,arguments),h=d.length;++a<h;)0>x(b,d[a])&&b.push(d[a]);return b},b.uniq=ka,b.uniqueId=function(a){var b=Ba++;return a?a+b:b},b.values=sa,b.without=function(a){for(var b=m.call(arguments,1),d=-1,h=a.length,f=[];++d<h;)0>x(b,a[d])&&f.push(a[d]);return f},b.wrap=function(a,b){return function(){var d=[a];return arguments.length&&L.apply(d,arguments),b.apply(this,d)}},b.zip=function(){for(var a=-1,b=ia(S(arguments
,"length")),d=Array(b);++a<b;)d[a]=S(arguments,a);return d},b.all=ba,b.any=s,b.collect=ca,b.detect=ra,b.each=C,b.foldl=B,b.foldr=fa,b.head=X,b.include=z,b.inject=B,b.methods=P,b.select=D,b.tail=ja,b.take=X,b.unique=ka,p.prototype=b.prototype,pa(b),p.prototype.chain=function(){return this._chain=l,this},p.prototype.value=function(){return this._wrapped},C("pop push reverse shift sort splice unshift".split(" "),function(a){var b=A[a];p.prototype[a]=function(){var a=this._wrapped;return arguments.length?
b.apply(a,arguments):b.call(a),a.length===0&&delete a[0],this._chain&&(a=new p(a),a._chain=l),a}}),C(["concat","join","slice"],function(a){var b=A[a];p.prototype[a]=function(){var a=this._wrapped,a=arguments.length?b.apply(a,arguments):b.call(a);return this._chain&&(a=new p(a),a._chain=l),a}}),typeof define=="function"&&typeof define.amd=="object"&&define.amd?(t._=b,define(function(){return b})):Z?"object"==typeof module&&module&&module.s==Z?(module.s=b)._=b:Z._=b:t._=b})(this);