lodash: Simplify _.keys fallback. [jddalton]

Former-commit-id: 15d265f4f16ab2418bb5dcddf68a2fd43ebdf5b2
This commit is contained in:
John-David Dalton
2012-04-26 15:46:47 -04:00
parent 947fc9ce97
commit adcc2dd8d2
3 changed files with 109 additions and 112 deletions

View File

@@ -139,7 +139,7 @@ The `lodash` function.
<!-- div -->
### <a id="_.VERSION" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2618" title="View in source">`_.VERSION`</a>
### <a id="_.VERSION" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2615" title="View in source">`_.VERSION`</a>
*(String)*: The semantic version number.
[&#9650;][1]
@@ -148,7 +148,7 @@ The `lodash` function.
<!-- div -->
### <a id="_.after" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L1373" title="View in source">`_.after(times, func)`</a>
### <a id="_.after" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L1371" title="View in source">`_.after(times, func)`</a>
Creates a new function that is restricted to executing only after it is called a given number of `times`.
[&#9650;][1]
@@ -173,7 +173,7 @@ _.forEach(notes, function(note) {
<!-- div -->
### <a id="_.bind" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L1403" title="View in source">`_.bind(func [, arg1, arg2, ...])`</a>
### <a id="_.bind" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L1401" title="View in source">`_.bind(func [, arg1, arg2, ...])`</a>
Creates a new function that, when called, invokes `func` with the `this` binding of `thisArg` and prepends additional arguments to those passed to the bound function.
[&#9650;][1]
@@ -197,7 +197,7 @@ func();
<!-- div -->
### <a id="_.bindAll" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L1437" title="View in source">`_.bindAll(object [, methodName1, methodName2, ...])`</a>
### <a id="_.bindAll" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L1435" title="View in source">`_.bindAll(object [, methodName1, methodName2, ...])`</a>
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.
[&#9650;][1]
@@ -226,7 +226,7 @@ jQuery('#lodash_button').on('click', buttonView.onClick);
<!-- div -->
### <a id="_.chain" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2587" title="View in source">`_.chain()`</a>
### <a id="_.chain" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2584" title="View in source">`_.chain()`</a>
Extracts the value from a wrapped chainable object.
[&#9650;][1]
@@ -244,7 +244,7 @@ _([1, 2, 3]).value();
<!-- div -->
### <a id="_.chain" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2571" title="View in source">`_.chain(value)`</a>
### <a id="_.chain" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2568" title="View in source">`_.chain(value)`</a>
Wraps the value in a `lodash` chainable object.
[&#9650;][1]
@@ -275,7 +275,7 @@ var youngest = _.chain(stooges)
<!-- div -->
### <a id="_.clone" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L1708" title="View in source">`_.clone(value)`</a>
### <a id="_.clone" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L1706" title="View in source">`_.clone(value)`</a>
Create a shallow clone of the `value`. Any nested objects or arrays will be assigned by reference and not cloned.
[&#9650;][1]
@@ -296,7 +296,7 @@ _.clone({ 'name': 'moe' });
<!-- div -->
### <a id="_.compact" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L944" title="View in source">`_.compact(array)`</a>
### <a id="_.compact" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L942" title="View in source">`_.compact(array)`</a>
Produces a new array with all falsey values of `array` removed. The values `false`, `null`, `0`, `""`, `undefined` and `NaN` are all falsey.
[&#9650;][1]
@@ -317,7 +317,7 @@ _.compact([0, 1, false, 2, '', 3]);
<!-- div -->
### <a id="_.compose" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L1469" title="View in source">`_.compose([func1, func2, ...])`</a>
### <a id="_.compose" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L1467" title="View in source">`_.compose([func1, func2, ...])`</a>
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()))`.
[&#9650;][1]
@@ -341,7 +341,7 @@ welcome('moe');
<!-- div -->
### <a id="_.contains" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L371" title="View in source">`_.contains(collection, target)`</a>
### <a id="_.contains" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L369" title="View in source">`_.contains(collection, target)`</a>
Checks if a given `target` value is present in a `collection` using strict equality for comparisons, i.e. `===`.
[&#9650;][1]
@@ -363,7 +363,7 @@ _.contains([1, 2, 3], 3);
<!-- div -->
### <a id="_.debounce" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L1501" title="View in source">`_.debounce(func, wait, immediate)`</a>
### <a id="_.debounce" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L1499" title="View in source">`_.debounce(func, wait, immediate)`</a>
Creates a new function that will postpone its execution until after `wait` milliseconds have elapsed since the last time it was invoked. Pass `true` for `immediate` to cause debounce to invoke the function on the leading, instead of the trailing, edge of the `wait` timeout.
[&#9650;][1]
@@ -386,7 +386,7 @@ jQuery(window).on('resize', lazyLayout);
<!-- div -->
### <a id="_.defaults" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L1732" title="View in source">`_.defaults(object [, defaults1, defaults2, ..])`</a>
### <a id="_.defaults" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L1730" title="View in source">`_.defaults(object [, defaults1, defaults2, ..])`</a>
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.
[&#9650;][1]
@@ -409,7 +409,7 @@ _.defaults(iceCream, { 'flavor': 'vanilla', 'sprinkles': 'lots' });
<!-- div -->
### <a id="_.defer" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L1557" title="View in source">`_.defer(func [, arg1, arg2, ...])`</a>
### <a id="_.defer" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L1555" title="View in source">`_.defer(func [, arg1, arg2, ...])`</a>
Defers invoking the `func` function until the current call stack has cleared. Additional arguments are passed to `func` when it is invoked.
[&#9650;][1]
@@ -431,7 +431,7 @@ _.defer(function() { alert('deferred'); });
<!-- div -->
### <a id="_.delay" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L1537" title="View in source">`_.delay(func, wait [, arg1, arg2, ...])`</a>
### <a id="_.delay" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L1535" title="View in source">`_.delay(func, wait [, arg1, arg2, ...])`</a>
Invokes the `func` function after `wait` milliseconds. Additional arguments are passed `func` when it is invoked.
[&#9650;][1]
@@ -455,7 +455,7 @@ _.delay(log, 1000, 'logged later');
<!-- div -->
### <a id="_.difference" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L966" title="View in source">`_.difference(array [, array1, array2, ...])`</a>
### <a id="_.difference" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L964" title="View in source">`_.difference(array [, array1, array2, ...])`</a>
Produces a new array of `array` values not present in the other arrays using strict equality for comparisons, i.e. `===`.
[&#9650;][1]
@@ -477,7 +477,7 @@ _.difference([1, 2, 3, 4, 5], [5, 2, 10]);
<!-- div -->
### <a id="_.escape" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2292" title="View in source">`_.escape(string)`</a>
### <a id="_.escape" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2289" title="View in source">`_.escape(string)`</a>
Escapes a string for insertion into HTML, replacing `&`, `<`, `>`, `"`, `'`, and `/` characters.
[&#9650;][1]
@@ -498,7 +498,7 @@ _.escape('Curly, Larry & Moe');
<!-- div -->
### <a id="_.every" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L395" title="View in source">`_.every(collection, callback [, thisArg])`</a>
### <a id="_.every" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L393" title="View in source">`_.every(collection, callback [, thisArg])`</a>
Checks if the `callback` returns truthy for **all** values 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)*.
[&#9650;][1]
@@ -521,7 +521,7 @@ _.every([true, 1, null, 'yes'], Boolean);
<!-- div -->
### <a id="_.extend" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L1751" title="View in source">`_.extend(object [, source1, source2, ..])`</a>
### <a id="_.extend" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L1749" title="View in source">`_.extend(object [, source1, source2, ..])`</a>
Copies enumerable properties from the source objects to the `destination` object. Subsequent sources will overwrite propery assignments of previous sources.
[&#9650;][1]
@@ -543,7 +543,7 @@ _.extend({ 'name': 'moe' }, { 'age': 40 });
<!-- div -->
### <a id="_.filter" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L416" title="View in source">`_.filter(collection, callback [, thisArg])`</a>
### <a id="_.filter" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L414" title="View in source">`_.filter(collection, callback [, thisArg])`</a>
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)*.
[&#9650;][1]
@@ -566,7 +566,7 @@ var evens = _.filter([1, 2, 3, 4, 5, 6], function(num) { return num % 2 == 0; })
<!-- div -->
### <a id="_.find" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L438" title="View in source">`_.find(collection, callback [, thisArg])`</a>
### <a id="_.find" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L436" title="View in source">`_.find(collection, callback [, thisArg])`</a>
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 invoked with `3` arguments; for arrays they are *(value, index, array)* and for objects they are *(value, key, object)*.
[&#9650;][1]
@@ -589,7 +589,7 @@ var even = _.find([1, 2, 3, 4, 5, 6], function(num) { return num % 2 == 0; });
<!-- div -->
### <a id="_.first" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L987" title="View in source">`_.first(array [, n, guard])`</a>
### <a id="_.first" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L985" title="View in source">`_.first(array [, n, guard])`</a>
Gets the first value of the `array`. Pass `n` to return the first `n` values of the `array`.
[&#9650;][1]
@@ -612,7 +612,7 @@ _.first([5, 4, 3, 2, 1]);
<!-- div -->
### <a id="_.flatten" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L1009" title="View in source">`_.flatten(array, shallow)`</a>
### <a id="_.flatten" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L1007" title="View in source">`_.flatten(array, shallow)`</a>
Flattens a nested array *(the nesting can be to any depth)*. If `shallow` is truthy, `array` will only be flattened a single level.
[&#9650;][1]
@@ -637,7 +637,7 @@ _.flatten([1, [2], [3, [[4]]]], true);
<!-- div -->
### <a id="_.forEach" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L464" title="View in source">`_.forEach(collection, callback [, thisArg])`</a>
### <a id="_.forEach" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L462" title="View in source">`_.forEach(collection, callback [, thisArg])`</a>
Iterates over a `collection`, executing the `callback` for each value in the `collection`. 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)*.
[&#9650;][1]
@@ -663,7 +663,7 @@ _.forEach({ 'one': 1, 'two': 2, 'three': 3}, function(num) { alert(num); });
<!-- div -->
### <a id="_.functions" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L1768" title="View in source">`_.functions(object)`</a>
### <a id="_.functions" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L1766" title="View in source">`_.functions(object)`</a>
Produces a sorted array of the properties, own and inherited, of `object` that have function values.
[&#9650;][1]
@@ -684,7 +684,7 @@ _.functions(_);
<!-- div -->
### <a id="_.groupBy" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L488" title="View in source">`_.groupBy(collection, callback [, thisArg])`</a>
### <a id="_.groupBy" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L486" title="View in source">`_.groupBy(collection, callback [, thisArg])`</a>
Splits a `collection` into sets, grouped by the result of running each value through `callback`. The `callback` is invoked with `3` arguments; for arrays they are *(value, index, array)* and for objects they are *(value, key, object)*. The `callback` argument may also be the name of a property to group by.
[&#9650;][1]
@@ -710,7 +710,7 @@ _.groupBy(['one', 'two', 'three'], 'length');
<!-- div -->
### <a id="_.has" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L1791" title="View in source">`_.has(object, property)`</a>
### <a id="_.has" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L1789" title="View in source">`_.has(object, property)`</a>
Checks if the specified object `property` exists and is a direct property, instead of an inherited property.
[&#9650;][1]
@@ -732,7 +732,7 @@ _.has({ 'a': 1, 'b': 2, 'c': 3 }, 'b');
<!-- div -->
### <a id="_.identity" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2317" title="View in source">`_.identity(value)`</a>
### <a id="_.identity" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2314" title="View in source">`_.identity(value)`</a>
This function simply returns the first argument passed to it. Note: It is used throughout Lo-Dash as a default callback.
[&#9650;][1]
@@ -754,7 +754,7 @@ moe === _.identity(moe);
<!-- div -->
### <a id="_.indexOf" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L1044" title="View in source">`_.indexOf(array, value [, isSorted=false])`</a>
### <a id="_.indexOf" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L1042" title="View in source">`_.indexOf(array, value [, isSorted=false])`</a>
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.
[&#9650;][1]
@@ -777,7 +777,7 @@ _.indexOf([1, 2, 3], 2);
<!-- div -->
### <a id="_.initial" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L1078" title="View in source">`_.initial(array [, n, guard])`</a>
### <a id="_.initial" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L1076" title="View in source">`_.initial(array [, n, guard])`</a>
Gets all but the last value of the `array`. Pass `n` to exclude the last `n` values from the result.
[&#9650;][1]
@@ -800,7 +800,7 @@ _.initial([5, 4, 3, 2, 1]);
<!-- div -->
### <a id="_.intersection" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L1097" title="View in source">`_.intersection([array1, array2, ...])`</a>
### <a id="_.intersection" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L1095" title="View in source">`_.intersection([array1, array2, ...])`</a>
Computes the intersection of all the passed-in arrays.
[&#9650;][1]
@@ -821,7 +821,7 @@ _.intersection([1, 2, 3], [101, 2, 1, 10], [2, 1]);
<!-- div -->
### <a id="_.invoke" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L1122" title="View in source">`_.invoke(array, methodName [, arg1, arg2, ...])`</a>
### <a id="_.invoke" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L1120" title="View in source">`_.invoke(array, methodName [, arg1, arg2, ...])`</a>
Calls the method named by `methodName` for each value of the `collection`. Additional arguments will be passed to each invoked method.
[&#9650;][1]
@@ -844,7 +844,7 @@ _.invoke([[5, 1, 7], [3, 2, 1]], 'sort');
<!-- div -->
### <a id="_.isArguments" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L1811" title="View in source">`_.isArguments(value)`</a>
### <a id="_.isArguments" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L1809" title="View in source">`_.isArguments(value)`</a>
Checks if a `value` is an `arguments` object.
[&#9650;][1]
@@ -892,7 +892,7 @@ _.isArray([1, 2, 3]);
<!-- div -->
### <a id="_.isBoolean" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L1834" title="View in source">`_.isBoolean(value)`</a>
### <a id="_.isBoolean" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L1832" title="View in source">`_.isBoolean(value)`</a>
Checks if a `value` is a boolean *(`true` or `false`)* value.
[&#9650;][1]
@@ -913,7 +913,7 @@ _.isBoolean(null);
<!-- div -->
### <a id="_.isDate" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L1851" title="View in source">`_.isDate(value)`</a>
### <a id="_.isDate" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L1849" title="View in source">`_.isDate(value)`</a>
Checks if a `value` is a date.
[&#9650;][1]
@@ -934,7 +934,7 @@ _.isDate(new Date);
<!-- div -->
### <a id="_.isElement" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L1868" title="View in source">`_.isElement(value)`</a>
### <a id="_.isElement" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L1866" title="View in source">`_.isElement(value)`</a>
Checks if a `value` is a DOM element.
[&#9650;][1]
@@ -979,7 +979,7 @@ _.isEmpty({});
<!-- div -->
### <a id="_.isEqual" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L1895" title="View in source">`_.isEqual(a, b [, stack])`</a>
### <a id="_.isEqual" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L1893" title="View in source">`_.isEqual(a, b [, stack])`</a>
Performs a deep comparison between two values to determine if they are equivalent to each other.
[&#9650;][1]
@@ -1008,7 +1008,7 @@ _.isEqual(moe, clone);
<!-- div -->
### <a id="_.isFinite" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2038" title="View in source">`_.isFinite(value)`</a>
### <a id="_.isFinite" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2036" title="View in source">`_.isFinite(value)`</a>
Checks if a `value` is a finite number.
[&#9650;][1]
@@ -1035,7 +1035,7 @@ _.isFinite(Infinity);
<!-- div -->
### <a id="_.isFunction" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2055" title="View in source">`_.isFunction(value)`</a>
### <a id="_.isFunction" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2053" title="View in source">`_.isFunction(value)`</a>
Checks if a `value` is a function.
[&#9650;][1]
@@ -1056,7 +1056,7 @@ _.isFunction(''.concat);
<!-- div -->
### <a id="_.isNaN" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2103" title="View in source">`_.isNaN(value)`</a>
### <a id="_.isNaN" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2101" title="View in source">`_.isNaN(value)`</a>
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.
[&#9650;][1]
@@ -1086,7 +1086,7 @@ _.isNaN(undefined);
<!-- div -->
### <a id="_.isNull" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2125" title="View in source">`_.isNull(value)`</a>
### <a id="_.isNull" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2123" title="View in source">`_.isNull(value)`</a>
Checks if a `value` is `null`.
[&#9650;][1]
@@ -1110,7 +1110,7 @@ _.isNull(undefined);
<!-- div -->
### <a id="_.isNumber" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2142" title="View in source">`_.isNumber(value)`</a>
### <a id="_.isNumber" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2140" title="View in source">`_.isNumber(value)`</a>
Checks if a `value` is a number.
[&#9650;][1]
@@ -1131,7 +1131,7 @@ _.isNumber(8.4 * 5;
<!-- div -->
### <a id="_.isObject" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2075" title="View in source">`_.isObject(value)`</a>
### <a id="_.isObject" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2073" title="View in source">`_.isObject(value)`</a>
Checks if a `value` is an object.
[&#9650;][1]
@@ -1155,7 +1155,7 @@ _.isObject(1);
<!-- div -->
### <a id="_.isRegExp" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2159" title="View in source">`_.isRegExp(value)`</a>
### <a id="_.isRegExp" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2157" title="View in source">`_.isRegExp(value)`</a>
Checks if a `value` is a regular expression.
[&#9650;][1]
@@ -1176,7 +1176,7 @@ _.isRegExp(/moe/);
<!-- div -->
### <a id="_.isString" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2176" title="View in source">`_.isString(value)`</a>
### <a id="_.isString" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2174" title="View in source">`_.isString(value)`</a>
Checks if a `value` is a string.
[&#9650;][1]
@@ -1197,7 +1197,7 @@ _.isString('moe');
<!-- div -->
### <a id="_.isUndefined" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2193" title="View in source">`_.isUndefined(value)`</a>
### <a id="_.isUndefined" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2191" title="View in source">`_.isUndefined(value)`</a>
Checks if a `value` is `undefined`.
[&#9650;][1]
@@ -1218,7 +1218,7 @@ _.isUndefined(void 0);
<!-- div -->
### <a id="_.keys" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2210" title="View in source">`_.keys(object)`</a>
### <a id="_.keys" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2208" title="View in source">`_.keys(object)`</a>
Produces an array of the `object`'s enumerable own property names.
[&#9650;][1]
@@ -1239,7 +1239,7 @@ _.keys({ 'one': 1, 'two': 2, 'three': 3 });
<!-- div -->
### <a id="_.last" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L1145" title="View in source">`_.last(array [, n, guard])`</a>
### <a id="_.last" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L1143" title="View in source">`_.last(array [, n, guard])`</a>
Gets the last value of the `array`. Pass `n` to return the lasy `n` values of the `array`.
[&#9650;][1]
@@ -1262,7 +1262,7 @@ _.last([5, 4, 3, 2, 1]);
<!-- div -->
### <a id="_.lastIndexOf" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L1165" title="View in source">`_.lastIndexOf(array, value)`</a>
### <a id="_.lastIndexOf" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L1163" title="View in source">`_.lastIndexOf(array, value)`</a>
Gets the index at which the last occurrence of `value` is found using strict equality for comparisons, i.e. `===`.
[&#9650;][1]
@@ -1284,7 +1284,7 @@ _.lastIndexOf([1, 2, 3, 1, 2, 3], 2);
<!-- div -->
### <a id="_.map" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L522" title="View in source">`_.map(collection, callback [, thisArg])`</a>
### <a id="_.map" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L520" title="View in source">`_.map(collection, callback [, thisArg])`</a>
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)*.
[&#9650;][1]
@@ -1310,7 +1310,7 @@ _.map({ 'one': 1, 'two': 2, 'three': 3 }, function(num) { return num * 3; });
<!-- div -->
### <a id="_.max" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L549" title="View in source">`_.max(collection [, callback, thisArg])`</a>
### <a id="_.max" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L547" title="View in source">`_.max(collection [, callback, thisArg])`</a>
Retrieves the maximum value of a `collection`. If `callback` is passed, it will be executed for each value in the `collection` to generate the criterion by which the value is ranked. The `callback` is invoked with `3` arguments; for arrays they are *(value, index, array)* and for objects they are *(value, key, object)*.
[&#9650;][1]
@@ -1339,7 +1339,7 @@ _.max(stooges, function(stooge) { return stooge.age; });
<!-- div -->
### <a id="_.memoize" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L1580" title="View in source">`_.memoize(func [, resolver])`</a>
### <a id="_.memoize" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L1578" title="View in source">`_.memoize(func [, resolver])`</a>
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.
[&#9650;][1]
@@ -1362,7 +1362,7 @@ var fibonacci = _.memoize(function(n) {
<!-- div -->
### <a id="_.min" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L570" title="View in source">`_.min(collection [, callback, thisArg])`</a>
### <a id="_.min" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L568" title="View in source">`_.min(collection [, callback, thisArg])`</a>
Retrieves the minimum value of a `collection`. If `callback` is passed, it will be executed for each value in the `collection` to generate the criterion by which the value is ranked. The `callback` is invoked with `3` arguments; for arrays they are *(value, index, array)* and for objects they are *(value, key, object)*.
[&#9650;][1]
@@ -1385,7 +1385,7 @@ _.min([10, 5, 100, 2, 1000]);
<!-- div -->
### <a id="_.mixin" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2343" title="View in source">`_.mixin(object)`</a>
### <a id="_.mixin" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2340" title="View in source">`_.mixin(object)`</a>
Adds functions properties of `object` to the `lodash` function and chainable wrapper.
[&#9650;][1]
@@ -1412,7 +1412,7 @@ _('larry').capitalize();
<!-- div -->
### <a id="_.noConflict" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2369" title="View in source">`_.noConflict()`</a>
### <a id="_.noConflict" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2366" title="View in source">`_.noConflict()`</a>
Reverts the '_' variable to its previous value and returns a reference to the `lodash` function.
[&#9650;][1]
@@ -1429,7 +1429,7 @@ var lodash = _.noConflict();
<!-- div -->
### <a id="_.once" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L1606" title="View in source">`_.once(func)`</a>
### <a id="_.once" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L1604" title="View in source">`_.once(func)`</a>
Creates a new function that is restricted to one execution. Repeat calls to the function will return the value of the first call.
[&#9650;][1]
@@ -1452,7 +1452,7 @@ initialize();
<!-- div -->
### <a id="_.pick" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2233" title="View in source">`_.pick(object [, prop1, prop2, ..])`</a>
### <a id="_.pick" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2230" title="View in source">`_.pick(object [, prop1, prop2, ..])`</a>
Creates an object composed of the specified properties. Property names may be specified as individual arguments or as arrays of property names.
[&#9650;][1]
@@ -1474,7 +1474,7 @@ _.pick({ 'name': 'moe', 'age': 40, 'userid': 'moe1' }, 'name', 'age');
<!-- div -->
### <a id="_.pluck" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L595" title="View in source">`_.pluck(collection, property)`</a>
### <a id="_.pluck" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L593" title="View in source">`_.pluck(collection, property)`</a>
Retrieves the value of a specified property from all values in a `collection`.
[&#9650;][1]
@@ -1502,7 +1502,7 @@ _.pluck(stooges, 'name');
<!-- div -->
### <a id="_.range" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L1207" title="View in source">`_.range([start=0], end [, step=1])`</a>
### <a id="_.range" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L1205" title="View in source">`_.range([start=0], end [, step=1])`</a>
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.
[&#9650;][1]
@@ -1537,7 +1537,7 @@ _.range(0);
<!-- div -->
### <a id="_.reduce" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L625" title="View in source">`_.reduce(collection, callback [, accumulator, thisArg])`</a>
### <a id="_.reduce" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L623" title="View in source">`_.reduce(collection, callback [, accumulator, thisArg])`</a>
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 the `thisArg` value, if one is passed. The `callback` is invoked with `4` arguments; for arrays they are *(accumulator, value, index, array)* and for objects they are *(accumulator, value, key, object)*.
[&#9650;][1]
@@ -1561,7 +1561,7 @@ var sum = _.reduce([1, 2, 3], function(memo, num) { return memo + num; });
<!-- div -->
### <a id="_.reduceRight" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L665" title="View in source">`_.reduceRight(collection, callback [, accumulator, thisArg])`</a>
### <a id="_.reduceRight" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L663" title="View in source">`_.reduceRight(collection, callback [, accumulator, thisArg])`</a>
The right-associative version of `_.reduce`. The `callback` is bound to the `thisArg` value, if one is passed. The `callback` is invoked with `4` arguments; for arrays they are *(accumulator, value, index, array)* and for objects they are *(accumulator, value, key, object)*.
[&#9650;][1]
@@ -1586,7 +1586,7 @@ var flat = _.reduceRight(list, function(a, b) { return a.concat(b); }, []);
<!-- div -->
### <a id="_.reject" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L718" title="View in source">`_.reject(collection, callback [, thisArg])`</a>
### <a id="_.reject" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L716" title="View in source">`_.reject(collection, callback [, thisArg])`</a>
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)*.
[&#9650;][1]
@@ -1609,7 +1609,7 @@ var odds = _.reject([1, 2, 3, 4, 5, 6], function(num) { return num % 2 == 0; });
<!-- div -->
### <a id="_.rest" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L1243" title="View in source">`_.rest(array [, n, guard])`</a>
### <a id="_.rest" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L1241" title="View in source">`_.rest(array [, n, guard])`</a>
The opposite of `_.initial`, this method gets all but the first value of the `array`. Pass `n` to exclude the first `n` values from the result.
[&#9650;][1]
@@ -1632,7 +1632,7 @@ _.rest([5, 4, 3, 2, 1]);
<!-- div -->
### <a id="_.result" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2399" title="View in source">`_.result(object, property)`</a>
### <a id="_.result" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2396" title="View in source">`_.result(object, property)`</a>
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.
[&#9650;][1]
@@ -1664,7 +1664,7 @@ _.result(object, 'stuff');
<!-- div -->
### <a id="_.shuffle" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L736" title="View in source">`_.shuffle(collection)`</a>
### <a id="_.shuffle" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L734" title="View in source">`_.shuffle(collection)`</a>
Produces a new array of shuffled `collection` values, using a version of the Fisher-Yates shuffle. See http://en.wikipedia.org/wiki/Fisher-Yates_shuffle.
[&#9650;][1]
@@ -1685,7 +1685,7 @@ _.shuffle([1, 2, 3, 4, 5, 6]);
<!-- div -->
### <a id="_.size" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L761" title="View in source">`_.size(collection)`</a>
### <a id="_.size" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L759" title="View in source">`_.size(collection)`</a>
Gets the number of values in the `collection`.
[&#9650;][1]
@@ -1706,7 +1706,7 @@ _.size({ 'one': 1, 'two': 2, 'three': 3 });
<!-- div -->
### <a id="_.some" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L834" title="View in source">`_.some(collection, callback [, thisArg])`</a>
### <a id="_.some" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L832" title="View in source">`_.some(collection, callback [, thisArg])`</a>
Checks if the `callback` returns truthy for **any** value 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)*.
[&#9650;][1]
@@ -1729,7 +1729,7 @@ _.some([null, 0, 'yes', false]);
<!-- div -->
### <a id="_.sortBy" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L788" title="View in source">`_.sortBy(collection, callback [, thisArg])`</a>
### <a id="_.sortBy" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L786" title="View in source">`_.sortBy(collection, callback [, thisArg])`</a>
Produces a new sorted array, ranked in ascending order by the results of running each value of a `collection` through `callback`. The `callback` is invoked with `3` arguments; for arrays they are *(value, index, array)* and for objects they are *(value, key, object)*. The `callback` argument may also be the name of a property to sort by *(e.g. 'length')*.
[&#9650;][1]
@@ -1752,7 +1752,7 @@ _.sortBy([1, 2, 3, 4, 5, 6], function(num) { return Math.sin(num); });
<!-- div -->
### <a id="_.sortedIndex" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L859" title="View in source">`_.sortedIndex(array, value [, callback])`</a>
### <a id="_.sortedIndex" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L857" title="View in source">`_.sortedIndex(array, value [, callback])`</a>
Uses a binary search to determine the smallest index at which the `value` should be inserted into the `collection` in order to maintain the sort order of the `collection`. If `callback` is passed, it will be executed for each value in the `collection` to compute their sort ranking. The `callback` is invoked with `1` argument.
[&#9650;][1]
@@ -1775,7 +1775,7 @@ _.sortedIndex([10, 20, 30, 40, 50], 35);
<!-- div -->
### <a id="_.tap" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2271" title="View in source">`_.tap(value, interceptor)`</a>
### <a id="_.tap" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2268" title="View in source">`_.tap(value, interceptor)`</a>
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.
[&#9650;][1]
@@ -1802,7 +1802,7 @@ _.chain([1,2,3,200])
<!-- div -->
### <a id="_.template" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2502" title="View in source">`_.template(text, data, options)`</a>
### <a id="_.template" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2499" title="View in source">`_.template(text, data, options)`</a>
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.
[&#9650;][1]
@@ -1859,7 +1859,7 @@ _.template('<%= data.hasWith %>', { 'hasWith': 'no' }, { 'variable': 'data' });
<!-- div -->
### <a id="_.throttle" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L1635" title="View in source">`_.throttle(func, wait)`</a>
### <a id="_.throttle" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L1633" title="View in source">`_.throttle(func, wait)`</a>
Creates a new function that, when invoked, will only call the original function at most once per every `wait` milliseconds.
[&#9650;][1]
@@ -1881,7 +1881,7 @@ jQuery(window).on('scroll', throttled);
<!-- div -->
### <a id="_.times" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2420" title="View in source">`_.times(n, callback [, thisArg])`</a>
### <a id="_.times" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2417" title="View in source">`_.times(n, callback [, thisArg])`</a>
Executes the `callback` function `n` times.
[&#9650;][1]
@@ -1900,7 +1900,7 @@ _.times(3, function() { genie.grantWish(); });
<!-- div -->
### <a id="_.toArray" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L892" title="View in source">`_.toArray(collection)`</a>
### <a id="_.toArray" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L890" title="View in source">`_.toArray(collection)`</a>
Converts the `collection`, into an array. Useful for converting the `arguments` object.
[&#9650;][1]
@@ -1921,7 +1921,7 @@ Converts the `collection`, into an array. Useful for converting the `arguments`
<!-- div -->
### <a id="_.union" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L1261" title="View in source">`_.union([array1, array2, ...])`</a>
### <a id="_.union" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L1259" title="View in source">`_.union([array1, array2, ...])`</a>
Computes the union of the passed-in arrays.
[&#9650;][1]
@@ -1942,7 +1942,7 @@ _.union([1, 2, 3], [101, 2, 1, 10], [2, 1]);
<!-- div -->
### <a id="_.uniq" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L1286" title="View in source">`_.uniq(array [, isSorted=false, callback])`</a>
### <a id="_.uniq" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L1284" title="View in source">`_.uniq(array [, isSorted=false, callback])`</a>
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)*.
[&#9650;][1]
@@ -1965,7 +1965,7 @@ _.uniq([1, 2, 1, 3, 1, 4]);
<!-- div -->
### <a id="_.uniqueId" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2443" title="View in source">`_.uniqueId([prefix])`</a>
### <a id="_.uniqueId" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2440" title="View in source">`_.uniqueId([prefix])`</a>
Generates a unique id. If `prefix` is passed, the id will be appended to it.
[&#9650;][1]
@@ -1986,7 +1986,7 @@ _.uniqueId('contact_');
<!-- div -->
### <a id="_.value" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2603" title="View in source">`_.value()`</a>
### <a id="_.value" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2600" title="View in source">`_.value()`</a>
Extracts the value from a wrapped chainable object.
[&#9650;][1]
@@ -2004,7 +2004,7 @@ _([1, 2, 3]).value();
<!-- div -->
### <a id="_.values" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L920" title="View in source">`_.values(collection)`</a>
### <a id="_.values" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L918" title="View in source">`_.values(collection)`</a>
Produces an array of enumerable own property values of the `collection`.
[&#9650;][1]
@@ -2025,7 +2025,7 @@ _.values({ 'one': 1, 'two': 2, 'three': 3 });
<!-- div -->
### <a id="_.without" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L1320" title="View in source">`_.without(array [, value1, value2, ...])`</a>
### <a id="_.without" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L1318" title="View in source">`_.without(array [, value1, value2, ...])`</a>
Produces a new array with all occurrences of the values removed using strict equality for comparisons, i.e. `===`.
[&#9650;][1]
@@ -2047,7 +2047,7 @@ _.without([1, 2, 1, 0, 3, 1, 4], 0, 1);
<!-- div -->
### <a id="_.wrap" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L1684" title="View in source">`_.wrap(func, wrapper [, arg1, arg2, ...])`</a>
### <a id="_.wrap" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L1682" title="View in source">`_.wrap(func, wrapper [, arg1, arg2, ...])`</a>
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.
[&#9650;][1]
@@ -2074,7 +2074,7 @@ hello();
<!-- div -->
### <a id="_.zip" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L1341" title="View in source">`_.zip([array1, array2, ...])`</a>
### <a id="_.zip" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L1339" title="View in source">`_.zip([array1, array2, ...])`</a>
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.
[&#9650;][1]
@@ -2102,7 +2102,7 @@ _.zip(['moe', 'larry', 'curly'], [30, 40, 50], [true, false, false]);
<!-- div -->
### <a id="_.templateSettings" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2628" title="View in source">`_.templateSettings`</a>
### <a id="_.templateSettings" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2625" title="View in source">`_.templateSettings`</a>
*(Object)*: By default, Lo-Dash uses ERB-style template delimiters, change the following template settings to use alternative delimiters.
[&#9650;][1]
@@ -2111,7 +2111,7 @@ _.zip(['moe', 'larry', 'curly'], [30, 40, 50], [true, false, false]);
<!-- div -->
### <a id="_.templateSettings.escape" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2637" title="View in source">`_.templateSettings.escape`</a>
### <a id="_.templateSettings.escape" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2634" title="View in source">`_.templateSettings.escape`</a>
*(RegExp)*: Used to detect `data` property values to be HTML-escaped.
[&#9650;][1]
@@ -2120,7 +2120,7 @@ _.zip(['moe', 'larry', 'curly'], [30, 40, 50], [true, false, false]);
<!-- div -->
### <a id="_.templateSettings.evaluate" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2646" title="View in source">`_.templateSettings.evaluate`</a>
### <a id="_.templateSettings.evaluate" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2643" title="View in source">`_.templateSettings.evaluate`</a>
*(RegExp)*: Used to detect code to be evaluated.
[&#9650;][1]
@@ -2129,7 +2129,7 @@ _.zip(['moe', 'larry', 'curly'], [30, 40, 50], [true, false, false]);
<!-- div -->
### <a id="_.templateSettings.interpolate" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2655" title="View in source">`_.templateSettings.interpolate`</a>
### <a id="_.templateSettings.interpolate" href="https://github.com/bestiejs/lodash/blob/master/lodash.js#L2652" title="View in source">`_.templateSettings.interpolate`</a>
*(RegExp)*: Used to detect `data` property values to inject.
[&#9650;][1]