Avoid circular dependencies.

Former-commit-id: a45dd055f44f72797cb62ba040ecc2d45cc24634
This commit is contained in:
John-David Dalton
2013-07-24 08:27:09 -07:00
parent bdb7c226f1
commit 57fc027f77
9 changed files with 319 additions and 347 deletions

View File

@@ -85,6 +85,8 @@
'templateSettings': ['escape'], 'templateSettings': ['escape'],
// variables // variables
'defaultsIteratorOptions': ['keys'],
'eachIteratorOptions': ['keys'],
'htmlUnescapes': ['invert'], 'htmlUnescapes': ['invert'],
'reEscapedHtml': ['keys'], 'reEscapedHtml': ['keys'],
'reUnescapedHtml': ['keys'], 'reUnescapedHtml': ['keys'],
@@ -208,7 +210,7 @@
'compareAscending': [], 'compareAscending': [],
'createBound': ['createObject', 'isFunction', 'isObject', 'setBindData'], 'createBound': ['createObject', 'isFunction', 'isObject', 'setBindData'],
'createCache': ['cachePush', 'getObject', 'releaseObject'], 'createCache': ['cachePush', 'getObject', 'releaseObject'],
'createIterator': ['getObject', 'isArguments', 'isArray', 'isString', 'keys', 'iteratorTemplate', 'lodash', 'releaseObject'], 'createIterator': ['getObject', 'isArguments', 'isArray', 'isString', 'iteratorTemplate', 'lodash', 'releaseObject'],
'createObject': [ 'isObject', 'noop'], 'createObject': [ 'isObject', 'noop'],
'escapeHtmlChar': [], 'escapeHtmlChar': [],
'escapeStringChar': [], 'escapeStringChar': [],
@@ -235,12 +237,6 @@
'findWhere': ['where'] 'findWhere': ['where']
}; };
/** Used to track circular dependencies of identifiers */
var circularDependencyMap = {
'createCallback': ['isEqual'],
'createIterator': ['keys']
};
/** Used to track Lo-Dash property dependencies of identifiers */ /** Used to track Lo-Dash property dependencies of identifiers */
var propDependencyMap = { var propDependencyMap = {
'at': ['support'], 'at': ['support'],
@@ -261,14 +257,20 @@
/** Used to track variable dependencies of identifiers */ /** Used to track variable dependencies of identifiers */
var varDependencyMap = { var varDependencyMap = {
'assign': ['defaultsIteratorOptions'],
'baseEach': ['eachIteratorOptions'],
'baseIsEqual': ['objectTypes'], 'baseIsEqual': ['objectTypes'],
'bind': ['reNative'], 'bind': ['reNative'],
'createIterator': ['indicatorObject', 'objectTypes'], 'createIterator': ['indicatorObject', 'objectTypes'],
'createBound': ['reNative'], 'createBound': ['reNative'],
'createObject': ['reNative'], 'createObject': ['reNative'],
'defaults': ['defaultsIteratorOptions'],
'defer': ['objectTypes', 'reNative'], 'defer': ['objectTypes', 'reNative'],
'escape': ['reUnescapedHtml'], 'escape': ['reUnescapedHtml'],
'escapeHtmlChar': ['htmlEscapes'], 'escapeHtmlChar': ['htmlEscapes'],
'forIn': ['eachIteratorOptions', 'forOwnIteratorOptions'],
'forOwn': ['eachIteratorOptions', 'forOwnIteratorOptions'],
'forOwnIteratorOptions': ['eachIteratorOptions'],
'htmlUnescapes': ['htmlEscapes'], 'htmlUnescapes': ['htmlEscapes'],
'isArray': ['reNative'], 'isArray': ['reNative'],
'isObject': ['objectTypes'], 'isObject': ['objectTypes'],
@@ -494,12 +496,12 @@
'bottom', 'bottom',
'firstArg', 'firstArg',
'init', 'init',
'keys',
'loop', 'loop',
'shadowedProps', 'shadowedProps',
'support', 'support',
'top', 'top',
'useHas', 'useHas'
'useKeys'
]; ];
/** List of Lo-Dash only functions */ /** List of Lo-Dash only functions */
@@ -865,26 +867,16 @@
// create modules for each identifier // create modules for each identifier
identifiers.forEach(function(identifier) { identifiers.forEach(function(identifier) {
var circDeps = circularDependencyMap[identifier], var modulePath = getPath(identifier),
modulePath = getPath(identifier),
iife = []; iife = [];
var deps = _.difference( var deps = getDependencies(identifier, true)
getDependencies(identifier, true)
.concat(propDependencyMap[identifier] || arrayRef) .concat(propDependencyMap[identifier] || arrayRef)
.concat(varDependencyMap[identifier] || arrayRef) .concat(varDependencyMap[identifier] || arrayRef)
, circDeps) .sort();
.sort();
if (circDeps) { var depArgs = deps.join(', '),
deps.unshift('require'); depPaths = '[' + (deps.length ? "'" + getDepPaths(deps, modulePath).join("', '") + "'" : '') + '], ';
}
var depArgs = deps.join(', ');
if (circDeps) {
push.apply(deps, circDeps);
}
var depPaths = '[' + (deps.length ? "'" + getDepPaths(deps, modulePath).join("', '") + "'" : '') + '], ';
if (isAMD) { if (isAMD) {
iife.push( iife.push(
@@ -900,16 +892,7 @@
'include=' + identifier, 'include=' + identifier,
'iife=' + iife.join('\n'), 'iife=' + iife.join('\n'),
'-o', path.join(outputPath, modulePath + identifier + '.js') '-o', path.join(outputPath, modulePath + identifier + '.js')
), function(data) { ));
// replace circular dependencies inline
_.each(circDeps, function(dep) {
// avoid identifiers in strings
data.source = data.source.replace(RegExp('(["\'])(?:(?!\\1)[^\\n\\\\]|\\\\.)*\\1|\\b' + dep + '\\b', 'g'), function(match) {
return /^["']/.test(match) ? match : "require('" + getDepPath(match, modulePath) + "')";
});
});
defaultBuildCallback(data);
});
}); });
// create category modules // create category modules
@@ -1644,6 +1627,7 @@
.replace(/(?:\s*\/\/.*)*\n( *)var args *=[\s\S]+?\n\1}/, '') .replace(/(?:\s*\/\/.*)*\n( *)var args *=[\s\S]+?\n\1}/, '')
.replace(/(?:\s*\/\/.*)*\n.+args *= *nativeSlice.+/, '') .replace(/(?:\s*\/\/.*)*\n.+args *= *nativeSlice.+/, '')
.replace(/(?:\s*\/\/.*)*\n.+?setBindData.+/, '') .replace(/(?:\s*\/\/.*)*\n.+?setBindData.+/, '')
.replace(/^( *)(args *=)/m, '$1var $2')
}); });
@@ -1827,11 +1811,19 @@
*/ */
function removeKeysOptimization(source) { function removeKeysOptimization(source) {
source = removeFromCreateIterator(source, 'keys'); source = removeFromCreateIterator(source, 'keys');
source = removeFromCreateIterator(source, 'useKeys');
// remove "keys" iterator options
_.each(['defaultsIteratorOptions', 'eachIteratorOptions'], function(varName) {
source = source.replace(matchVar(source, varName), function(match) {
return match
.replace(/^ *'keys':.+\n+/m, '')
.replace(/,(?=\s*})/, '');
});
});
// remove optimized branch in `iteratorTemplate` // remove optimized branch in `iteratorTemplate`
source = source.replace(matchFunction(source, 'iteratorTemplate'), function(match) { source = source.replace(matchFunction(source, 'iteratorTemplate'), function(match) {
return match.replace(/^(?: *\/\/.*\n)* *["']( *)<% *if *\(useHas *&& *useKeys[\s\S]+?["']\1<% *} *else *{ *%>.+\n([\s\S]+?) *["']\1<% *} *%>.+/m, "'\\n' +\n$2"); return match.replace(/^(?: *\/\/.*\n)* *["']( *)<% *if *\(useHas *&& *keys[\s\S]+?["']\1<% *} *else *{ *%>.+\n([\s\S]+?) *["']\1<% *} *%>.+/m, "'\\n' +\n$2");
}); });
return source; return source;
@@ -2828,8 +2820,7 @@
if (isModern || isUnderscore) { if (isModern || isUnderscore) {
_.each(['assign', 'baseEach', 'defaults', 'forIn', 'forOwn', 'shimKeys'], function(funcName) { _.each(['assign', 'baseEach', 'defaults', 'forIn', 'forOwn', 'shimKeys'], function(funcName) {
if (!(isUnderscore && isLodash(funcName))) { if (!(isUnderscore && isLodash(funcName))) {
(varDependencyMap[funcName] || (varDependencyMap[funcName] = [])).push('objectTypes'); (varDependencyMap[funcName] = _.without(varDependencyMap[funcName], 'defaultsIteratorOptions', 'eachIteratorOptions', 'forOwnIteratorOptions')).push('objectTypes');
var deps = funcDependencyMap[funcName] = _.without(funcDependencyMap[funcName], 'createIterator'); var deps = funcDependencyMap[funcName] = _.without(funcDependencyMap[funcName], 'createIterator');
if (funcName != 'forIn' && funcName != 'shimKeys') { if (funcName != 'forIn' && funcName != 'shimKeys') {
deps.push('keys'); deps.push('keys');
@@ -3800,7 +3791,9 @@
// use a with-statement // use a with-statement
iteratorOptions.forEach(function(prop) { iteratorOptions.forEach(function(prop) {
if (prop !== 'support') { if (prop !== 'support') {
snippet = snippet.replace(RegExp('([^\\w.])' + prop + '\\b', 'g'), '$1obj.' + prop); snippet = snippet.replace(RegExp('(["\'])(?:(?!\\1)[^\\n\\\\]|\\\\.)*\\1|([^.])\\b' + prop + '\\b', 'g'), function(match, quote, prelude) {
return quote ? match : (prelude + 'obj.' + prop);
});
} }
}); });

View File

@@ -20,6 +20,7 @@
'guard', 'guard',
'hasOwnProperty', 'hasOwnProperty',
'index', 'index',
'indicatorObject',
'isArguments', 'isArguments',
'isArray', 'isArray',
'isProto', 'isProto',
@@ -52,11 +53,11 @@
'bottom', 'bottom',
'firstArg', 'firstArg',
'init', 'init',
'keys',
'loop', 'loop',
'shadowedProps', 'shadowedProps',
'top', 'top',
'useHas', 'useHas'
'useKeys'
]; ];
/** Used to minify variables and string values to a single character */ /** Used to minify variables and string values to a single character */
@@ -270,26 +271,6 @@
if (options.isTemplate) { if (options.isTemplate) {
return source; return source;
} }
// add brackets to whitelisted properties so the Closure Compiler won't mung them
// http://code.google.com/closure/compiler/docs/api-tutorial3.html#export
source = source.replace(RegExp('\\.(' + propWhitelist.join('|') + ')\\b', 'g'), function(match, prop) {
return "['" + prop.replace(/['\n\r\t]/g, '\\$&') + "']";
});
// remove brackets from `lodash.createCallback` in `eachIteratorOptions`
source = source.replace('lodash[\'createCallback\'](callback, thisArg)"', 'lodash.createCallback(callback, thisArg)"');
// remove brackets from `lodash.createCallback` in `_.assign`
source = source.replace("' var callback = lodash['createCallback']", "'var callback=lodash.createCallback");
// remove brackets from `_.escape` in `_.template`
source = source.replace(/__e *= *_\['escape']/g, '__e=_.escape');
// remove brackets from `collection.indexOf` in `_.contains`
source = source.replace("collection['indexOf'](target)", 'collection.indexOf(target)');
// remove brackets from `result[length].value` in `_.sortBy`
source = source.replace("result[length]['value']", 'result[length].value');
// remove whitespace from string literals // remove whitespace from string literals
source = source.replace(/^((?:[ "'\w]+:)? *)"[^"\n\\]*?(?:\\.[^"\n\\]*?)*"|'[^'\n\\]*?(?:\\.[^'\n\\]*?)*'/gm, function(string, left) { source = source.replace(/^((?:[ "'\w]+:)? *)"[^"\n\\]*?(?:\\.[^"\n\\]*?)*"|'[^'\n\\]*?(?:\\.[^'\n\\]*?)*'/gm, function(string, left) {
@@ -388,42 +369,19 @@
isIteratorTemplate = /var iteratorTemplate\b/.test(snippet), isIteratorTemplate = /var iteratorTemplate\b/.test(snippet),
modified = snippet; modified = snippet;
// add brackets to iterator option properties so the Closure Compiler won't mung them
modified = modified.replace(RegExp('\\.(' + iteratorOptions.join('|') + ')\\b', 'g'), function(match, prop) {
return "['" + prop.replace(/['\n\r\t]/g, '\\$&') + "']";
});
// remove unnecessary semicolons in strings // remove unnecessary semicolons in strings
modified = modified.replace(/;(?:}["']|(?:\\n|\s)*["']\s*\+\s*["'](?:\\n|\s)*})/g, function(match) { modified = modified.replace(/;(?:}["']|(?:\\n|\s)*["']\s*\+\s*["'](?:\\n|\s)*})/g, function(match) {
return match.slice(1); return match.slice(1);
}); });
// minify `createIterator` option property names
iteratorOptions.forEach(function(property, index) {
var minName = minNames[index];
// minify variables in `iteratorTemplate` or property names in everything else
modified = isIteratorTemplate
? modified.replace(RegExp('\\b' + property + '\\b', 'g'), minName)
: modified.replace(RegExp("'" + property + "'", 'g'), "'" + minName + "'");
});
// minify snippet variables / arguments // minify snippet variables / arguments
compiledVars.forEach(function(varName, index) { compiledVars.forEach(function(varName, index) {
var minName = minNames[index]; var minName = minNames[index];
// minify variable names present in strings modified = modified.replace(/(["'])(?:(?!\1)[^\n\\]|\\.)*\1/g, function(match) {
if (isFunc && !isIteratorTemplate) { return match.replace(RegExp('([^.])\\b' + varName + '\\b', 'g'), '$1' + minName);
modified = modified.replace(RegExp('((["\'])[^\\n\\2]*?)\\b' + varName + '\\b(?=[^\\n\\2]*\\2[ ,+;]+$)', 'gm'), function(match, prelude) { });
return prelude + minName;
});
}
// ensure properties in compiled strings aren't minified
else {
modified = modified.replace(RegExp('([^.])\\b' + varName + '\\b(?!\' *[\\]:])', 'g'), function(match, prelude) {
return prelude + minName;
});
}
// correct `typeof` string values // correct `typeof` string values
if (/^(?:boolean|function|object|number|string|undefined)$/.test(varName)) { if (/^(?:boolean|function|object|number|string|undefined)$/.test(varName)) {
modified = modified.replace(RegExp('(= *)(["\'])' + minName + '\\2|(["\'])' + minName + '\\3( *=)', 'g'), function(match, prelude, preQuote, postQuote, postlude) { modified = modified.replace(RegExp('(= *)(["\'])' + minName + '\\2|(["\'])' + minName + '\\3( *=)', 'g'), function(match, prelude, preQuote, postQuote, postlude) {
@@ -434,12 +392,33 @@
} }
}); });
// minify `createIterator` option property names
iteratorOptions.forEach(function(property, index) {
var minName = minNames[index];
// minify iterator option variables
modified = modified.replace(/(["'])(?:(?!\1)[^\n\\]|\\.)*\1/g, function(match, quote) {
return match.replace(RegExp('([^.])\\b' + property + '\\b', 'g'), '$1' + minName)
});
// minify iterator option properties, adding brackets so the Closure Compiler won't mung them
modified = modified.replace(RegExp('(["\'])(?:(?!\\1)[^\\n\\\\]|\\\\.)*\\1|\\.' + property + '\\b', 'g'), function(match, quote) {
return quote ? match : "['" + minName + "']";
});
});
// replace with modified snippet // replace with modified snippet
source = source.replace(snippet, function() { source = source.replace(snippet, function() {
return modified; return modified;
}); });
}); });
// add brackets to whitelisted properties so the Closure Compiler won't mung them
// http://code.google.com/closure/compiler/docs/api-tutorial3.html#export
source = source.replace(RegExp('(["\'])(?:(?!\\1)[^\\n\\\\]|\\\\.)*\\1|\\.(' + propWhitelist.join('|') + ')\\b', 'g'), function(match, quote, prop) {
return quote ? match : "['" + prop + "']";
});
return source; return source;
} }

102
dist/lodash.compat.js vendored
View File

@@ -326,6 +326,7 @@
'firstArg': '', 'firstArg': '',
'index': 0, 'index': 0,
'init': '', 'init': '',
'keys': null,
'leading': false, 'leading': false,
'loop': '', 'loop': '',
'maxWait': 0, 'maxWait': 0,
@@ -340,7 +341,6 @@
'true': false, 'true': false,
'undefined': false, 'undefined': false,
'useHas': false, 'useHas': false,
'useKeys': false,
'value': null 'value': null
}; };
} }
@@ -860,7 +860,7 @@
var conditions = []; if (support.enumPrototypes) { conditions.push('!(skipProto && index == "prototype")'); } if (support.enumErrorProps) { conditions.push('!(skipErrorProps && (index == "message" || index == "name"))'); } var conditions = []; if (support.enumPrototypes) { conditions.push('!(skipProto && index == "prototype")'); } if (support.enumErrorProps) { conditions.push('!(skipErrorProps && (index == "message" || index == "name"))'); }
if (obj.useHas && obj.useKeys) { if (obj.useHas && obj.keys) {
__p += '\n var ownIndex = -1,\n ownProps = objectTypes[typeof iterable] && keys(iterable),\n length = ownProps ? ownProps.length : 0;\n\n while (++ownIndex < length) {\n index = ownProps[ownIndex];\n'; __p += '\n var ownIndex = -1,\n ownProps = objectTypes[typeof iterable] && keys(iterable),\n length = ownProps ? ownProps.length : 0;\n\n while (++ownIndex < length) {\n index = ownProps[ownIndex];\n';
if (conditions.length) { if (conditions.length) {
__p += ' if (' + __p += ' if (' +
@@ -916,34 +916,6 @@
return __p return __p
}; };
/** Reusable iterator options for `assign` and `defaults` */
var defaultsIteratorOptions = {
'args': 'object, source, guard',
'top':
'var args = arguments,\n' +
' argsIndex = 0,\n' +
" argsLength = typeof guard == 'number' ? 2 : args.length;\n" +
'while (++argsIndex < argsLength) {\n' +
' iterable = args[argsIndex];\n' +
' if (iterable && objectTypes[typeof iterable]) {',
'loop': "if (typeof result[index] == 'undefined') result[index] = iterable[index]",
'bottom': ' }\n}'
};
/** Reusable iterator options shared by `each`, `forIn`, and `forOwn` */
var eachIteratorOptions = {
'args': 'collection, callback, thisArg',
'top': "callback = callback && typeof thisArg == 'undefined' ? callback : lodash.createCallback(callback, thisArg, 3)",
'array': "typeof length == 'number'",
'loop': 'if (callback(iterable[index], index, collection) === false) return result'
};
/** Reusable iterator options for `forIn` and `forOwn` */
var forOwnIteratorOptions = {
'top': 'if (!objectTypes[typeof iterable]) return result;\n' + eachIteratorOptions.top,
'array': false
};
/*--------------------------------------------------------------------------*/ /*--------------------------------------------------------------------------*/
/** /**
@@ -1375,7 +1347,7 @@
// use `Function#bind` if it exists and is fast // use `Function#bind` if it exists and is fast
// (in V8 `Function#bind` is slower except when partially applied) // (in V8 `Function#bind` is slower except when partially applied)
if (!isPartial && !isAlt && !partialRightArgs.length && (support.fastBind || (nativeBind && partialArgs.length))) { if (!isPartial && !isAlt && !partialRightArgs.length && (support.fastBind || (nativeBind && partialArgs.length))) {
args = [func, thisArg]; var args = [func, thisArg];
push.apply(args, partialArgs); push.apply(args, partialArgs);
var bound = nativeBind.call.apply(nativeBind, args); var bound = nativeBind.call.apply(nativeBind, args);
} }
@@ -1419,7 +1391,7 @@
* @param {Object} [options1, options2, ...] The compile options object(s). * @param {Object} [options1, options2, ...] The compile options object(s).
* array - A string of code to determine if the iterable is an array or array-like. * array - A string of code to determine if the iterable is an array or array-like.
* useHas - A boolean to specify using `hasOwnProperty` checks in the object loop. * useHas - A boolean to specify using `hasOwnProperty` checks in the object loop.
* useKeys - A boolean to specify using `_.keys` for own property iteration. * keys - A reference to `_.keys` for use in own property iteration.
* args - A string of comma separated arguments the iteration function will accept. * args - A string of comma separated arguments the iteration function will accept.
* top - A string of code to execute before the iteration branches. * top - A string of code to execute before the iteration branches.
* loop - A string of code to execute in the object loop. * loop - A string of code to execute in the object loop.
@@ -1436,7 +1408,6 @@
data.array = data.bottom = data.loop = data.top = ''; data.array = data.bottom = data.loop = data.top = '';
data.init = 'iterable'; data.init = 'iterable';
data.useHas = true; data.useHas = true;
data.useKeys = true;
// merge options into a template data object // merge options into a template data object
for (var object, index = 0; object = arguments[index]; index++) { for (var object, index = 0; object = arguments[index]; index++) {
@@ -1460,7 +1431,7 @@
// return the compiled function // return the compiled function
return factory( return factory(
errorClass, errorProto, hasOwnProperty, indicatorObject, isArguments, errorClass, errorProto, hasOwnProperty, indicatorObject, isArguments,
isArray, isString, data.useKeys && keys, lodash, objectProto, objectTypes, nonEnumProps, isArray, isString, data.keys, lodash, objectProto, objectTypes, nonEnumProps,
stringClass, stringProto, toString stringClass, stringProto, toString
); );
} }
@@ -1639,8 +1610,7 @@
'args': 'object', 'args': 'object',
'init': '[]', 'init': '[]',
'top': 'if (!(objectTypes[typeof object])) return result', 'top': 'if (!(objectTypes[typeof object])) return result',
'loop': 'result.push(index)', 'loop': 'result.push(index)'
'useKeys': false
}); });
/** /**
@@ -1667,21 +1637,35 @@
return nativeKeys(object); return nativeKeys(object);
}; };
/** /** Reusable iterator options shared by `each`, `forIn`, and `forOwn` */
* A function compiled to iterate `arguments` objects, arrays, objects, and var eachIteratorOptions = {
* strings consistenly across environments, executing the `callback` for each 'args': 'collection, callback, thisArg',
* element in the `collection`. The `callback` is bound to `thisArg` and invoked 'top': "callback = callback && typeof thisArg == 'undefined' ? callback : lodash.createCallback(callback, thisArg, 3)",
* with three arguments; (value, index|key, collection). Callbacks may exit 'array': "typeof length == 'number'",
* iteration early by explicitly returning `false`. 'keys': keys,
* 'loop': 'if (callback(iterable[index], index, collection) === false) return result'
* @private };
* @type Function
* @param {Array|Object|String} collection The collection to iterate over. /** Reusable iterator options for `assign` and `defaults` */
* @param {Function} [callback=identity] The function called per iteration. var defaultsIteratorOptions = {
* @param {Mixed} [thisArg] The `this` binding of `callback`. 'args': 'object, source, guard',
* @returns {Array|Object|String} Returns `collection`. 'top':
*/ 'var args = arguments,\n' +
var baseEach = createIterator(eachIteratorOptions); ' argsIndex = 0,\n' +
" argsLength = typeof guard == 'number' ? 2 : args.length;\n" +
'while (++argsIndex < argsLength) {\n' +
' iterable = args[argsIndex];\n' +
' if (iterable && objectTypes[typeof iterable]) {',
'keys': keys,
'loop': "if (typeof result[index] == 'undefined') result[index] = iterable[index]",
'bottom': ' }\n}'
};
/** Reusable iterator options for `forIn` and `forOwn` */
var forOwnIteratorOptions = {
'top': 'if (!objectTypes[typeof iterable]) return result;\n' + eachIteratorOptions.top,
'array': false
};
/** /**
* Used to convert characters to HTML entities: * Used to convert characters to HTML entities:
@@ -1706,6 +1690,22 @@
var reEscapedHtml = RegExp('(' + keys(htmlUnescapes).join('|') + ')', 'g'), var reEscapedHtml = RegExp('(' + keys(htmlUnescapes).join('|') + ')', 'g'),
reUnescapedHtml = RegExp('[' + keys(htmlEscapes).join('') + ']', 'g'); reUnescapedHtml = RegExp('[' + keys(htmlEscapes).join('') + ']', 'g');
/**
* A function compiled to iterate `arguments` objects, arrays, objects, and
* strings consistenly across environments, executing the `callback` for each
* element in the `collection`. The `callback` is bound to `thisArg` and invoked
* with three arguments; (value, index|key, collection). Callbacks may exit
* iteration early by explicitly returning `false`.
*
* @private
* @type Function
* @param {Array|Object|String} collection The collection to iterate over.
* @param {Function} [callback=identity] The function called per iteration.
* @param {Mixed} [thisArg] The `this` binding of `callback`.
* @returns {Array|Object|String} Returns `collection`.
*/
var baseEach = createIterator(eachIteratorOptions);
/*--------------------------------------------------------------------------*/ /*--------------------------------------------------------------------------*/
/** /**

View File

@@ -3,50 +3,50 @@
* Lo-Dash 1.3.1 (Custom Build) lodash.com/license | Underscore.js 1.5.1 underscorejs.org/LICENSE * Lo-Dash 1.3.1 (Custom Build) lodash.com/license | Underscore.js 1.5.1 underscorejs.org/LICENSE
* Build: `lodash -o ./dist/lodash.compat.js` * Build: `lodash -o ./dist/lodash.compat.js`
*/ */
;!function(n){function t(n,t,r){r=(r||0)-1;for(var e=n?n.length:0;++r<e;)if(n[r]===t)return r;return-1}function r(n,r){var e=typeof r;if(n=n.k,"boolean"==e||r==d)return n[r];"number"!=e&&"string"!=e&&(e="object");var u="number"==e?r:x+r;return n=n[e]||(n[e]={}),"object"==e?n[u]&&-1<t(n[u],r)?0:-1:n[u]?0:-1}function e(n){var t=this.k,r=typeof n;if("boolean"==r||n==d)t[n]=m;else{"number"!=r&&"string"!=r&&(r="object");var e="number"==r?n:x+n,t=t[r]||(t[r]={});"object"==r?(t[e]||(t[e]=[])).push(n):t[e]=m ;!function(n){function t(n,t,e){e=(e||0)-1;for(var r=n?n.length:0;++e<r;)if(n[e]===t)return e;return-1}function e(n,e){var r=typeof e;if(n=n.k,"boolean"==r||e==d)return n[e];"number"!=r&&"string"!=r&&(r="object");var u="number"==r?e:x+e;return n=n[r]||(n[r]={}),"object"==r?n[u]&&-1<t(n[u],e)?0:-1:n[u]?0:-1}function r(n){var t=this.k,e=typeof n;if("boolean"==e||n==d)t[n]=m;else{"number"!=e&&"string"!=e&&(e="object");var r="number"==e?n:x+n,t=t[e]||(t[e]={});"object"==e?(t[r]||(t[r]=[])).push(n):t[r]=m
}}function u(n){return n.charCodeAt(0)}function a(n,t){var r=n.m,e=t.m;if(n=n.l,t=t.l,n!==t){if(n>t||typeof n=="undefined")return 1;if(n<t||typeof t=="undefined")return-1}return r<e?-1:1}function o(n){var t=-1,r=n.length,u=n[0],a=n[r-1];if(u&&typeof u=="object"&&a&&typeof a=="object")return b;for(u=l(),u["false"]=u["null"]=u["true"]=u.undefined=b,a=l(),a.b=n,a.k=u,a.push=e;++t<r;)a.push(n[t]);return a}function i(n){return"\\"+Y[n]}function f(){return _.pop()||[]}function l(){return j.pop()||{a:"",b:d,c:"",k:d,l:d,"false":b,d:"",m:0,e:"",leading:b,f:"",maxWait:0,"null":b,number:d,object:d,push:d,g:d,string:d,h:"",trailing:b,"true":b,undefined:b,i:b,j:b,n:d} }}function u(n){return n.charCodeAt(0)}function a(n,t){var e=n.m,r=t.m;if(n=n.l,t=t.l,n!==t){if(n>t||typeof n=="undefined")return 1;if(n<t||typeof t=="undefined")return-1}return e<r?-1:1}function o(n){var t=-1,e=n.length,u=n[0],a=n[e-1];if(u&&typeof u=="object"&&a&&typeof a=="object")return b;for(u=f(),u["false"]=u["null"]=u["true"]=u.undefined=b,a=f(),a.b=n,a.k=u,a.push=r;++t<e;)a.push(n[t]);return a}function i(n){return"\\"+Y[n]}function l(){return _.pop()||[]}function f(){return j.pop()||{a:"",b:d,c:"",k:d,l:d,"false":b,d:"",m:0,e:"",u:d,leading:b,g:"",maxWait:0,"null":b,number:d,y:d,push:d,h:d,string:d,i:"",trailing:b,"true":b,undefined:b,j:b,n:d}
}function c(n){return typeof n.toString!="function"&&typeof(n+"")=="string"}function p(){}function s(n){n.length=0,_.length<E&&_.push(n)}function g(n){var t=n.k;t&&g(t),n.b=n.k=n.l=n.object=n.number=n.string=n.n=d,j.length<E&&j.push(n)}function v(n,t,r){t||(t=0),typeof r=="undefined"&&(r=n?n.length:0);var e=-1;r=r-t||0;for(var u=Array(0>r?0:r);++e<r;)u[e]=n[t+e];return u}function h(e){function _(n){return n&&typeof n=="object"&&!$r(n)&&cr.call(n,"__wrapped__")?n:new j(n)}function j(n){this.__wrapped__=n }function c(n){return typeof n.toString!="function"&&typeof(n+"")=="string"}function s(){}function p(n){n.length=0,_.length<E&&_.push(n)}function g(n){var t=n.k;t&&g(t),n.b=n.k=n.l=n.object=n.number=n.string=n.n=d,j.length<E&&j.push(n)}function v(n,t,e){t||(t=0),typeof e=="undefined"&&(e=n?n.length:0);var r=-1;e=e-t||0;for(var u=Array(0>e?0:e);++r<e;)u[r]=n[t+r];return u}function h(r){function _(n){return n&&typeof n=="object"&&!Be(n)&&ce.call(n,"__wrapped__")?n:new j(n)}function j(n){this.__wrapped__=n
}function E(n,t,r,e,u){var a=n;if(r){if(a=r(a),typeof a!="undefined")return a;a=n}var o=ht(a);if(o){var i=hr.call(a);if(!Q[i]||!Pr.nodeClass&&c(a))return a;var l=$r(a)}if(!o||!t)return o?l?v(a):Hr({},a):a;switch(o=Ir[i],i){case L:case G:return new o(+a);case K:case V:return new o(a);case U:return o(a.source,N.exec(a))}i=!e,e||(e=f()),u||(u=f());for(var p=e.length;p--;)if(e[p]==n)return u[p];return a=l?o(a.length):{},l&&(cr.call(n,"index")&&(a.index=n.index),cr.call(n,"input")&&(a.input=n.input)),e.push(n),u.push(a),(l?qr:Mr)(n,function(n,o){a[o]=E(n,t,r,e,u) }function E(n,t,e,r,u){var a=n;if(e){if(a=e(a),typeof a!="undefined")return a;a=n}var o=ht(a);if(o){var i=he.call(a);if(!Q[i]||!Pe.nodeClass&&c(a))return a;var f=Be(a)}if(!o||!t)return o?f?v(a):Je({},a):a;switch(o=De[i],i){case K:case L:return new o(+a);case M:case V:return new o(a);case U:return o(a.source,B.exec(a))}i=!r,r||(r=l()),u||(u=l());for(var s=r.length;s--;)if(r[s]==n)return u[s];return a=f?o(a.length):{},f&&(ce.call(n,"index")&&(a.index=n.index),ce.call(n,"input")&&(a.input=n.input)),r.push(n),u.push(a),(f?Le:Ge)(n,function(n,o){a[o]=E(n,t,e,r,u)
}),i&&(s(e),s(u)),a}function Y(n,t,r,e){e=(e||0)-1;for(var u=n?n.length:0,a=[];++e<u;){var o=n[e];o&&typeof o=="object"&&($r(o)||pt(o))?pr.apply(a,t?o:Y(o,t,r)):r||a.push(o)}return a}function Z(n,t,r,e,u,a){if(r){var o=r(n,t);if(typeof o!="undefined")return!!o}if(n===t)return 0!==n||1/n==1/t;if(n===n&&(!n||!X[typeof n])&&(!t||!X[typeof t]))return b;if(n==d||t==d)return n===t;var i=hr.call(n),l=hr.call(t);if(i==T&&(i=M),l==T&&(l=M),i!=l)return b;switch(i){case L:case G:return+n==+t;case K:return n!=+n?t!=+t:0==n?1/n==1/t:n==+t; }),i&&(p(r),p(u)),a}function Y(n,t,e,r){r=(r||0)-1;for(var u=n?n.length:0,a=[];++r<u;){var o=n[r];o&&typeof o=="object"&&(Be(o)||st(o))?se.apply(a,t?o:Y(o,t,e)):e||a.push(o)}return a}function Z(n,t,e,r,u,a){if(e){var o=e(n,t);if(typeof o!="undefined")return!!o}if(n===t)return 0!==n||1/n==1/t;if(n===n&&(!n||!X[typeof n])&&(!t||!X[typeof t]))return b;if(n==d||t==d)return n===t;var i=he.call(n),f=he.call(t);if(i==T&&(i=G),f==T&&(f=G),i!=f)return b;switch(i){case K:case L:return+n==+t;case M:return n!=+n?t!=+t:0==n?1/n==1/t:n==+t;
case U:case V:return n==Xt(t)}if(l=i==W,!l){if(cr.call(n,"__wrapped__")||cr.call(t,"__wrapped__"))return Z(n.__wrapped__||n,t.__wrapped__||t,r,e,u,a);if(i!=M||!Pr.nodeClass&&(c(n)||c(t)))return b;var i=!Pr.argsObject&&pt(n)?Vt:n.constructor,p=!Pr.argsObject&&pt(t)?Vt:t.constructor;if(i!=p&&(!vt(i)||!(i instanceof i&&vt(p)&&p instanceof p)))return b}for(p=!u,u||(u=f()),a||(a=f()),i=u.length;i--;)if(u[i]==n)return a[i]==t;var g=0,o=m;if(u.push(n),a.push(t),l){if(i=n.length,g=t.length,o=g==n.length,!o&&!e)return o; case U:case V:return n==Xt(t)}if(f=i==W,!f){if(ce.call(n,"__wrapped__")||ce.call(t,"__wrapped__"))return Z(n.__wrapped__||n,t.__wrapped__||t,e,r,u,a);if(i!=G||!Pe.nodeClass&&(c(n)||c(t)))return b;var i=!Pe.argsObject&&st(n)?Vt:n.constructor,s=!Pe.argsObject&&st(t)?Vt:t.constructor;if(i!=s&&(!vt(i)||!(i instanceof i&&vt(s)&&s instanceof s)))return b}for(s=!u,u||(u=l()),a||(a=l()),i=u.length;i--;)if(u[i]==n)return a[i]==t;var g=0,o=m;if(u.push(n),a.push(t),f){if(i=n.length,g=t.length,o=g==n.length,!o&&!r)return o;
for(;g--;)if(l=i,p=t[g],e)for(;l--&&!(o=Z(n[l],p,r,e,u,a)););else if(!(o=Z(n[g],p,r,e,u,a)))break;return o}return Kr(t,function(t,i,f){return cr.call(f,i)?(g++,o=cr.call(n,i)&&Z(n[i],t,r,e,u,a)):void 0}),o&&!e&&Kr(n,function(n,t,r){return cr.call(r,t)?o=-1<--g:void 0}),p&&(s(u),s(a)),o}function tt(n,t,r,e,u){($r(t)?wt:Mr)(t,function(t,a){var o,i,f=t,l=n[a];if(t&&((i=$r(t))||Ur(t))){for(f=e.length;f--;)if(o=e[f]==t){l=u[f];break}if(!o){var c;r&&(f=r(l,t),c=typeof f!="undefined")&&(l=f),c||(l=i?$r(l)?l:[]:Ur(l)?l:{}),e.push(t),u.push(l),c||tt(l,t,r,e,u) for(;g--;)if(f=i,s=t[g],r)for(;f--&&!(o=Z(n[f],s,e,r,u,a)););else if(!(o=Z(n[g],s,e,r,u,a)))break;return o}return Me(t,function(t,i,l){return ce.call(l,i)?(g++,o=ce.call(n,i)&&Z(n[i],t,e,r,u,a)):void 0}),o&&!r&&Me(n,function(n,t,e){return ce.call(e,t)?o=-1<--g:void 0}),s&&(p(u),p(a)),o}function tt(n,t,e,r,u){(Be(t)?Ct:Ge)(t,function(t,a){var o,i,l=t,f=n[a];if(t&&((i=Be(t))||Ue(t))){for(l=r.length;l--;)if(o=r[l]==t){f=u[l];break}if(!o){var c;e&&(l=e(f,t),c=typeof l!="undefined")&&(f=l),c||(f=i?Be(f)?f:[]:Ue(f)?f:{}),r.push(t),u.push(f),c||tt(f,t,e,r,u)
}}else r&&(f=r(l,t),typeof f=="undefined"&&(f=t)),typeof f!="undefined"&&(l=f);n[a]=l})}function et(n,e,u){var a=-1,i=ft(),l=n?n.length:0,c=[],p=!e&&l>=O&&i===t,v=u||p?f():c;if(p){var h=o(v);h?(i=r,v=h):(p=b,v=u?v:(s(v),c))}for(;++a<l;){var h=n[a],y=u?u(h,a,n):h;(e?!a||v[v.length-1]!==y:0>i(v,y))&&((u||p)&&v.push(y),c.push(h))}return p?(s(v.b),g(v)):u&&s(v),c}function ut(n,t,r,e,u,a){var o=a&&!u;if(!vt(n)&&!o)throw new Yt;if(u||a||e.length||!(Pr.fastBind||mr&&r.length))i=function(){var a=arguments,l=u?this:t; }}else e&&(l=e(f,t),typeof l=="undefined"&&(l=t)),typeof l!="undefined"&&(f=l);n[a]=f})}function rt(n,r,u){var a=-1,i=lt(),f=n?n.length:0,c=[],s=!r&&f>=O&&i===t,v=u||s?l():c;if(s){var h=o(v);h?(i=e,v=h):(s=b,v=u?v:(p(v),c))}for(;++a<f;){var h=n[a],y=u?u(h,a,n):h;(r?!a||v[v.length-1]!==y:0>i(v,y))&&((u||s)&&v.push(y),c.push(h))}return s?(p(v.b),g(v)):u&&p(v),c}function ut(n,t,e,r,u,a){var o=a&&!u;if(!vt(n)&&!o)throw new Yt;if(u||a||r.length||!(Pe.fastBind||me&&e.length))i=function(){var a=arguments,f=u?this:t;
return o&&(n=t[f]),(r.length||e.length)&&(yr.apply(a,r),pr.apply(a,e)),this instanceof i?(l=ot(n.prototype),a=n.apply(l,a),ht(a)?a:l):n.apply(l,a)};else{args=[n,t],pr.apply(args,r);var i=mr.call.apply(mr,args)}if(o){var f=t;t=n}return i}function at(){var n=l();n.g=q,n.b=n.c=n.f=n.h="",n.e="r",n.i=m,n.j=m;for(var t,r=0;t=arguments[r];r++)for(var e in t)n[e]=t[e];r=n.a,n.d=/^[^,]+/.exec(r)[0],t=Kt,r="return function("+r+"){",e="var m,r="+n.d+",C="+n.e+";if(!r)return C;"+n.h+";",n.b?(e+="var s=r.length;m=-1;if("+n.b+"){",Pr.unindexedChars&&(e+="if(q(r)){r=r.split('')}"),e+="while(++m<s){"+n.f+";}}else{"):Pr.nonEnumArgs&&(e+="var s=r.length;m=-1;if(s&&n(r)){while(++m<s){m+='';"+n.f+";}}else{"),Pr.enumPrototypes&&(e+="var E=typeof r=='function';"),Pr.enumErrorProps&&(e+="var D=r===j||r instanceof Error;"); return o&&(n=t[l]),(e.length||r.length)&&(ye.apply(a,e),se.apply(a,r)),this instanceof i?(f=ot(n.prototype),a=n.apply(f,a),ht(a)?a:f):n.apply(f,a)};else{a=[n,t],se.apply(a,e);var i=me.call.apply(me,a)}if(o){var l=t;t=n}return i}function at(){var n=f();n.h=q,n.b=n.c=n.g=n.i="",n.e="s",n.j=m;for(var t,e=0;t=arguments[e];e++)for(var r in t)n[r]=t[r];e=n.a,n.d=/^[^,]+/.exec(e)[0],t=Mt,e="return function("+e+"){",r="var m,s="+n.d+",D="+n.e+";if(!s)return D;"+n.i+";",n.b?(r+="var t=s.length;m=-1;if("+n.b+"){",Pe.unindexedChars&&(r+="if(r(s)){s=s.split('')}"),r+="while(++m<t){"+n.g+";}}else{"):Pe.nonEnumArgs&&(r+="var t=s.length;m=-1;if(t&&o(s)){while(++m<t){m+='';"+n.g+";}}else{"),Pe.enumPrototypes&&(r+="var F=typeof s=='function';"),Pe.enumErrorProps&&(r+="var E=s===j||s instanceof Error;");
var u=[];if(Pr.enumPrototypes&&u.push('!(E&&m=="prototype")'),Pr.enumErrorProps&&u.push('!(D&&(m=="message"||m=="name"))'),n.i&&n.j)e+="var A=-1,B=z[typeof r]&&t(r),s=B?B.length:0;while(++A<s){m=B[A];",u.length&&(e+="if("+u.join("&&")+"){"),e+=n.f+";",u.length&&(e+="}"),e+="}";else if(e+="for(m in r){",n.i&&u.push("l.call(r, m)"),u.length&&(e+="if("+u.join("&&")+"){"),e+=n.f+";",u.length&&(e+="}"),e+="}",Pr.nonEnumShadows){for(e+="if(r!==y){var h=r.constructor,p=r===(h&&h.prototype),e=r===H?G:r===j?i:J.call(r),v=w[e];",k=0;7>k;k++)e+="m='"+n.g[k]+"';if((!(p&&v[m])&&l.call(r,m))",n.i||(e+="||(!v[m]&&r[m]!==y[m])"),e+="){"+n.f+"}"; var u=[];if(Pe.enumPrototypes&&u.push('!(F&&m=="prototype")'),Pe.enumErrorProps&&u.push('!(E&&(m=="message"||m=="name"))'),n.j&&n.f)r+="var B=-1,C=A[typeof s]&&u(s),t=C?C.length:0;while(++B<t){m=C[B];",u.length&&(r+="if("+u.join("&&")+"){"),r+=n.g+";",u.length&&(r+="}"),r+="}";else if(r+="for(m in s){",n.j&&u.push("l.call(s, m)"),u.length&&(r+="if("+u.join("&&")+"){"),r+=n.g+";",u.length&&(r+="}"),r+="}",Pe.nonEnumShadows){for(r+="if(s!==z){var h=s.constructor,q=s===(h&&h.prototype),e=s===I?H:s===j?i:K.call(s),w=x[e];",k=0;7>k;k++)r+="m='"+n.h[k]+"';if((!(q&&w[m])&&l.call(s,m))",n.j||(r+="||(!w[m]&&s[m]!==z[m])"),r+="){"+n.g+"}";
e+="}"}return(n.b||Pr.nonEnumArgs)&&(e+="}"),e+=n.c+";return C",t=t("i,j,l,indicatorObject,n,o,q,t,u,y,z,w,G,H,J",r+e+"}"),g(n),t(H,nr,cr,w,pt,$r,mt,n.j&&Rr,_,tr,X,Br,V,rr,hr)}function ot(n){return ht(n)?dr(n):{}}function it(n){return Tr[n]}function ft(){var n=(n=_.indexOf)===Bt?t:n;return n}function lt(n){var t,r;return!n||hr.call(n)!=M||(t=n.constructor,vt(t)&&!(t instanceof t))||!Pr.argsClass&&pt(n)||!Pr.nodeClass&&c(n)?b:Pr.ownLast?(Kr(n,function(n,t,e){return r=cr.call(e,t),b}),r!==false):(Kr(n,function(n,t){r=t r+="}"}return(n.b||Pe.nonEnumArgs)&&(r+="}"),r+=n.c+";return D",t=t("i,j,l,n,o,p,r,u,v,z,A,x,H,I,K",e+r+"}"),g(n),t(J,ne,ce,C,st,Be,mt,n.f,_,te,X,Ie,V,ee,he)}function ot(n){return ht(n)?de(n):{}}function it(n){return qe[n]}function lt(){var n=(n=_.indexOf)===It?t:n;return n}function ft(n){var t,e;return!n||he.call(n)!=G||(t=n.constructor,vt(t)&&!(t instanceof t))||!Pe.argsClass&&st(n)||!Pe.nodeClass&&c(n)?b:Pe.ownLast?(Me(n,function(n,t,r){return e=ce.call(r,t),b}),e!==false):(Me(n,function(n,t){e=t
}),r===y||cr.call(n,r))}function ct(n){return Wr[n]}function pt(n){return n&&typeof n=="object"?hr.call(n)==T:b}function st(n){var t=[];return Kr(n,function(n,r){vt(n)&&t.push(r)}),t.sort()}function gt(n){for(var t=-1,r=Rr(n),e=r.length,u={};++t<e;){var a=r[t];u[n[a]]=a}return u}function vt(n){return typeof n=="function"}function ht(n){return!(!n||!X[typeof n])}function yt(n){return typeof n=="number"||hr.call(n)==K}function mt(n){return typeof n=="string"||hr.call(n)==V}function dt(n){for(var t=-1,r=Rr(n),e=r.length,u=Gt(e);++t<e;)u[t]=n[r[t]]; }),e===y||ce.call(n,e))}function ct(n){return Te[n]}function st(n){return n&&typeof n=="object"?he.call(n)==T:b}function pt(n){var t=[];return Me(n,function(n,e){vt(n)&&t.push(e)}),t.sort()}function gt(n){for(var t=-1,e=Fe(n),r=e.length,u={};++t<r;){var a=e[t];u[n[a]]=a}return u}function vt(n){return typeof n=="function"}function ht(n){return!(!n||!X[typeof n])}function yt(n){return typeof n=="number"||he.call(n)==M}function mt(n){return typeof n=="string"||he.call(n)==V}function dt(n){for(var t=-1,e=Fe(n),r=e.length,u=Lt(r);++t<r;)u[t]=n[e[t]];
return u}function bt(n,t,r){var e=-1,u=ft(),a=n?n.length:0,o=b;return r=(0>r?wr(0,a+r):r)||0,a&&typeof a=="number"?o=-1<(mt(n)?n.indexOf(t,r):u(n,t,r)):qr(n,function(n){return++e<r?void 0:!(o=n===t)}),o}function _t(n,t,r){var e=m;if(t=_.createCallback(t,r,3),$r(n)){r=-1;for(var u=n.length;++r<u&&(e=!!t(n[r],r,n)););}else qr(n,function(n,r,u){return e=!!t(n,r,u)});return e}function jt(n,t,r){var e=[];if(t=_.createCallback(t,r,3),$r(n)){r=-1;for(var u=n.length;++r<u;){var a=n[r];t(a,r,n)&&e.push(a) return u}function bt(n,t,e){var r=-1,u=lt(),a=n?n.length:0,o=b;return e=(0>e?Ce(0,a+e):e)||0,a&&typeof a=="number"?o=-1<(mt(n)?n.indexOf(t,e):u(n,t,e)):Le(n,function(n){return++r<e?void 0:!(o=n===t)}),o}function _t(n,t,e){var r=m;if(t=_.createCallback(t,e,3),Be(n)){e=-1;for(var u=n.length;++e<u&&(r=!!t(n[e],e,n)););}else Le(n,function(n,e,u){return r=!!t(n,e,u)});return r}function jt(n,t,e){var r=[];if(t=_.createCallback(t,e,3),Be(n)){e=-1;for(var u=n.length;++e<u;){var a=n[e];t(a,e,n)&&r.push(a)
}}else qr(n,function(n,r,u){t(n,r,u)&&e.push(n)});return e}function Ct(n,t,r){if(t=_.createCallback(t,r,3),!$r(n)){var e;return qr(n,function(n,r,u){return t(n,r,u)?(e=n,b):void 0}),e}r=-1;for(var u=n.length;++r<u;){var a=n[r];if(t(a,r,n))return a}}function wt(n,t,r){if(t&&typeof r=="undefined"&&$r(n)){r=-1;for(var e=n.length;++r<e&&t(n[r],r,n)!==false;);}else qr(n,t,r);return n}function kt(n,t,r){var e=-1,u=n?n.length:0,a=Gt(typeof u=="number"?u:0);if(t=_.createCallback(t,r,3),$r(n))for(;++e<u;)a[e]=t(n[e],e,n); }}else Le(n,function(n,e,u){t(n,e,u)&&r.push(n)});return r}function wt(n,t,e){if(t=_.createCallback(t,e,3),!Be(n)){var r;return Le(n,function(n,e,u){return t(n,e,u)?(r=n,b):void 0}),r}e=-1;for(var u=n.length;++e<u;){var a=n[e];if(t(a,e,n))return a}}function Ct(n,t,e){if(t&&typeof e=="undefined"&&Be(n)){e=-1;for(var r=n.length;++e<r&&t(n[e],e,n)!==false;);}else Le(n,t,e);return n}function kt(n,t,e){var r=-1,u=n?n.length:0,a=Lt(typeof u=="number"?u:0);if(t=_.createCallback(t,e,3),Be(n))for(;++r<u;)a[r]=t(n[r],r,n);
else qr(n,function(n,r,u){a[++e]=t(n,r,u)});return a}function xt(n,t,r){var e=-1/0,a=e;if(!t&&$r(n)){r=-1;for(var o=n.length;++r<o;){var i=n[r];i>a&&(a=i)}}else t=!t&&mt(n)?u:_.createCallback(t,r,3),qr(n,function(n,r,u){r=t(n,r,u),r>e&&(e=r,a=n)});return a}function Ot(n,t,r,e){var u=3>arguments.length;if(t=_.createCallback(t,e,4),$r(n)){var a=-1,o=n.length;for(u&&(r=n[++a]);++a<o;)r=t(r,n[a],a,n)}else qr(n,function(n,e,a){r=u?(u=b,n):t(r,n,e,a)});return r}function Et(n,t,r,e){var u=n,a=n?n.length:0,o=3>arguments.length; else Le(n,function(n,e,u){a[++r]=t(n,e,u)});return a}function xt(n,t,e){var r=-1/0,a=r;if(!t&&Be(n)){e=-1;for(var o=n.length;++e<o;){var i=n[e];i>a&&(a=i)}}else t=!t&&mt(n)?u:_.createCallback(t,e,3),Le(n,function(n,e,u){e=t(n,e,u),e>r&&(r=e,a=n)});return a}function Ot(n,t,e,r){var u=3>arguments.length;if(t=_.createCallback(t,r,4),Be(n)){var a=-1,o=n.length;for(u&&(e=n[++a]);++a<o;)e=t(e,n[a],a,n)}else Le(n,function(n,r,a){e=u?(u=b,n):t(e,n,r,a)});return e}function Et(n,t,e,r){var u=n,a=n?n.length:0,o=3>arguments.length;
if(typeof a!="number")var i=Rr(n),a=i.length;else Pr.unindexedChars&&mt(n)&&(u=n.split(""));return t=_.createCallback(t,e,4),wt(n,function(n,e,f){e=i?i[--a]:--a,r=o?(o=b,u[e]):t(r,u[e],e,f)}),r}function St(n,t,r){var e;if(t=_.createCallback(t,r,3),$r(n)){r=-1;for(var u=n.length;++r<u&&!(e=t(n[r],r,n)););}else qr(n,function(n,r,u){return!(e=t(n,r,u))});return!!e}function At(n){var e=-1,u=ft(),a=n?n.length:0,i=Y(arguments,m,m,1),f=[],l=a>=O&&u===t;if(l){var c=o(i);c?(u=r,i=c):l=b}for(;++e<a;)c=n[e],0>u(i,c)&&f.push(c); if(typeof a!="number")var i=Fe(n),a=i.length;else Pe.unindexedChars&&mt(n)&&(u=n.split(""));return t=_.createCallback(t,r,4),Ct(n,function(n,r,l){r=i?i[--a]:--a,e=o?(o=b,u[r]):t(e,u[r],r,l)}),e}function St(n,t,e){var r;if(t=_.createCallback(t,e,3),Be(n)){e=-1;for(var u=n.length;++e<u&&!(r=t(n[e],e,n)););}else Le(n,function(n,e,u){return!(r=t(n,e,u))});return!!r}function At(n){var r=-1,u=lt(),a=n?n.length:0,i=Y(arguments,m,m,1),l=[],f=a>=O&&u===t;if(f){var c=o(i);c?(u=e,i=c):f=b}for(;++r<a;)c=n[r],0>u(i,c)&&l.push(c);
return l&&g(i),f}function It(n,t,r){if(n){var e=0,u=n.length;if(typeof t!="number"&&t!=d){var a=-1;for(t=_.createCallback(t,r,3);++a<u&&t(n[a],a,n);)e++}else if(e=t,e==d||r)return n[0];return v(n,0,kr(wr(0,e),u))}}function Bt(n,r,e){if(typeof e=="number"){var u=n?n.length:0;e=0>e?wr(0,u+e):e||0}else if(e)return e=Nt(n,r),n[e]===r?e:-1;return n?t(n,r,e):-1}function Pt(n,t,r){if(typeof t!="number"&&t!=d){var e=0,u=-1,a=n?n.length:0;for(t=_.createCallback(t,r,3);++u<a&&t(n[u],u,n);)e++}else e=t==d||r?1:wr(0,t); return f&&g(i),l}function Dt(n,t,e){if(n){var r=0,u=n.length;if(typeof t!="number"&&t!=d){var a=-1;for(t=_.createCallback(t,e,3);++a<u&&t(n[a],a,n);)r++}else if(r=t,r==d||e)return n[0];return v(n,0,ke(Ce(0,r),u))}}function It(n,e,r){if(typeof r=="number"){var u=n?n.length:0;r=0>r?Ce(0,u+r):r||0}else if(r)return r=Bt(n,e),n[r]===e?r:-1;return n?t(n,e,r):-1}function Pt(n,t,e){if(typeof t!="number"&&t!=d){var r=0,u=-1,a=n?n.length:0;for(t=_.createCallback(t,e,3);++u<a&&t(n[u],u,n);)r++}else r=t==d||e?1:Ce(0,t);
return v(n,e)}function Nt(n,t,r,e){var u=0,a=n?n.length:u;for(r=r?_.createCallback(r,e,1):Tt,t=r(t);u<a;)e=u+a>>>1,r(n[e])<t?u=e+1:a=e;return u}function zt(n,t,r,e){return typeof t!="boolean"&&t!=d&&(e=r,r=e&&e[t]===n?y:t,t=b),r!=d&&(r=_.createCallback(r,e,3)),et(n,t,r)}function Ft(){for(var n=1<arguments.length?arguments:arguments[0],t=-1,r=n?xt(Vr(n,"length")):0,e=Gt(0>r?0:r);++t<r;)e[t]=Vr(n,t);return e}function $t(n,t){for(var r=-1,e=n?n.length:0,u={};++r<e;){var a=n[r];t?u[a]=t[r]:a&&(u[a[0]]=a[1]) return v(n,r)}function Bt(n,t,e,r){var u=0,a=n?n.length:u;for(e=e?_.createCallback(e,r,1):Tt,t=e(t);u<a;)r=u+a>>>1,e(n[r])<t?u=r+1:a=r;return u}function Nt(n,t,e,r){return typeof t!="boolean"&&t!=d&&(r=e,e=r&&r[t]===n?y:t,t=b),e!=d&&(e=_.createCallback(e,r,3)),rt(n,t,e)}function Ft(){for(var n=1<arguments.length?arguments:arguments[0],t=-1,e=n?xt(Ve(n,"length")):0,r=Lt(0>e?0:e);++t<e;)r[t]=Ve(n,t);return r}function $t(n,t){for(var e=-1,r=n?n.length:0,u={};++e<r;){var a=n[e];t?u[a]=t[e]:a&&(u[a[0]]=a[1])
}return u}function Dt(n,t){return ut(n,t,Er.call(arguments,2),[])}function Rt(n,t,r){function e(){or(s),or(g),l=0,s=g=d}function u(){var t=v&&(!h||1<l);e(),t&&(p!==false&&(c=new Jt),i=n.apply(f,o))}function a(){e(),(v||p!==t)&&(c=new Jt,i=n.apply(f,o))}var o,i,f,l=0,c=0,p=b,s=d,g=d,v=m;if(t=wr(0,t||0),r===m)var h=m,v=b;else ht(r)&&(h=r.leading,p="maxWait"in r&&wr(t,r.maxWait||0),v="trailing"in r?r.trailing:v);return function(){if(o=arguments,f=this,l++,or(g),p===false)h&&2>l&&(i=n.apply(f,o));else{var r=new Jt; }return u}function zt(n,t){return ut(n,t,Ee.call(arguments,2),[])}function Rt(n,t,e){function r(){oe(p),oe(g),f=0,p=g=d}function u(){var t=v&&(!h||1<f);r(),t&&(s!==false&&(c=new Ht),i=n.apply(l,o))}function a(){r(),(v||s!==t)&&(c=new Ht,i=n.apply(l,o))}var o,i,l,f=0,c=0,s=b,p=d,g=d,v=m;if(t=Ce(0,t||0),e===m)var h=m,v=b;else ht(e)&&(h=e.leading,s="maxWait"in e&&Ce(t,e.maxWait||0),v="trailing"in e?e.trailing:v);return function(){if(o=arguments,l=this,f++,oe(g),s===false)h&&2>f&&(i=n.apply(l,o));else{var e=new Ht;
!s&&!h&&(c=r);var e=p-(r-c);0<e?s||(s=vr(a,e)):(or(s),s=d,c=r,i=n.apply(f,o))}return t!==p&&(g=vr(u,t)),i}}function qt(n){var t=Er.call(arguments,1);return vr(function(){n.apply(y,t)},1)}function Tt(n){return n}function Wt(n,t){t||(t=n,n=_);var r=vt(n);wt(st(t),function(e){var u=n[e]=t[e];r&&(n.prototype[e]=function(){var t=this.__wrapped__,r=[t];return pr.apply(r,arguments),r=u.apply(n,r),t&&typeof t=="object"&&t===r?this:new j(r)})})}function Lt(){return this.__wrapped__}e=e?rt.defaults(n.Object(),e,rt.pick(n,R)):n; !p&&!h&&(c=e);var r=s-(e-c);0<r?p||(p=ve(a,r)):(oe(p),p=d,c=e,i=n.apply(l,o))}return t!==s&&(g=ve(u,t)),i}}function qt(n){var t=Ee.call(arguments,1);return ve(function(){n.apply(y,t)},1)}function Tt(n){return n}function Wt(n,t){t||(t=n,n=_);var e=vt(n);Ct(pt(t),function(r){var u=n[r]=t[r];e&&(n.prototype[r]=function(){var t=this.__wrapped__,e=[t];return se.apply(e,arguments),e=u.apply(n,e),t&&typeof t=="object"&&t===e?this:new j(e)})})}function Kt(){return this.__wrapped__}r=r?et.defaults(n.Object(),r,et.pick(n,R)):n;
var Gt=e.Array,Ht=e.Boolean,Jt=e.Date,Kt=e.Function,Mt=e.Math,Ut=e.Number,Vt=e.Object,Qt=e.RegExp,Xt=e.String,Yt=e.TypeError,Zt=[],nr=e.Error.prototype,tr=Vt.prototype,rr=Xt.prototype,er=e._,ur=Qt("^"+Xt(tr.valueOf).replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/valueOf|for [^\]]+/g,".+?")+"$"),ar=Mt.ceil,or=e.clearTimeout,ir=ur.test(ir=Vt.defineProperty)&&ir,fr=Mt.floor,lr=ur.test(lr=Vt.getPrototypeOf)&&lr,cr=tr.hasOwnProperty,pr=Zt.push,sr=tr.propertyIsEnumerable,gr=e.setImmediate,vr=e.setTimeout,hr=tr.toString,yr=Zt.unshift,mr=ur.test(mr=hr.bind)&&mr,dr=ur.test(dr=Vt.create)&&dr,br=ur.test(br=Gt.isArray)&&br,_r=e.isFinite,jr=e.isNaN,Cr=ur.test(Cr=Vt.keys)&&Cr,wr=Mt.max,kr=Mt.min,xr=e.parseInt,Or=Mt.random,Er=Zt.slice,Sr=ur.test(e.attachEvent),Ar=mr&&!/\n|true/.test(mr+Sr),Ir={}; var Lt=r.Array,Jt=r.Boolean,Ht=r.Date,Mt=r.Function,Gt=r.Math,Ut=r.Number,Vt=r.Object,Qt=r.RegExp,Xt=r.String,Yt=r.TypeError,Zt=[],ne=r.Error.prototype,te=Vt.prototype,ee=Xt.prototype,re=r._,ue=Qt("^"+Xt(te.valueOf).replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/valueOf|for [^\]]+/g,".+?")+"$"),ae=Gt.ceil,oe=r.clearTimeout,ie=ue.test(ie=Vt.defineProperty)&&ie,le=Gt.floor,fe=ue.test(fe=Vt.getPrototypeOf)&&fe,ce=te.hasOwnProperty,se=Zt.push,pe=te.propertyIsEnumerable,ge=r.setImmediate,ve=r.setTimeout,he=te.toString,ye=Zt.unshift,me=ue.test(me=he.bind)&&me,de=ue.test(de=Vt.create)&&de,be=ue.test(be=Lt.isArray)&&be,_e=r.isFinite,je=r.isNaN,we=ue.test(we=Vt.keys)&&we,Ce=Gt.max,ke=Gt.min,xe=r.parseInt,Oe=Gt.random,Ee=Zt.slice,Se=ue.test(r.attachEvent),Ae=me&&!/\n|true/.test(me+Se),De={};
Ir[W]=Gt,Ir[L]=Ht,Ir[G]=Jt,Ir[J]=Kt,Ir[M]=Vt,Ir[K]=Ut,Ir[U]=Qt,Ir[V]=Xt;var Br={};Br[W]=Br[G]=Br[K]={constructor:m,toLocaleString:m,toString:m,valueOf:m},Br[L]=Br[V]={constructor:m,toString:m,valueOf:m},Br[H]=Br[J]=Br[U]={constructor:m,toString:m},Br[M]={constructor:m},function(){for(var n=q.length;n--;){var t,r=q[n];for(t in Br)cr.call(Br,t)&&!cr.call(Br[t],r)&&(Br[t][r]=b)}}(),j.prototype=_.prototype;var Pr=_.support={};!function(){function n(){this.x=1}var t={0:1,length:1},r=[];n.prototype={valueOf:1}; De[W]=Lt,De[K]=Jt,De[L]=Ht,De[H]=Mt,De[G]=Vt,De[M]=Ut,De[U]=Qt,De[V]=Xt;var Ie={};Ie[W]=Ie[L]=Ie[M]={constructor:m,toLocaleString:m,toString:m,valueOf:m},Ie[K]=Ie[V]={constructor:m,toString:m,valueOf:m},Ie[J]=Ie[H]=Ie[U]={constructor:m,toString:m},Ie[G]={constructor:m},function(){for(var n=q.length;n--;){var t,e=q[n];for(t in Ie)ce.call(Ie,t)&&!ce.call(Ie[t],e)&&(Ie[t][e]=b)}}(),j.prototype=_.prototype;var Pe=_.support={};!function(){function n(){this.x=1}var t={0:1,length:1},e=[];n.prototype={valueOf:1};
for(var e in new n)r.push(e);for(e in arguments);Pr.argsObject=arguments.constructor==Vt&&!(arguments instanceof Gt),Pr.argsClass=hr.call(arguments)==T,Pr.enumErrorProps=sr.call(nr,"message")||sr.call(nr,"name"),Pr.enumPrototypes=sr.call(n,"prototype"),Pr.fastBind=mr&&!Ar,Pr.ownLast="x"!=r[0],Pr.nonEnumArgs=0!=e,Pr.nonEnumShadows=!/valueOf/.test(r),Pr.spliceObjects=(Zt.splice.call(t,0,1),!t[0]),Pr.unindexedChars="xx"!="x"[0]+Vt("x")[0];try{Pr.nodeClass=!(hr.call(document)==M&&!({toString:0}+""))}catch(u){Pr.nodeClass=m for(var r in new n)e.push(r);for(r in arguments);Pe.argsObject=arguments.constructor==Vt&&!(arguments instanceof Lt),Pe.argsClass=he.call(arguments)==T,Pe.enumErrorProps=pe.call(ne,"message")||pe.call(ne,"name"),Pe.enumPrototypes=pe.call(n,"prototype"),Pe.fastBind=me&&!Ae,Pe.ownLast="x"!=e[0],Pe.nonEnumArgs=0!=r,Pe.nonEnumShadows=!/valueOf/.test(e),Pe.spliceObjects=(Zt.splice.call(t,0,1),!t[0]),Pe.unindexedChars="xx"!="x"[0]+Vt("x")[0];try{Pe.nodeClass=!(he.call(document)==G&&!({toString:0}+""))}catch(u){Pe.nodeClass=m
}}(1),_.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:z,variable:"",imports:{_:_}};var Nr={a:"x,F,k",h:"var a=arguments,b=0,c=typeof k=='number'?2:a.length;while(++b<c){r=a[b];if(r&&z[typeof r]){",f:"if(typeof C[m]=='undefined')C[m]=r[m]",c:"}}"},zr={a:"f,d,I",h:"d=d&&typeof I=='undefined'?d:u['createCallback'](d,I,3)",b:"typeof s=='number'",f:"if(d(r[m],m,f)===false)return C"},Fr={h:"if(!z[typeof r])return C;"+zr.h,b:b};dr||(ot=function(n){if(ht(n)){p.prototype=n; }}(1),_.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:N,variable:"",imports:{_:_}},de||(ot=function(n){if(ht(n)){s.prototype=n;var t=new s;s.prototype=d}return t||{}}),Pe.argsClass||(st=function(n){return n&&typeof n=="object"?ce.call(n,"callee"):b});var Be=be||function(n){return n&&typeof n=="object"?he.call(n)==W:b},Ne=at({a:"y",e:"[]",i:"if(!(A[typeof y]))return D",g:"D.push(m)"}),Fe=we?function(n){return ht(n)?Pe.enumPrototypes&&typeof n=="function"||Pe.nonEnumArgs&&n.length&&st(n)?Ne(n):we(n):[]
var t=new p;p.prototype=d}return t||{}}),Pr.argsClass||(pt=function(n){return n&&typeof n=="object"?cr.call(n,"callee"):b});var $r=br||function(n){return n&&typeof n=="object"?hr.call(n)==W:b},Dr=at({a:"x",e:"[]",h:"if(!(z[typeof x]))return C",f:"C.push(m)",j:b}),Rr=Cr?function(n){return ht(n)?Pr.enumPrototypes&&typeof n=="function"||Pr.nonEnumArgs&&n.length&&pt(n)?Dr(n):Cr(n):[]}:Dr,qr=at(zr),Tr={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Wr=gt(Tr),Lr=Qt("("+Rr(Wr).join("|")+")","g"),Gr=Qt("["+Rr(Tr).join("")+"]","g"),Hr=at(Nr,{h:Nr.h.replace(";",";if(c>3&&typeof a[c-2]=='function'){var d=u.createCallback(a[--c-1],a[c--],2)}else if(c>2&&typeof a[c-1]=='function'){d=a[--c]}"),f:"C[m]=d?d(C[m],r[m]):r[m]"}),Jr=at(Nr),Kr=at(zr,Fr,{i:b}),Mr=at(zr,Fr); }:Ne,$e={a:"f,d,J",i:"d=d&&typeof J=='undefined'?d:v.createCallback(d,J,3)",b:"typeof t=='number'",u:Fe,g:"if(d(s[m],m,f)===false)return D"},ze={a:"y,G,k",i:"var a=arguments,b=0,c=typeof k=='number'?2:a.length;while(++b<c){s=a[b];if(s&&A[typeof s]){",u:Fe,g:"if(typeof D[m]=='undefined')D[m]=s[m]",c:"}}"},Re={i:"if(!A[typeof s])return D;"+$e.i,b:b},qe={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Te=gt(qe),We=Qt("("+Fe(Te).join("|")+")","g"),Ke=Qt("["+Fe(qe).join("")+"]","g"),Le=at($e),Je=at(ze,{i:ze.i.replace(";",";if(c>3&&typeof a[c-2]=='function'){var d=v.createCallback(a[--c-1],a[c--],2)}else if(c>2&&typeof a[c-1]=='function'){d=a[--c]}"),g:"D[m]=d?d(D[m],s[m]):s[m]"}),He=at(ze),Me=at($e,Re,{j:b}),Ge=at($e,Re);
vt(/x/)&&(vt=function(n){return typeof n=="function"&&hr.call(n)==J});var Ur=lr?function(n){if(!n||hr.call(n)!=M||!Pr.argsClass&&pt(n))return b;var t=n.valueOf,r=typeof t=="function"&&(r=lr(t))&&lr(r);return r?n==r||lr(n)==r:lt(n)}:lt,Vr=kt;Ar&&nt&&typeof gr=="function"&&(qt=Dt(gr,e));var Qr=8==xr(S+"08")?xr:function(n,t){return xr(mt(n)?n.replace(F,""):n,t||0)};return _.after=function(n,t){return function(){return 1>--n?t.apply(this,arguments):void 0}},_.assign=Hr,_.at=function(n){var t=-1,r=Y(arguments,m,b,1),e=r.length,u=Gt(e); vt(/x/)&&(vt=function(n){return typeof n=="function"&&he.call(n)==H});var Ue=fe?function(n){if(!n||he.call(n)!=G||!Pe.argsClass&&st(n))return b;var t=n.valueOf,e=typeof t=="function"&&(e=fe(t))&&fe(e);return e?n==e||fe(n)==e:ft(n)}:ft,Ve=kt;Ae&&nt&&typeof ge=="function"&&(qt=zt(ge,r));var Qe=8==xe(S+"08")?xe:function(n,t){return xe(mt(n)?n.replace(F,""):n,t||0)};return _.after=function(n,t){return function(){return 1>--n?t.apply(this,arguments):void 0}},_.assign=Je,_.at=function(n){var t=-1,e=Y(arguments,m,b,1),r=e.length,u=Lt(r);
for(Pr.unindexedChars&&mt(n)&&(n=n.split(""));++t<e;)u[t]=n[r[t]];return u},_.bind=Dt,_.bindAll=function(n){for(var t=1<arguments.length?Y(arguments,m,b,1):st(n),r=-1,e=t.length;++r<e;){var u=t[r];n[u]=Dt(n[u],n)}return n},_.bindKey=function(n,t){return ut(n,t,Er.call(arguments,2),[],b,m)},_.compact=function(n){for(var t=-1,r=n?n.length:0,e=[];++t<r;){var u=n[t];u&&e.push(u)}return e},_.compose=function(){var n=arguments;return function(){for(var t=arguments,r=n.length;r--;)t=[n[r].apply(this,t)]; for(Pe.unindexedChars&&mt(n)&&(n=n.split(""));++t<r;)u[t]=n[e[t]];return u},_.bind=zt,_.bindAll=function(n){for(var t=1<arguments.length?Y(arguments,m,b,1):pt(n),e=-1,r=t.length;++e<r;){var u=t[e];n[u]=zt(n[u],n)}return n},_.bindKey=function(n,t){return ut(n,t,Ee.call(arguments,2),[],b,m)},_.compact=function(n){for(var t=-1,e=n?n.length:0,r=[];++t<e;){var u=n[t];u&&r.push(u)}return r},_.compose=function(){var n=arguments;return function(){for(var t=arguments,e=n.length;e--;)t=[n[e].apply(this,t)];
return t[0]}},_.countBy=function(n,t,r){var e={};return t=_.createCallback(t,r,3),wt(n,function(n,r,u){r=Xt(t(n,r,u)),cr.call(e,r)?e[r]++:e[r]=1}),e},_.createCallback=function(n,t,r){if(n==d)return Tt;var e=typeof n;if("function"!=e){if("object"!=e)return function(t){return t[n]};var u=Rr(n),a=u[0],o=n[a];return 1!=u.length||o!==o||ht(o)?function(t){for(var r=u.length,e=b;r--&&(e=Z(t[u[r]],n[u[r]],d,m)););return e}:function(n){return n=n[a],o===n&&(0!==o||1/o==1/n)}}if(typeof t=="undefined")return n; return t[0]}},_.countBy=function(n,t,e){var r={};return t=_.createCallback(t,e,3),Ct(n,function(n,e,u){e=Xt(t(n,e,u)),ce.call(r,e)?r[e]++:r[e]=1}),r},_.createCallback=function(n,t,e){if(n==d)return Tt;var r=typeof n;if("function"!=r){if("object"!=r)return function(t){return t[n]};var u=Fe(n),a=u[0],o=n[a];return 1!=u.length||o!==o||ht(o)?function(t){for(var e=u.length,r=b;e--&&(r=Z(t[u[e]],n[u[e]],d,m)););return r}:function(n){return n=n[a],o===n&&(0!==o||1/o==1/n)}}if(typeof t=="undefined")return n;
switch(r){case 1:return function(r){return n.call(t,r)};case 2:return function(r,e){return n.call(t,r,e)};case 3:return function(r,e,u){return n.call(t,r,e,u)};case 4:return function(r,e,u,a){return n.call(t,r,e,u,a)}}return function(){return n.apply(t,arguments)}},_.debounce=Rt,_.defaults=Jr,_.defer=qt,_.delay=function(n,t){var r=Er.call(arguments,2);return vr(function(){n.apply(y,r)},t)},_.difference=At,_.filter=jt,_.flatten=function(n,t,r,e){return typeof t!="boolean"&&t!=d&&(e=r,r=e&&e[t]===n?y:t,t=b),r!=d&&(n=kt(n,r,e)),Y(n,t) switch(e){case 1:return function(e){return n.call(t,e)};case 2:return function(e,r){return n.call(t,e,r)};case 3:return function(e,r,u){return n.call(t,e,r,u)};case 4:return function(e,r,u,a){return n.call(t,e,r,u,a)}}return function(){return n.apply(t,arguments)}},_.debounce=Rt,_.defaults=He,_.defer=qt,_.delay=function(n,t){var e=Ee.call(arguments,2);return ve(function(){n.apply(y,e)},t)},_.difference=At,_.filter=jt,_.flatten=function(n,t,e,r){return typeof t!="boolean"&&t!=d&&(r=e,e=r&&r[t]===n?y:t,t=b),e!=d&&(n=kt(n,e,r)),Y(n,t)
},_.forEach=wt,_.forIn=Kr,_.forOwn=Mr,_.functions=st,_.groupBy=function(n,t,r){var e={};return t=_.createCallback(t,r,3),wt(n,function(n,r,u){r=Xt(t(n,r,u)),(cr.call(e,r)?e[r]:e[r]=[]).push(n)}),e},_.initial=function(n,t,r){if(!n)return[];var e=0,u=n.length;if(typeof t!="number"&&t!=d){var a=u;for(t=_.createCallback(t,r,3);a--&&t(n[a],a,n);)e++}else e=t==d||r?1:t||e;return v(n,0,kr(wr(0,u-e),u))},_.intersection=function(n){for(var e=arguments,u=e.length,a=-1,i=f(),l=-1,c=ft(),p=n?n.length:0,v=[],h=f();++a<u;){var y=e[a]; },_.forEach=Ct,_.forIn=Me,_.forOwn=Ge,_.functions=pt,_.groupBy=function(n,t,e){var r={};return t=_.createCallback(t,e,3),Ct(n,function(n,e,u){e=Xt(t(n,e,u)),(ce.call(r,e)?r[e]:r[e]=[]).push(n)}),r},_.initial=function(n,t,e){if(!n)return[];var r=0,u=n.length;if(typeof t!="number"&&t!=d){var a=u;for(t=_.createCallback(t,e,3);a--&&t(n[a],a,n);)r++}else r=t==d||e?1:t||r;return v(n,0,ke(Ce(0,u-r),u))},_.intersection=function(n){for(var r=arguments,u=r.length,a=-1,i=l(),f=-1,c=lt(),s=n?n.length:0,v=[],h=l();++a<u;){var y=r[a];
i[a]=c===t&&(y?y.length:0)>=O&&o(a?e[a]:h)}n:for(;++l<p;){var m=i[0],y=n[l];if(0>(m?r(m,y):c(h,y))){for(a=u,(m||h).push(y);--a;)if(m=i[a],0>(m?r(m,y):c(e[a],y)))continue n;v.push(y)}}for(;u--;)(m=i[u])&&g(m);return s(i),s(h),v},_.invert=gt,_.invoke=function(n,t){var r=Er.call(arguments,2),e=-1,u=typeof t=="function",a=n?n.length:0,o=Gt(typeof a=="number"?a:0);return wt(n,function(n){o[++e]=(u?t:n[t]).apply(n,r)}),o},_.keys=Rr,_.map=kt,_.max=xt,_.memoize=function(n,t){function r(){var e=r.cache,u=x+(t?t.apply(this,arguments):arguments[0]); i[a]=c===t&&(y?y.length:0)>=O&&o(a?r[a]:h)}n:for(;++f<s;){var m=i[0],y=n[f];if(0>(m?e(m,y):c(h,y))){for(a=u,(m||h).push(y);--a;)if(m=i[a],0>(m?e(m,y):c(r[a],y)))continue n;v.push(y)}}for(;u--;)(m=i[u])&&g(m);return p(i),p(h),v},_.invert=gt,_.invoke=function(n,t){var e=Ee.call(arguments,2),r=-1,u=typeof t=="function",a=n?n.length:0,o=Lt(typeof a=="number"?a:0);return Ct(n,function(n){o[++r]=(u?t:n[t]).apply(n,e)}),o},_.keys=Fe,_.map=kt,_.max=xt,_.memoize=function(n,t){function e(){var r=e.cache,u=x+(t?t.apply(this,arguments):arguments[0]);
return cr.call(e,u)?e[u]:e[u]=n.apply(this,arguments)}return r.cache={},r},_.merge=function(n){var t=arguments,r=2;if(!ht(n))return n;if("number"!=typeof t[2]&&(r=t.length),3<r&&"function"==typeof t[r-2])var e=_.createCallback(t[--r-1],t[r--],2);else 2<r&&"function"==typeof t[r-1]&&(e=t[--r]);for(var t=Er.call(arguments,1,r),u=-1,a=f(),o=f();++u<r;)tt(n,t[u],e,a,o);return s(a),s(o),n},_.min=function(n,t,r){var e=1/0,a=e;if(!t&&$r(n)){r=-1;for(var o=n.length;++r<o;){var i=n[r];i<a&&(a=i)}}else t=!t&&mt(n)?u:_.createCallback(t,r,3),qr(n,function(n,r,u){r=t(n,r,u),r<e&&(e=r,a=n) return ce.call(r,u)?r[u]:r[u]=n.apply(this,arguments)}return e.cache={},e},_.merge=function(n){var t=arguments,e=2;if(!ht(n))return n;if("number"!=typeof t[2]&&(e=t.length),3<e&&"function"==typeof t[e-2])var r=_.createCallback(t[--e-1],t[e--],2);else 2<e&&"function"==typeof t[e-1]&&(r=t[--e]);for(var t=Ee.call(arguments,1,e),u=-1,a=l(),o=l();++u<e;)tt(n,t[u],r,a,o);return p(a),p(o),n},_.min=function(n,t,e){var r=1/0,a=r;if(!t&&Be(n)){e=-1;for(var o=n.length;++e<o;){var i=n[e];i<a&&(a=i)}}else t=!t&&mt(n)?u:_.createCallback(t,e,3),Le(n,function(n,e,u){e=t(n,e,u),e<r&&(r=e,a=n)
});return a},_.omit=function(n,t,r){var e=ft(),u=typeof t=="function",a={};if(u)t=_.createCallback(t,r,3);else var o=Y(arguments,m,b,1);return Kr(n,function(n,r,i){(u?!t(n,r,i):0>e(o,r))&&(a[r]=n)}),a},_.once=function(n){var t,r;return function(){return t?r:(t=m,r=n.apply(this,arguments),n=d,r)}},_.pairs=function(n){for(var t=-1,r=Rr(n),e=r.length,u=Gt(e);++t<e;){var a=r[t];u[t]=[a,n[a]]}return u},_.partial=function(n){return ut(n,d,Er.call(arguments,1),[],m)},_.partialRight=function(n){return ut(n,d,[],Er.call(arguments,1),m,m) });return a},_.omit=function(n,t,e){var r=lt(),u=typeof t=="function",a={};if(u)t=_.createCallback(t,e,3);else var o=Y(arguments,m,b,1);return Me(n,function(n,e,i){(u?!t(n,e,i):0>r(o,e))&&(a[e]=n)}),a},_.once=function(n){var t,e;return function(){return t?e:(t=m,e=n.apply(this,arguments),n=d,e)}},_.pairs=function(n){for(var t=-1,e=Fe(n),r=e.length,u=Lt(r);++t<r;){var a=e[t];u[t]=[a,n[a]]}return u},_.partial=function(n){return ut(n,d,Ee.call(arguments,1),[],m)},_.partialRight=function(n){return ut(n,d,[],Ee.call(arguments,1),m,m)
},_.pick=function(n,t,r){var e={};if(typeof t!="function")for(var u=-1,a=Y(arguments,m,b,1),o=ht(n)?a.length:0;++u<o;){var i=a[u];i in n&&(e[i]=n[i])}else t=_.createCallback(t,r,3),Kr(n,function(n,r,u){t(n,r,u)&&(e[r]=n)});return e},_.pluck=Vr,_.range=function(n,t,r){n=+n||0,r=+r||1,t==d&&(t=n,n=0);var e=-1;t=wr(0,ar((t-n)/r));for(var u=Gt(t);++e<t;)u[e]=n,n+=r;return u},_.reject=function(n,t,r){return t=_.createCallback(t,r,3),jt(n,function(n,r,e){return!t(n,r,e)})},_.rest=Pt,_.shuffle=function(n){var t=-1,r=n?n.length:0,e=Gt(typeof r=="number"?r:0); },_.pick=function(n,t,e){var r={};if(typeof t!="function")for(var u=-1,a=Y(arguments,m,b,1),o=ht(n)?a.length:0;++u<o;){var i=a[u];i in n&&(r[i]=n[i])}else t=_.createCallback(t,e,3),Me(n,function(n,e,u){t(n,e,u)&&(r[e]=n)});return r},_.pluck=Ve,_.range=function(n,t,e){n=+n||0,e=+e||1,t==d&&(t=n,n=0);var r=-1;t=Ce(0,ae((t-n)/e));for(var u=Lt(t);++r<t;)u[r]=n,n+=e;return u},_.reject=function(n,t,e){return t=_.createCallback(t,e,3),jt(n,function(n,e,r){return!t(n,e,r)})},_.rest=Pt,_.shuffle=function(n){var t=-1,e=n?n.length:0,r=Lt(typeof e=="number"?e:0);
return wt(n,function(n){var r=fr(Or()*(++t+1));e[t]=e[r],e[r]=n}),e},_.sortBy=function(n,t,r){var e=-1,u=n?n.length:0,o=Gt(typeof u=="number"?u:0);for(t=_.createCallback(t,r,3),wt(n,function(n,r,u){var a=o[++e]=l();a.l=t(n,r,u),a.m=e,a.n=n}),u=o.length,o.sort(a);u--;)n=o[u],o[u]=n.n,g(n);return o},_.tap=function(n,t){return t(n),n},_.throttle=function(n,t,r){var e=m,u=m;return r===false?e=b:ht(r)&&(e="leading"in r?r.leading:e,u="trailing"in r?r.trailing:u),r=l(),r.leading=e,r.maxWait=t,r.trailing=u,n=Rt(n,t,r),g(r),n return Ct(n,function(n){var e=le(Oe()*(++t+1));r[t]=r[e],r[e]=n}),r},_.sortBy=function(n,t,e){var r=-1,u=n?n.length:0,o=Lt(typeof u=="number"?u:0);for(t=_.createCallback(t,e,3),Ct(n,function(n,e,u){var a=o[++r]=f();a.l=t(n,e,u),a.m=r,a.n=n}),u=o.length,o.sort(a);u--;)n=o[u],o[u]=n.n,g(n);return o},_.tap=function(n,t){return t(n),n},_.throttle=function(n,t,e){var r=m,u=m;return e===false?r=b:ht(e)&&(r="leading"in e?e.leading:r,u="trailing"in e?e.trailing:u),e=f(),e.leading=r,e.maxWait=t,e.trailing=u,n=Rt(n,t,e),g(e),n
},_.times=function(n,t,r){n=-1<(n=+n)?n:0;var e=-1,u=Gt(n);for(t=_.createCallback(t,r,1);++e<n;)u[e]=t(e);return u},_.toArray=function(n){return n&&typeof n.length=="number"?Pr.unindexedChars&&mt(n)?n.split(""):v(n):dt(n)},_.transform=function(n,t,r,e){var u=$r(n);return t=_.createCallback(t,e,4),r==d&&(u?r=[]:(e=n&&n.constructor,r=ot(e&&e.prototype))),(u?qr:Mr)(n,function(n,e,u){return t(r,n,e,u)}),r},_.union=function(){return et(Y(arguments,m,m))},_.uniq=zt,_.values=dt,_.where=jt,_.without=function(n){return At(n,Er.call(arguments,1)) },_.times=function(n,t,e){n=-1<(n=+n)?n:0;var r=-1,u=Lt(n);for(t=_.createCallback(t,e,1);++r<n;)u[r]=t(r);return u},_.toArray=function(n){return n&&typeof n.length=="number"?Pe.unindexedChars&&mt(n)?n.split(""):v(n):dt(n)},_.transform=function(n,t,e,r){var u=Be(n);return t=_.createCallback(t,r,4),e==d&&(u?e=[]:(r=n&&n.constructor,e=ot(r&&r.prototype))),(u?Le:Ge)(n,function(n,r,u){return t(e,n,r,u)}),e},_.union=function(){return rt(Y(arguments,m,m))},_.uniq=Nt,_.values=dt,_.where=jt,_.without=function(n){return At(n,Ee.call(arguments,1))
},_.wrap=function(n,t){return function(){var r=[n];return pr.apply(r,arguments),t.apply(this,r)}},_.zip=Ft,_.zipObject=$t,_.collect=kt,_.drop=Pt,_.each=wt,_.extend=Hr,_.methods=st,_.object=$t,_.select=jt,_.tail=Pt,_.unique=zt,_.unzip=Ft,Wt(_),_.chain=_,_.prototype.chain=function(){return this},_.clone=function(n,t,r,e){return typeof t!="boolean"&&t!=d&&(e=r,r=t,t=b),E(n,t,typeof r=="function"&&_.createCallback(r,e,1))},_.cloneDeep=function(n,t,r){return E(n,m,typeof t=="function"&&_.createCallback(t,r,1)) },_.wrap=function(n,t){return function(){var e=[n];return se.apply(e,arguments),t.apply(this,e)}},_.zip=Ft,_.zipObject=$t,_.collect=kt,_.drop=Pt,_.each=Ct,_.extend=Je,_.methods=pt,_.object=$t,_.select=jt,_.tail=Pt,_.unique=Nt,_.unzip=Ft,Wt(_),_.chain=_,_.prototype.chain=function(){return this},_.clone=function(n,t,e,r){return typeof t!="boolean"&&t!=d&&(r=e,e=t,t=b),E(n,t,typeof e=="function"&&_.createCallback(e,r,1))},_.cloneDeep=function(n,t,e){return E(n,m,typeof t=="function"&&_.createCallback(t,e,1))
},_.contains=bt,_.escape=function(n){return n==d?"":Xt(n).replace(Gr,it)},_.every=_t,_.find=Ct,_.findIndex=function(n,t,r){var e=-1,u=n?n.length:0;for(t=_.createCallback(t,r,3);++e<u;)if(t(n[e],e,n))return e;return-1},_.findKey=function(n,t,r){var e;return t=_.createCallback(t,r,3),Mr(n,function(n,r,u){return t(n,r,u)?(e=r,b):void 0}),e},_.has=function(n,t){return n?cr.call(n,t):b},_.identity=Tt,_.indexOf=Bt,_.isArguments=pt,_.isArray=$r,_.isBoolean=function(n){return n===m||n===false||hr.call(n)==L },_.contains=bt,_.escape=function(n){return n==d?"":Xt(n).replace(Ke,it)},_.every=_t,_.find=wt,_.findIndex=function(n,t,e){var r=-1,u=n?n.length:0;for(t=_.createCallback(t,e,3);++r<u;)if(t(n[r],r,n))return r;return-1},_.findKey=function(n,t,e){var r;return t=_.createCallback(t,e,3),Ge(n,function(n,e,u){return t(n,e,u)?(r=e,b):void 0}),r},_.has=function(n,t){return n?ce.call(n,t):b},_.identity=Tt,_.indexOf=It,_.isArguments=st,_.isArray=Be,_.isBoolean=function(n){return n===m||n===false||he.call(n)==K
},_.isDate=function(n){return n?typeof n=="object"&&hr.call(n)==G:b},_.isElement=function(n){return n?1===n.nodeType:b},_.isEmpty=function(n){var t=m;if(!n)return t;var r=hr.call(n),e=n.length;return r==W||r==V||(Pr.argsClass?r==T:pt(n))||r==M&&typeof e=="number"&&vt(n.splice)?!e:(Mr(n,function(){return t=b}),t)},_.isEqual=function(n,t,r,e){return Z(n,t,typeof r=="function"&&_.createCallback(r,e,2))},_.isFinite=function(n){return _r(n)&&!jr(parseFloat(n))},_.isFunction=vt,_.isNaN=function(n){return yt(n)&&n!=+n },_.isDate=function(n){return n?typeof n=="object"&&he.call(n)==L:b},_.isElement=function(n){return n?1===n.nodeType:b},_.isEmpty=function(n){var t=m;if(!n)return t;var e=he.call(n),r=n.length;return e==W||e==V||(Pe.argsClass?e==T:st(n))||e==G&&typeof r=="number"&&vt(n.splice)?!r:(Ge(n,function(){return t=b}),t)},_.isEqual=function(n,t,e,r){return Z(n,t,typeof e=="function"&&_.createCallback(e,r,2))},_.isFinite=function(n){return _e(n)&&!je(parseFloat(n))},_.isFunction=vt,_.isNaN=function(n){return yt(n)&&n!=+n
},_.isNull=function(n){return n===d},_.isNumber=yt,_.isObject=ht,_.isPlainObject=Ur,_.isRegExp=function(n){return n&&X[typeof n]?hr.call(n)==U:b},_.isString=mt,_.isUndefined=function(n){return typeof n=="undefined"},_.lastIndexOf=function(n,t,r){var e=n?n.length:0;for(typeof r=="number"&&(e=(0>r?wr(0,e+r):kr(r,e-1))+1);e--;)if(n[e]===t)return e;return-1},_.mixin=Wt,_.noConflict=function(){return e._=er,this},_.parseInt=Qr,_.random=function(n,t){n==d&&t==d&&(t=1),n=+n||0,t==d?(t=n,n=0):t=+t||0;var r=Or(); },_.isNull=function(n){return n===d},_.isNumber=yt,_.isObject=ht,_.isPlainObject=Ue,_.isRegExp=function(n){return n&&X[typeof n]?he.call(n)==U:b},_.isString=mt,_.isUndefined=function(n){return typeof n=="undefined"},_.lastIndexOf=function(n,t,e){var r=n?n.length:0;for(typeof e=="number"&&(r=(0>e?Ce(0,r+e):ke(e,r-1))+1);r--;)if(n[r]===t)return r;return-1},_.mixin=Wt,_.noConflict=function(){return r._=re,this},_.parseInt=Qe,_.random=function(n,t){n==d&&t==d&&(t=1),n=+n||0,t==d?(t=n,n=0):t=+t||0;var e=Oe();
return n%1||t%1?n+kr(r*(t-n+parseFloat("1e-"+((r+"").length-1))),t):n+fr(r*(t-n+1))},_.reduce=Ot,_.reduceRight=Et,_.result=function(n,t){var r=n?n[t]:y;return vt(r)?n[t]():r},_.runInContext=h,_.size=function(n){var t=n?n.length:0;return typeof t=="number"?t:Rr(n).length},_.some=St,_.sortedIndex=Nt,_.template=function(n,t,r){var e=_.templateSettings;n||(n=""),r=Jr({},r,e);var u,a=Jr({},r.imports,e.imports),e=Rr(a),a=dt(a),o=0,f=r.interpolate||$,l="__p+='",f=Qt((r.escape||$).source+"|"+f.source+"|"+(f===z?P:$).source+"|"+(r.evaluate||$).source+"|$","g"); return n%1||t%1?n+ke(e*(t-n+parseFloat("1e-"+((e+"").length-1))),t):n+le(e*(t-n+1))},_.reduce=Ot,_.reduceRight=Et,_.result=function(n,t){var e=n?n[t]:y;return vt(e)?n[t]():e},_.runInContext=h,_.size=function(n){var t=n?n.length:0;return typeof t=="number"?t:Fe(n).length},_.some=St,_.sortedIndex=Bt,_.template=function(n,t,e){var r=_.templateSettings;n||(n=""),e=He({},e,r);var u,a=He({},e.imports,r.imports),r=Fe(a),a=dt(a),o=0,l=e.interpolate||$,f="__p+='",l=Qt((e.escape||$).source+"|"+l.source+"|"+(l===N?P:$).source+"|"+(e.evaluate||$).source+"|$","g");
n.replace(f,function(t,r,e,a,f,c){return e||(e=a),l+=n.slice(o,c).replace(D,i),r&&(l+="'+__e("+r+")+'"),f&&(u=m,l+="';"+f+";__p+='"),e&&(l+="'+((__t=("+e+"))==null?'':__t)+'"),o=c+t.length,t}),l+="';\n",f=r=r.variable,f||(r="obj",l="with("+r+"){"+l+"}"),l=(u?l.replace(A,""):l).replace(I,"$1").replace(B,"$1;"),l="function("+r+"){"+(f?"":r+"||("+r+"={});")+"var __t,__p='',__e=_.escape"+(u?",__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}":";")+l+"return __p}";try{var c=Kt(e,"return "+l).apply(y,a) n.replace(l,function(t,e,r,a,l,c){return r||(r=a),f+=n.slice(o,c).replace(z,i),e&&(f+="'+__e("+e+")+'"),l&&(u=m,f+="';"+l+";__p+='"),r&&(f+="'+((__t=("+r+"))==null?'':__t)+'"),o=c+t.length,t}),f+="';\n",l=e=e.variable,l||(e="obj",f="with("+e+"){"+f+"}"),f=(u?f.replace(A,""):f).replace(D,"$1").replace(I,"$1;"),f="function("+e+"){"+(l?"":e+"||("+e+"={});")+"var __t,__p='',__e=_.escape"+(u?",__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}":";")+f+"return __p}";try{var c=Mt(r,"return "+f).apply(y,a)
}catch(p){throw p.source=l,p}return t?c(t):(c.source=l,c)},_.unescape=function(n){return n==d?"":Xt(n).replace(Lr,ct)},_.uniqueId=function(n){var t=++C;return Xt(n==d?"":n)+t},_.all=_t,_.any=St,_.detect=Ct,_.findWhere=Ct,_.foldl=Ot,_.foldr=Et,_.include=bt,_.inject=Ot,Mr(_,function(n,t){_.prototype[t]||(_.prototype[t]=function(){var t=[this.__wrapped__];return pr.apply(t,arguments),n.apply(_,t)})}),_.first=It,_.last=function(n,t,r){if(n){var e=0,u=n.length;if(typeof t!="number"&&t!=d){var a=u;for(t=_.createCallback(t,r,3);a--&&t(n[a],a,n);)e++ }catch(s){throw s.source=f,s}return t?c(t):(c.source=f,c)},_.unescape=function(n){return n==d?"":Xt(n).replace(We,ct)},_.uniqueId=function(n){var t=++w;return Xt(n==d?"":n)+t},_.all=_t,_.any=St,_.detect=wt,_.findWhere=wt,_.foldl=Ot,_.foldr=Et,_.include=bt,_.inject=Ot,Ge(_,function(n,t){_.prototype[t]||(_.prototype[t]=function(){var t=[this.__wrapped__];return se.apply(t,arguments),n.apply(_,t)})}),_.first=Dt,_.last=function(n,t,e){if(n){var r=0,u=n.length;if(typeof t!="number"&&t!=d){var a=u;for(t=_.createCallback(t,e,3);a--&&t(n[a],a,n);)r++
}else if(e=t,e==d||r)return n[u-1];return v(n,wr(0,u-e))}},_.take=It,_.head=It,Mr(_,function(n,t){_.prototype[t]||(_.prototype[t]=function(t,r){var e=n(this.__wrapped__,t,r);return t==d||r&&typeof t!="function"?e:new j(e)})}),_.VERSION="1.3.1",_.prototype.toString=function(){return Xt(this.__wrapped__)},_.prototype.value=Lt,_.prototype.valueOf=Lt,qr(["join","pop","shift"],function(n){var t=Zt[n];_.prototype[n]=function(){return t.apply(this.__wrapped__,arguments)}}),qr(["push","reverse","sort","unshift"],function(n){var t=Zt[n]; }else if(r=t,r==d||e)return n[u-1];return v(n,Ce(0,u-r))}},_.take=Dt,_.head=Dt,Ge(_,function(n,t){_.prototype[t]||(_.prototype[t]=function(t,e){var r=n(this.__wrapped__,t,e);return t==d||e&&typeof t!="function"?r:new j(r)})}),_.VERSION="1.3.1",_.prototype.toString=function(){return Xt(this.__wrapped__)},_.prototype.value=Kt,_.prototype.valueOf=Kt,Le(["join","pop","shift"],function(n){var t=Zt[n];_.prototype[n]=function(){return t.apply(this.__wrapped__,arguments)}}),Le(["push","reverse","sort","unshift"],function(n){var t=Zt[n];
_.prototype[n]=function(){return t.apply(this.__wrapped__,arguments),this}}),qr(["concat","slice","splice"],function(n){var t=Zt[n];_.prototype[n]=function(){return new j(t.apply(this.__wrapped__,arguments))}}),Pr.spliceObjects||qr(["pop","shift","splice"],function(n){var t=Zt[n],r="splice"==n;_.prototype[n]=function(){var n=this.__wrapped__,e=t.apply(n,arguments);return 0===n.length&&delete n[0],r?new j(e):e}}),_}var y,m=!0,d=null,b=!1,_=[],j=[],C=0,w={},x=+new Date+"",O=75,E=40,S=" \t\x0B\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000",A=/\b__p\+='';/g,I=/\b(__p\+=)''\+/g,B=/(__e\(.*?\)|\b__t\))\+'';/g,P=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,N=/\w*$/,z=/<%=([\s\S]+?)%>/g,F=RegExp("^["+S+"]*0+(?=.$)"),$=/($^)/,D=/['\n\r\t\u2028\u2029\\]/g,R="Array Boolean Date Error Function Math Number Object RegExp String _ attachEvent clearTimeout isFinite isNaN parseInt setImmediate setTimeout".split(" "),q="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),T="[object Arguments]",W="[object Array]",L="[object Boolean]",G="[object Date]",H="[object Error]",J="[object Function]",K="[object Number]",M="[object Object]",U="[object RegExp]",V="[object String]",Q={}; _.prototype[n]=function(){return t.apply(this.__wrapped__,arguments),this}}),Le(["concat","slice","splice"],function(n){var t=Zt[n];_.prototype[n]=function(){return new j(t.apply(this.__wrapped__,arguments))}}),Pe.spliceObjects||Le(["pop","shift","splice"],function(n){var t=Zt[n],e="splice"==n;_.prototype[n]=function(){var n=this.__wrapped__,r=t.apply(n,arguments);return 0===n.length&&delete n[0],e?new j(r):r}}),_}var y,m=!0,d=null,b=!1,_=[],j=[],w=0,C={},x=+new Date+"",O=75,E=40,S=" \t\x0B\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000",A=/\b__p\+='';/g,D=/\b(__p\+=)''\+/g,I=/(__e\(.*?\)|\b__t\))\+'';/g,P=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,B=/\w*$/,N=/<%=([\s\S]+?)%>/g,F=RegExp("^["+S+"]*0+(?=.$)"),$=/($^)/,z=/['\n\r\t\u2028\u2029\\]/g,R="Array Boolean Date Error Function Math Number Object RegExp String _ attachEvent clearTimeout isFinite isNaN parseInt setImmediate setTimeout".split(" "),q="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),T="[object Arguments]",W="[object Array]",K="[object Boolean]",L="[object Date]",J="[object Error]",H="[object Function]",M="[object Number]",G="[object Object]",U="[object RegExp]",V="[object String]",Q={};
Q[J]=b,Q[T]=Q[W]=Q[L]=Q[G]=Q[K]=Q[M]=Q[U]=Q[V]=m;var X={"boolean":b,"function":m,object:m,number:b,string:b,undefined:b},Y={"\\":"\\","'":"'","\n":"n","\r":"r","\t":"t","\u2028":"u2028","\u2029":"u2029"},Z=X[typeof exports]&&exports,nt=X[typeof module]&&module&&module.exports==Z&&module,tt=X[typeof global]&&global;!tt||tt.global!==tt&&tt.window!==tt||(n=tt);var rt=h();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(n._=rt, define(function(){return rt})):Z&&!Z.nodeType?nt?(nt.exports=rt)._=rt:Z._=rt:n._=rt Q[H]=b,Q[T]=Q[W]=Q[K]=Q[L]=Q[M]=Q[G]=Q[U]=Q[V]=m;var X={"boolean":b,"function":m,object:m,number:b,string:b,undefined:b},Y={"\\":"\\","'":"'","\n":"n","\r":"r","\t":"t","\u2028":"u2028","\u2029":"u2029"},Z=X[typeof exports]&&exports,nt=X[typeof module]&&module&&module.exports==Z&&module,tt=X[typeof global]&&global;!tt||tt.global!==tt&&tt.window!==tt||(n=tt);var et=h();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(n._=et, define(function(){return et})):Z&&!Z.nodeType?nt?(nt.exports=et)._=et:Z._=et:n._=et
}(this); }(this);

2
dist/lodash.min.js vendored
View File

@@ -4,7 +4,7 @@
* Build: `lodash modern -o ./dist/lodash.js` * Build: `lodash modern -o ./dist/lodash.js`
*/ */
;!function(n){function t(n,t,e){e=(e||0)-1;for(var r=n?n.length:0;++e<r;)if(n[e]===t)return e;return-1}function e(n,e){var r=typeof e;if(n=n.k,"boolean"==r||e==h)return n[e];"number"!=r&&"string"!=r&&(r="object");var u="number"==r?e:k+e;return n=n[r]||(n[r]={}),"object"==r?n[u]&&-1<t(n[u],e)?0:-1:n[u]?0:-1}function r(n){var t=this.k,e=typeof n;if("boolean"==e||n==h)t[n]=y;else{"number"!=e&&"string"!=e&&(e="object");var r="number"==e?n:k+n,t=t[e]||(t[e]={});"object"==e?(t[r]||(t[r]=[])).push(n):t[r]=y ;!function(n){function t(n,t,e){e=(e||0)-1;for(var r=n?n.length:0;++e<r;)if(n[e]===t)return e;return-1}function e(n,e){var r=typeof e;if(n=n.k,"boolean"==r||e==h)return n[e];"number"!=r&&"string"!=r&&(r="object");var u="number"==r?e:k+e;return n=n[r]||(n[r]={}),"object"==r?n[u]&&-1<t(n[u],e)?0:-1:n[u]?0:-1}function r(n){var t=this.k,e=typeof n;if("boolean"==e||n==h)t[n]=y;else{"number"!=e&&"string"!=e&&(e="object");var r="number"==e?n:k+n,t=t[e]||(t[e]={});"object"==e?(t[r]||(t[r]=[])).push(n):t[r]=y
}}function u(n){return n.charCodeAt(0)}function a(n,t){var e=n.m,r=t.m;if(n=n.l,t=t.l,n!==t){if(n>t||typeof n=="undefined")return 1;if(n<t||typeof t=="undefined")return-1}return e<r?-1:1}function o(n){var t=-1,e=n.length,u=n[0],a=n[e-1];if(u&&typeof u=="object"&&a&&typeof a=="object")return b;for(u=l(),u["false"]=u["null"]=u["true"]=u.undefined=b,a=l(),a.b=n,a.k=u,a.push=r;++t<e;)a.push(n[t]);return a}function i(n){return"\\"+H[n]}function f(){return m.pop()||[]}function l(){return d.pop()||{b:h,k:h,l:h,"false":b,m:0,leading:b,maxWait:0,"null":b,number:h,object:h,push:h,string:h,trailing:b,"true":b,undefined:b,n:h} }}function u(n){return n.charCodeAt(0)}function a(n,t){var e=n.m,r=t.m;if(n=n.l,t=t.l,n!==t){if(n>t||typeof n=="undefined")return 1;if(n<t||typeof t=="undefined")return-1}return e<r?-1:1}function o(n){var t=-1,e=n.length,u=n[0],a=n[e-1];if(u&&typeof u=="object"&&a&&typeof a=="object")return b;for(u=l(),u["false"]=u["null"]=u["true"]=u.undefined=b,a=l(),a.b=n,a.k=u,a.push=r;++t<e;)a.push(n[t]);return a}function i(n){return"\\"+H[n]}function f(){return m.pop()||[]}function l(){return d.pop()||{b:h,k:h,l:h,"false":b,m:0,leading:b,maxWait:0,"null":b,number:h,y:h,push:h,string:h,trailing:b,"true":b,undefined:b,n:h}
}function c(n){n.length=0,m.length<w&&m.push(n)}function p(n){var t=n.k;t&&p(t),n.b=n.k=n.l=n.object=n.number=n.string=n.n=h,d.length<w&&d.push(n)}function s(n,t,e){t||(t=0),typeof e=="undefined"&&(e=n?n.length:0);var r=-1;e=e-t||0;for(var u=Array(0>e?0:e);++r<e;)u[r]=n[t+r];return u}function v(r){function m(n){if(!n||ge.call(n)!=K)return b;var t=n.valueOf,e=typeof t=="function"&&(e=le(t))&&le(e);return e?n==e||le(n)==e:lt(n)}function d(n,t,e){if(!n||!G[typeof n])return n;t=t&&typeof e=="undefined"?t:Y.createCallback(t,e,3); }function c(n){n.length=0,m.length<w&&m.push(n)}function p(n){var t=n.k;t&&p(t),n.b=n.k=n.l=n.object=n.number=n.string=n.n=h,d.length<w&&d.push(n)}function s(n,t,e){t||(t=0),typeof e=="undefined"&&(e=n?n.length:0);var r=-1;e=e-t||0;for(var u=Array(0>e?0:e);++r<e;)u[r]=n[t+r];return u}function v(r){function m(n){if(!n||ge.call(n)!=K)return b;var t=n.valueOf,e=typeof t=="function"&&(e=le(t))&&le(e);return e?n==e||le(n)==e:lt(n)}function d(n,t,e){if(!n||!G[typeof n])return n;t=t&&typeof e=="undefined"?t:Y.createCallback(t,e,3);
for(var r=-1,u=G[typeof n]&&$e(n),a=u?u.length:0;++r<a&&(e=u[r],!(t(n[e],e,n)===false)););return n}function w(n,t,e){var r;if(!n||!G[typeof n])return n;t=t&&typeof e=="undefined"?t:Y.createCallback(t,e,3);for(r in n)if(t(n[r],r,n)===false)break;return n}function H(n,t,e){var r,u=n,a=u;if(!u)return a;for(var o=arguments,i=0,f=typeof e=="number"?2:o.length;++i<f;)if((u=o[i])&&G[typeof u])for(var l=-1,c=G[typeof u]&&$e(u),p=c?c.length:0;++l<p;)r=c[l],"undefined"==typeof a[r]&&(a[r]=u[r]);return a}function J(n,t,e){var r,u=n,a=u; for(var r=-1,u=G[typeof n]&&$e(n),a=u?u.length:0;++r<a&&(e=u[r],!(t(n[e],e,n)===false)););return n}function w(n,t,e){var r;if(!n||!G[typeof n])return n;t=t&&typeof e=="undefined"?t:Y.createCallback(t,e,3);for(r in n)if(t(n[r],r,n)===false)break;return n}function H(n,t,e){var r,u=n,a=u;if(!u)return a;for(var o=arguments,i=0,f=typeof e=="number"?2:o.length;++i<f;)if((u=o[i])&&G[typeof u])for(var l=-1,c=G[typeof u]&&$e(u),p=c?c.length:0;++l<p;)r=c[l],"undefined"==typeof a[r]&&(a[r]=u[r]);return a}function J(n,t,e){var r,u=n,a=u;
if(!u)return a;var o=arguments,i=0,f=typeof e=="number"?2:o.length;if(3<f&&"function"==typeof o[f-2])var l=Y.createCallback(o[--f-1],o[f--],2);else 2<f&&"function"==typeof o[f-1]&&(l=o[--f]);for(;++i<f;)if((u=o[i])&&G[typeof u])for(var c=-1,p=G[typeof u]&&$e(u),s=p?p.length:0;++c<s;)r=p[c],a[r]=l?l(a[r],u[r]):u[r];return a}function Q(n){var t,e=[];if(!n||!G[typeof n])return e;for(t in n)ce.call(n,t)&&e.push(t);return e}function Y(n){return n&&typeof n=="object"&&!Ne(n)&&ce.call(n,"__wrapped__")?n:new Z(n) if(!u)return a;var o=arguments,i=0,f=typeof e=="number"?2:o.length;if(3<f&&"function"==typeof o[f-2])var l=Y.createCallback(o[--f-1],o[f--],2);else 2<f&&"function"==typeof o[f-1]&&(l=o[--f]);for(;++i<f;)if((u=o[i])&&G[typeof u])for(var c=-1,p=G[typeof u]&&$e(u),s=p?p.length:0;++c<s;)r=p[c],a[r]=l?l(a[r],u[r]):u[r];return a}function Q(n){var t,e=[];if(!n||!G[typeof n])return e;for(t in n)ce.call(n,t)&&e.push(t);return e}function Y(n){return n&&typeof n=="object"&&!Ne(n)&&ce.call(n,"__wrapped__")?n:new Z(n)

View File

@@ -556,7 +556,7 @@
// use `Function#bind` if it exists and is fast // use `Function#bind` if it exists and is fast
// (in V8 `Function#bind` is slower except when partially applied) // (in V8 `Function#bind` is slower except when partially applied)
if (!isPartial && !isAlt && !partialRightArgs.length && (support.fastBind || (nativeBind && partialArgs.length))) { if (!isPartial && !isAlt && !partialRightArgs.length && (support.fastBind || (nativeBind && partialArgs.length))) {
args = [func, thisArg]; var args = [func, thisArg];
push.apply(args, partialArgs); push.apply(args, partialArgs);
var bound = nativeBind.call.apply(nativeBind, args); var bound = nativeBind.call.apply(nativeBind, args);
} }

View File

@@ -6,8 +6,8 @@
;!function(n){function t(n,t){var r;if(n&&ht[typeof n])for(r in n)if(Ot.call(n,r)&&t(n[r],r,n)===et)break}function r(n,t){var r;if(n&&ht[typeof n])for(r in n)if(t(n[r],r,n)===et)break}function e(n){var t,r=[];if(!n||!ht[typeof n])return r;for(t in n)Ot.call(n,t)&&r.push(t);return r}function u(n,t,r){r=(r||0)-1;for(var e=n?n.length:0;++r<e;)if(n[r]===t)return r;return-1}function i(n,t){var r=n.m,e=t.m;if(n=n.l,t=t.l,n!==t){if(n>t||typeof n=="undefined")return 1;if(n<t||typeof t=="undefined")return-1 ;!function(n){function t(n,t){var r;if(n&&ht[typeof n])for(r in n)if(Ot.call(n,r)&&t(n[r],r,n)===et)break}function r(n,t){var r;if(n&&ht[typeof n])for(r in n)if(t(n[r],r,n)===et)break}function e(n){var t,r=[];if(!n||!ht[typeof n])return r;for(t in n)Ot.call(n,t)&&r.push(t);return r}function u(n,t,r){r=(r||0)-1;for(var e=n?n.length:0;++r<e;)if(n[r]===t)return r;return-1}function i(n,t){var r=n.m,e=t.m;if(n=n.l,t=t.l,n!==t){if(n>t||typeof n=="undefined")return 1;if(n<t||typeof t=="undefined")return-1
}return r<e?-1:1}function o(n){return"\\"+yt[n]}function a(){}function f(n){return n instanceof f?n:new c(n)}function c(n){this.__wrapped__=n}function l(n,t,r,e){e=(e||0)-1;for(var u=n?n.length:0,i=[];++e<u;){var o=n[e];o&&typeof o=="object"&&(Ct(o)||_(o))?Et.apply(i,t?o:l(o,t,r)):r||i.push(o)}return i}function p(n,t,e,u){if(n===t)return 0!==n||1/n==1/t;if(n===n&&(!n||!ht[typeof n])&&(!t||!ht[typeof t]))return tt;if(n==nt||t==nt)return n===t;var i=Tt.call(n),o=Tt.call(t);if(i!=o)return tt;switch(i){case ct:case lt:return+n==+t; }return r<e?-1:1}function o(n){return"\\"+yt[n]}function a(){}function f(n){return n instanceof f?n:new c(n)}function c(n){this.__wrapped__=n}function l(n,t,r,e){e=(e||0)-1;for(var u=n?n.length:0,i=[];++e<u;){var o=n[e];o&&typeof o=="object"&&(Ct(o)||_(o))?Et.apply(i,t?o:l(o,t,r)):r||i.push(o)}return i}function p(n,t,e,u){if(n===t)return 0!==n||1/n==1/t;if(n===n&&(!n||!ht[typeof n])&&(!t||!ht[typeof t]))return tt;if(n==nt||t==nt)return n===t;var i=Tt.call(n),o=Tt.call(t);if(i!=o)return tt;switch(i){case ct:case lt:return+n==+t;
case pt:return n!=+n?t!=+t:0==n?1/n==1/t:n==+t;case vt:case gt:return n==t+""}if(o=i==ft,!o){if(n instanceof f||t instanceof f)return p(n.__wrapped__||n,t.__wrapped__||t,e,u);if(i!=st)return tt;var i=n.constructor,a=t.constructor;if(i!=a&&(!A(i)||!(i instanceof i&&A(a)&&a instanceof a)))return tt}for(e||(e=[]),u||(u=[]),i=e.length;i--;)if(e[i]==n)return u[i]==t;var c=Z,l=0;if(e.push(n),u.push(t),o){if(l=t.length,c=l==n.length)for(;l--&&(c=p(n[l],t[l],e,u)););return c}return r(t,function(t,r,i){return Ot.call(i,r)?(l++,!(c=Ot.call(n,r)&&p(n[r],t,e,u))&&et):void 0 case pt:return n!=+n?t!=+t:0==n?1/n==1/t:n==+t;case vt:case gt:return n==t+""}if(o=i==ft,!o){if(n instanceof f||t instanceof f)return p(n.__wrapped__||n,t.__wrapped__||t,e,u);if(i!=st)return tt;var i=n.constructor,a=t.constructor;if(i!=a&&(!A(i)||!(i instanceof i&&A(a)&&a instanceof a)))return tt}for(e||(e=[]),u||(u=[]),i=e.length;i--;)if(e[i]==n)return u[i]==t;var c=Z,l=0;if(e.push(n),u.push(t),o){if(l=t.length,c=l==n.length)for(;l--&&(c=p(n[l],t[l],e,u)););return c}return r(t,function(t,r,i){return Ot.call(i,r)?(l++,!(c=Ot.call(n,r)&&p(n[r],t,e,u))&&et):void 0
}),c&&r(n,function(n,t,r){return Ot.call(r,t)?!(c=-1<--l)&&et:void 0}),c}function s(n,t,r){for(var e=-1,u=y(),i=n?n.length:0,o=[],a=r?[]:o;++e<i;){var f=n[e],c=r?r(f,e,n):f;(t?!e||a[a.length-1]!==c:0>u(a,c))&&(r&&a.push(c),o.push(f))}return o}function v(n,t,r,e){var u=[];if(!A(n))throw new TypeError;if(e||u.length||!(zt.fastBind||Ft&&r.length))i=function(){var o=arguments,a=e?this:t;return(r.length||u.length)&&(St.apply(o,r),Et.apply(o,u)),this instanceof i?(a=g(n.prototype),o=n.apply(a,o),O(o)?o:a):n.apply(a,o) }),c&&r(n,function(n,t,r){return Ot.call(r,t)?!(c=-1<--l)&&et:void 0}),c}function s(n,t,r){for(var e=-1,u=y(),i=n?n.length:0,o=[],a=r?[]:o;++e<i;){var f=n[e],c=r?r(f,e,n):f;(t?!e||a[a.length-1]!==c:0>u(a,c))&&(r&&a.push(c),o.push(f))}return o}function v(n,t,r,e){var u=[];if(!A(n))throw new TypeError;if(e||u.length||!(zt.fastBind||Ft&&r.length))o=function(){var i=arguments,a=e?this:t;return(r.length||u.length)&&(St.apply(i,r),Et.apply(i,u)),this instanceof o?(a=g(n.prototype),i=n.apply(a,i),O(i)?i:a):n.apply(a,i)
};else{args=[n,t],Et.apply(args,r);var i=Ft.call.apply(Ft,args)}return i}function g(n){return O(n)?Nt(n):{}}function h(n){return Ut[n]}function y(){var n=(n=f.indexOf)===U?u:n;return n}function m(n){return Vt[n]}function _(n){return n&&typeof n=="object"?Tt.call(n)==at:tt}function d(n){if(!n)return n;for(var t=1,r=arguments.length;t<r;t++){var e=arguments[t];if(e)for(var u in e)n[u]=e[u]}return n}function b(n){if(!n)return n;for(var t=1,r=arguments.length;t<r;t++){var e=arguments[t];if(e)for(var u in e)"undefined"==typeof n[u]&&(n[u]=e[u]) };else{var i=[n,t];Et.apply(i,r);var o=Ft.call.apply(Ft,i)}return o}function g(n){return O(n)?Nt(n):{}}function h(n){return Ut[n]}function y(){var n=(n=f.indexOf)===U?u:n;return n}function m(n){return Vt[n]}function _(n){return n&&typeof n=="object"?Tt.call(n)==at:tt}function d(n){if(!n)return n;for(var t=1,r=arguments.length;t<r;t++){var e=arguments[t];if(e)for(var u in e)n[u]=e[u]}return n}function b(n){if(!n)return n;for(var t=1,r=arguments.length;t<r;t++){var e=arguments[t];if(e)for(var u in e)"undefined"==typeof n[u]&&(n[u]=e[u])
}return n}function j(n){var t=[];return r(n,function(n,r){A(n)&&t.push(r)}),t.sort()}function w(n){for(var t=-1,r=Pt(n),e=r.length,u={};++t<e;){var i=r[t];u[n[i]]=i}return u}function x(n){if(!n)return Z;if(Ct(n)||T(n))return!n.length;for(var t in n)if(Ot.call(n,t))return tt;return Z}function A(n){return typeof n=="function"}function O(n){return!(!n||!ht[typeof n])}function E(n){return typeof n=="number"||Tt.call(n)==pt}function T(n){return typeof n=="string"||Tt.call(n)==gt}function S(n){for(var t=-1,r=Pt(n),e=r.length,u=Array(e);++t<e;)u[t]=n[r[t]]; }return n}function j(n){var t=[];return r(n,function(n,r){A(n)&&t.push(r)}),t.sort()}function w(n){for(var t=-1,r=Pt(n),e=r.length,u={};++t<e;){var i=r[t];u[n[i]]=i}return u}function x(n){if(!n)return Z;if(Ct(n)||T(n))return!n.length;for(var t in n)if(Ot.call(n,t))return tt;return Z}function A(n){return typeof n=="function"}function O(n){return!(!n||!ht[typeof n])}function E(n){return typeof n=="number"||Tt.call(n)==pt}function T(n){return typeof n=="string"||Tt.call(n)==gt}function S(n){for(var t=-1,r=Pt(n),e=r.length,u=Array(e);++t<e;)u[t]=n[r[t]];
return u}function F(n,r){var e=y(),u=n?n.length:0,i=tt;return u&&typeof u=="number"?i=-1<e(n,r):t(n,function(n){return(i=n===r)&&et}),i}function N(n,r,e){var u=Z;r=K(r,e,3),e=-1;var i=n?n.length:0;if(typeof i=="number")for(;++e<i&&(u=!!r(n[e],e,n)););else t(n,function(n,t,e){return!(u=!!r(n,t,e))&&et});return u}function R(n,r,e){var u=[];r=K(r,e,3),e=-1;var i=n?n.length:0;if(typeof i=="number")for(;++e<i;){var o=n[e];r(o,e,n)&&u.push(o)}else t(n,function(n,t,e){r(n,t,e)&&u.push(n)});return u}function k(n,r,e){r=K(r,e,3),e=-1; return u}function F(n,r){var e=y(),u=n?n.length:0,i=tt;return u&&typeof u=="number"?i=-1<e(n,r):t(n,function(n){return(i=n===r)&&et}),i}function N(n,r,e){var u=Z;r=K(r,e,3),e=-1;var i=n?n.length:0;if(typeof i=="number")for(;++e<i&&(u=!!r(n[e],e,n)););else t(n,function(n,t,e){return!(u=!!r(n,t,e))&&et});return u}function R(n,r,e){var u=[];r=K(r,e,3),e=-1;var i=n?n.length:0;if(typeof i=="number")for(;++e<i;){var o=n[e];r(o,e,n)&&u.push(o)}else t(n,function(n,t,e){r(n,t,e)&&u.push(n)});return u}function k(n,r,e){r=K(r,e,3),e=-1;
var u=n?n.length:0;if(typeof u!="number"){var i;return t(n,function(n,t,e){return r(n,t,e)?(i=n,et):void 0}),i}for(;++e<u;){var o=n[e];if(r(o,e,n))return o}}function B(n,r,e){var u=-1,i=n?n.length:0;if(r=r&&typeof e=="undefined"?r:K(r,e,3),typeof i=="number")for(;++u<i&&r(n[u],u,n)!==et;);else t(n,r)}function D(n,r,e){var u=-1,i=n?n.length:0;if(r=K(r,e,3),typeof i=="number")for(var o=Array(i);++u<i;)o[u]=r(n[u],u,n);else o=[],t(n,function(n,t,e){o[++u]=r(n,t,e)});return o}function q(n,t,r){var e=-1/0,u=e,i=-1,o=n?n.length:0; var u=n?n.length:0;if(typeof u!="number"){var i;return t(n,function(n,t,e){return r(n,t,e)?(i=n,et):void 0}),i}for(;++e<u;){var o=n[e];if(r(o,e,n))return o}}function B(n,r,e){var u=-1,i=n?n.length:0;if(r=r&&typeof e=="undefined"?r:K(r,e,3),typeof i=="number")for(;++u<i&&r(n[u],u,n)!==et;);else t(n,r)}function D(n,r,e){var u=-1,i=n?n.length:0;if(r=K(r,e,3),typeof i=="number")for(var o=Array(i);++u<i;)o[u]=r(n[u],u,n);else o=[],t(n,function(n,t,e){o[++u]=r(n,t,e)});return o}function q(n,t,r){var e=-1/0,u=e,i=-1,o=n?n.length:0;
@@ -29,7 +29,7 @@ i in n&&(u[i]=n[i])}return u},f.pluck=M,f.range=function(n,t,r){n=+n||0,r=+r||1,
},f.wrap=function(n,t){return function(){var r=[n];return Et.apply(r,arguments),t.apply(this,r)}},f.zip=function(){for(var n=-1,t=q(M(arguments,"length")),r=Array(0>t?0:t);++n<t;)r[n]=M(arguments,n);return r},f.collect=D,f.drop=V,f.each=B,f.extend=d,f.methods=j,f.object=function(n,t){for(var r=-1,e=n?n.length:0,u={};++r<e;){var i=n[r];t?u[i]=t[r]:i&&(u[i[0]]=i[1])}return u},f.select=R,f.tail=V,f.unique=H,f.chain=function(n){return n=new c(n),n.__chain__=Z,n},f.clone=function(n){return O(n)?Ct(n)?It.call(n):d({},n):n },f.wrap=function(n,t){return function(){var r=[n];return Et.apply(r,arguments),t.apply(this,r)}},f.zip=function(){for(var n=-1,t=q(M(arguments,"length")),r=Array(0>t?0:t);++n<t;)r[n]=M(arguments,n);return r},f.collect=D,f.drop=V,f.each=B,f.extend=d,f.methods=j,f.object=function(n,t){for(var r=-1,e=n?n.length:0,u={};++r<e;){var i=n[r];t?u[i]=t[r]:i&&(u[i[0]]=i[1])}return u},f.select=R,f.tail=V,f.unique=H,f.chain=function(n){return n=new c(n),n.__chain__=Z,n},f.clone=function(n){return O(n)?Ct(n)?It.call(n):d({},n):n
},f.contains=F,f.escape=function(n){return n==nt?"":(n+"").replace(Ht,h)},f.every=N,f.find=k,f.has=function(n,t){return n?Ot.call(n,t):tt},f.identity=Q,f.indexOf=U,f.isArguments=_,f.isArray=Ct,f.isBoolean=function(n){return n===Z||n===tt||Tt.call(n)==ct},f.isDate=function(n){return n?typeof n=="object"&&Tt.call(n)==lt:tt},f.isElement=function(n){return n?1===n.nodeType:tt},f.isEmpty=x,f.isEqual=function(n,t){return p(n,t)},f.isFinite=function(n){return kt(n)&&!Bt(parseFloat(n))},f.isFunction=A,f.isNaN=function(n){return E(n)&&n!=+n },f.contains=F,f.escape=function(n){return n==nt?"":(n+"").replace(Ht,h)},f.every=N,f.find=k,f.has=function(n,t){return n?Ot.call(n,t):tt},f.identity=Q,f.indexOf=U,f.isArguments=_,f.isArray=Ct,f.isBoolean=function(n){return n===Z||n===tt||Tt.call(n)==ct},f.isDate=function(n){return n?typeof n=="object"&&Tt.call(n)==lt:tt},f.isElement=function(n){return n?1===n.nodeType:tt},f.isEmpty=x,f.isEqual=function(n,t){return p(n,t)},f.isFinite=function(n){return kt(n)&&!Bt(parseFloat(n))},f.isFunction=A,f.isNaN=function(n){return E(n)&&n!=+n
},f.isNull=function(n){return n===nt},f.isNumber=E,f.isObject=O,f.isRegExp=function(n){return n&&ht[typeof n]?Tt.call(n)==vt:tt},f.isString=T,f.isUndefined=function(n){return typeof n=="undefined"},f.lastIndexOf=function(n,t,r){var e=n?n.length:0;for(typeof r=="number"&&(e=(0>r?qt(0,e+r):Mt(r,e-1))+1);e--;)if(n[e]===t)return e;return-1},f.mixin=X,f.noConflict=function(){return n._=jt,this},f.random=function(n,t){n==nt&&t==nt&&(t=1),n=+n||0,t==nt?(t=n,n=0):t=+t||0;var r=$t();return n%1||t%1?n+Mt(r*(t-n+parseFloat("1e-"+((r+"").length-1))),t):n+At(r*(t-n+1)) },f.isNull=function(n){return n===nt},f.isNumber=E,f.isObject=O,f.isRegExp=function(n){return n&&ht[typeof n]?Tt.call(n)==vt:tt},f.isString=T,f.isUndefined=function(n){return typeof n=="undefined"},f.lastIndexOf=function(n,t,r){var e=n?n.length:0;for(typeof r=="number"&&(e=(0>r?qt(0,e+r):Mt(r,e-1))+1);e--;)if(n[e]===t)return e;return-1},f.mixin=X,f.noConflict=function(){return n._=jt,this},f.random=function(n,t){n==nt&&t==nt&&(t=1),n=+n||0,t==nt?(t=n,n=0):t=+t||0;var r=$t();return n%1||t%1?n+Mt(r*(t-n+parseFloat("1e-"+((r+"").length-1))),t):n+At(r*(t-n+1))
},f.reduce=$,f.reduceRight=I,f.result=function(n,t){var r=n?n[t]:Y;return A(r)?n[t]():r},f.size=function(n){var t=n?n.length:0;return typeof t=="number"?t:Pt(n).length},f.some=W,f.sortedIndex=G,f.template=function(n,t,r){var e=f.templateSettings;n||(n=""),r=b({},r,e);var u=0,i="__p+='",e=r.variable;n.replace(RegExp((r.escape||it).source+"|"+(r.interpolate||it).source+"|"+(r.evaluate||it).source+"|$","g"),function(t,r,e,a,f){return i+=n.slice(u,f).replace(ot,o),r&&(i+="'+_['escape']("+r+")+'"),a&&(i+="';"+a+";__p+='"),e&&(i+="'+((__t=("+e+"))==null?'':__t)+'"),u=f+t.length,t },f.reduce=$,f.reduceRight=I,f.result=function(n,t){var r=n?n[t]:Y;return A(r)?n[t]():r},f.size=function(n){var t=n?n.length:0;return typeof t=="number"?t:Pt(n).length},f.some=W,f.sortedIndex=G,f.template=function(n,t,r){var e=f.templateSettings;n||(n=""),r=b({},r,e);var u=0,i="__p+='",e=r.variable;n.replace(RegExp((r.escape||it).source+"|"+(r.interpolate||it).source+"|"+(r.evaluate||it).source+"|$","g"),function(t,r,e,a,f){return i+=n.slice(u,f).replace(ot,o),r&&(i+="'+_.escape("+r+")+'"),a&&(i+="';"+a+";__p+='"),e&&(i+="'+((__t=("+e+"))==null?'':__t)+'"),u=f+t.length,t
}),i+="';\n",e||(e="obj",i="with("+e+"||{}){"+i+"}"),i="function("+e+"){var __t,__p='',__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}"+i+"return __p}";try{var a=Function("_","return "+i)(f)}catch(c){throw c.source=i,c}return t?a(t):(a.source=i,a)},f.unescape=function(n){return n==nt?"":(n+"").replace(Gt,m)},f.uniqueId=function(n){var t=++rt+"";return n?n+t:t},f.all=N,f.any=W,f.detect=k,f.findWhere=function(n,t){return z(n,t,Z)},f.foldl=$,f.foldr=I,f.include=F,f.inject=$,f.first=P,f.last=function(n,t,r){if(n){var e=0,u=n.length; }),i+="';\n",e||(e="obj",i="with("+e+"||{}){"+i+"}"),i="function("+e+"){var __t,__p='',__j=Array.prototype.join;function print(){__p+=__j.call(arguments,'')}"+i+"return __p}";try{var a=Function("_","return "+i)(f)}catch(c){throw c.source=i,c}return t?a(t):(a.source=i,a)},f.unescape=function(n){return n==nt?"":(n+"").replace(Gt,m)},f.uniqueId=function(n){var t=++rt+"";return n?n+t:t},f.all=N,f.any=W,f.detect=k,f.findWhere=function(n,t){return z(n,t,Z)},f.foldl=$,f.foldr=I,f.include=F,f.inject=$,f.first=P,f.last=function(n,t,r){if(n){var e=0,u=n.length;
if(typeof t!="number"&&t!=nt){var i=u;for(t=K(t,r,3);i--&&t(n[i],i,n);)e++}else if(e=t,e==nt||r)return n[u-1];return It.call(n,qt(0,u-e))}},f.take=P,f.head=P,f.VERSION="1.3.1",X(f),f.prototype.chain=function(){return this.__chain__=Z,this},f.prototype.value=function(){return this.__wrapped__},B("pop push reverse shift sort splice unshift".split(" "),function(n){var t=bt[n];f.prototype[n]=function(){var n=this.__wrapped__;return t.apply(n,arguments),!zt.spliceObjects&&0===n.length&&delete n[0],this if(typeof t!="number"&&t!=nt){var i=u;for(t=K(t,r,3);i--&&t(n[i],i,n);)e++}else if(e=t,e==nt||r)return n[u-1];return It.call(n,qt(0,u-e))}},f.take=P,f.head=P,f.VERSION="1.3.1",X(f),f.prototype.chain=function(){return this.__chain__=Z,this},f.prototype.value=function(){return this.__wrapped__},B("pop push reverse shift sort splice unshift".split(" "),function(n){var t=bt[n];f.prototype[n]=function(){var n=this.__wrapped__;return t.apply(n,arguments),!zt.spliceObjects&&0===n.length&&delete n[0],this
}}),B(["concat","join","slice"],function(n){var t=bt[n];f.prototype[n]=function(){var n=t.apply(this.__wrapped__,arguments);return this.__chain__&&(n=new c(n),n.__chain__=Z),n}}),typeof define=="function"&&typeof define.amd=="object"&&define.amd?(n._=f, define(function(){return f})):mt&&!mt.nodeType?_t?(_t.exports=f)._=f:mt._=f:n._=f}(this); }}),B(["concat","join","slice"],function(n){var t=bt[n];f.prototype[n]=function(){var n=t.apply(this.__wrapped__,arguments);return this.__chain__&&(n=new c(n),n.__chain__=Z),n}}),typeof define=="function"&&typeof define.amd=="object"&&define.amd?(n._=f, define(function(){return f})):mt&&!mt.nodeType?_t?(_t.exports=f)._=f:mt._=f:n._=f}(this);

View File

@@ -96,7 +96,7 @@
* [`_.bindAll`](#_bindallobject--methodname1-methodname2-) * [`_.bindAll`](#_bindallobject--methodname1-methodname2-)
* [`_.bindKey`](#_bindkeyobject-key--arg1-arg2-) * [`_.bindKey`](#_bindkeyobject-key--arg1-arg2-)
* [`_.compose`](#_composefunc1-func2-) * [`_.compose`](#_composefunc1-func2-)
* [`_.createCallback`](#_createcallbackfuncidentity-thisarg-argcount3) * [`_.createCallback`](#_createcallbackfuncidentity-thisarg-argcount)
* [`_.debounce`](#_debouncefunc-wait-options) * [`_.debounce`](#_debouncefunc-wait-options)
* [`_.defer`](#_deferfunc--arg1-arg2-) * [`_.defer`](#_deferfunc--arg1-arg2-)
* [`_.delay`](#_delayfunc-wait--arg1-arg2-) * [`_.delay`](#_delayfunc-wait--arg1-arg2-)
@@ -218,7 +218,7 @@
<!-- div --> <!-- div -->
### <a id="_compactarray"></a>`_.compact(array)` ### <a id="_compactarray"></a>`_.compact(array)`
<a href="#_compactarray">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3761 "View in source") [&#x24C9;][1] <a href="#_compactarray">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3760 "View in source") [&#x24C9;][1]
Creates an array with all falsey values of `array` removed. The values `false`, `null`, `0`, `""`, `undefined` and `NaN` are all falsey. Creates an array with all falsey values of `array` removed. The values `false`, `null`, `0`, `""`, `undefined` and `NaN` are all falsey.
@@ -242,7 +242,7 @@ _.compact([0, 1, false, 2, '', 3]);
<!-- div --> <!-- div -->
### <a id="_differencearray--array1-array2-"></a>`_.difference(array [, array1, array2, ...])` ### <a id="_differencearray--array1-array2-"></a>`_.difference(array [, array1, array2, ...])`
<a href="#_differencearray--array1-array2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3790 "View in source") [&#x24C9;][1] <a href="#_differencearray--array1-array2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3789 "View in source") [&#x24C9;][1]
Creates an array excluding all values of the passed-in arrays using strict equality for comparisons, i.e. `===`. Creates an array excluding all values of the passed-in arrays using strict equality for comparisons, i.e. `===`.
@@ -267,7 +267,7 @@ _.difference([1, 2, 3, 4, 5], [5, 2, 10]);
<!-- div --> <!-- div -->
### <a id="_findindexarray--callbackidentity-thisarg"></a>`_.findIndex(array [, callback=identity, thisArg])` ### <a id="_findindexarray--callbackidentity-thisarg"></a>`_.findIndex(array [, callback=identity, thisArg])`
<a href="#_findindexarray--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3840 "View in source") [&#x24C9;][1] <a href="#_findindexarray--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3839 "View in source") [&#x24C9;][1]
This method is similar to `_.find`, except that it returns the index of the element that passes the callback check, instead of the element itself. This method is similar to `_.find`, except that it returns the index of the element that passes the callback check, instead of the element itself.
@@ -295,7 +295,7 @@ _.findIndex(['apple', 'banana', 'beet'], function(food) {
<!-- div --> <!-- div -->
### <a id="_firstarray--callbackn-thisarg"></a>`_.first(array [, callback|n, thisArg])` ### <a id="_firstarray--callbackn-thisarg"></a>`_.first(array [, callback|n, thisArg])`
<a href="#_firstarray--callbackn-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3910 "View in source") [&#x24C9;][1] <a href="#_firstarray--callbackn-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3909 "View in source") [&#x24C9;][1]
Gets the first element of the `array`. If a number `n` is passed, the first `n` elements of the `array` are returned. If a `callback` function is passed, elements at the beginning of the array are returned as long as the `callback` returns truthy. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, index, array)*. Gets the first element of the `array`. If a number `n` is passed, the first `n` elements of the `array` are returned. If a `callback` function is passed, elements at the beginning of the array are returned as long as the `callback` returns truthy. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, index, array)*.
@@ -355,7 +355,7 @@ _.first(food, { 'type': 'fruit' });
<!-- div --> <!-- div -->
### <a id="_flattenarray--isshallowfalse-callbackidentity-thisarg"></a>`_.flatten(array [, isShallow=false, callback=identity, thisArg])` ### <a id="_flattenarray--isshallowfalse-callbackidentity-thisarg"></a>`_.flatten(array [, isShallow=false, callback=identity, thisArg])`
<a href="#_flattenarray--isshallowfalse-callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3972 "View in source") [&#x24C9;][1] <a href="#_flattenarray--isshallowfalse-callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3971 "View in source") [&#x24C9;][1]
Flattens a nested array *(the nesting can be to any depth)*. If `isShallow` is truthy, `array` will only be flattened a single level. If `callback` is passed, each element of `array` is passed through a `callback` before flattening. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, index, array)*. Flattens a nested array *(the nesting can be to any depth)*. If `isShallow` is truthy, `array` will only be flattened a single level. If `callback` is passed, each element of `array` is passed through a `callback` before flattening. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, index, array)*.
@@ -398,7 +398,7 @@ _.flatten(stooges, 'quotes');
<!-- div --> <!-- div -->
### <a id="_indexofarray-value--fromindex0"></a>`_.indexOf(array, value [, fromIndex=0])` ### <a id="_indexofarray-value--fromindex0"></a>`_.indexOf(array, value [, fromIndex=0])`
<a href="#_indexofarray-value--fromindex0">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4009 "View in source") [&#x24C9;][1] <a href="#_indexofarray-value--fromindex0">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4008 "View in source") [&#x24C9;][1]
Gets the index at which the first occurrence of `value` is found using strict equality for comparisons, i.e. `===`. If the `array` is already sorted, passing `true` for `fromIndex` will run a faster binary search. Gets the index at which the first occurrence of `value` is found using strict equality for comparisons, i.e. `===`. If the `array` is already sorted, passing `true` for `fromIndex` will run a faster binary search.
@@ -430,7 +430,7 @@ _.indexOf([1, 1, 2, 2, 3, 3], 2, true);
<!-- div --> <!-- div -->
### <a id="_initialarray--callbackn1-thisarg"></a>`_.initial(array [, callback|n=1, thisArg])` ### <a id="_initialarray--callbackn1-thisarg"></a>`_.initial(array [, callback|n=1, thisArg])`
<a href="#_initialarray--callbackn1-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4076 "View in source") [&#x24C9;][1] <a href="#_initialarray--callbackn1-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4075 "View in source") [&#x24C9;][1]
Gets all but the last element of `array`. If a number `n` is passed, the last `n` elements are excluded from the result. If a `callback` function is passed, elements at the end of the array are excluded from the result as long as the `callback` returns truthy. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, index, array)*. Gets all but the last element of `array`. If a number `n` is passed, the last `n` elements are excluded from the result. If a `callback` function is passed, elements at the end of the array are excluded from the result as long as the `callback` returns truthy. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, index, array)*.
@@ -487,7 +487,7 @@ _.initial(food, { 'type': 'vegetable' });
<!-- div --> <!-- div -->
### <a id="_intersectionarray1-array2-"></a>`_.intersection([array1, array2, ...])` ### <a id="_intersectionarray1-array2-"></a>`_.intersection([array1, array2, ...])`
<a href="#_intersectionarray1-array2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4109 "View in source") [&#x24C9;][1] <a href="#_intersectionarray1-array2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4108 "View in source") [&#x24C9;][1]
Creates an array of unique values present in all passed-in arrays using strict equality for comparisons, i.e. `===`. Creates an array of unique values present in all passed-in arrays using strict equality for comparisons, i.e. `===`.
@@ -511,7 +511,7 @@ _.intersection([1, 2, 3], [101, 2, 1, 10], [2, 1]);
<!-- div --> <!-- div -->
### <a id="_lastarray--callbackn-thisarg"></a>`_.last(array [, callback|n, thisArg])` ### <a id="_lastarray--callbackn-thisarg"></a>`_.last(array [, callback|n, thisArg])`
<a href="#_lastarray--callbackn-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4211 "View in source") [&#x24C9;][1] <a href="#_lastarray--callbackn-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4210 "View in source") [&#x24C9;][1]
Gets the last element of the `array`. If a number `n` is passed, the last `n` elements of the `array` are returned. If a `callback` function is passed, elements at the end of the array are returned as long as the `callback` returns truthy. The `callback` is bound to `thisArg` and invoked with three arguments;(value, index, array). Gets the last element of the `array`. If a number `n` is passed, the last `n` elements of the `array` are returned. If a `callback` function is passed, elements at the end of the array are returned as long as the `callback` returns truthy. The `callback` is bound to `thisArg` and invoked with three arguments;(value, index, array).
@@ -568,7 +568,7 @@ _.last(food, { 'type': 'vegetable' });
<!-- div --> <!-- div -->
### <a id="_lastindexofarray-value--fromindexarraylength-1"></a>`_.lastIndexOf(array, value [, fromIndex=array.length-1])` ### <a id="_lastindexofarray-value--fromindexarraylength-1"></a>`_.lastIndexOf(array, value [, fromIndex=array.length-1])`
<a href="#_lastindexofarray-value--fromindexarraylength-1">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4252 "View in source") [&#x24C9;][1] <a href="#_lastindexofarray-value--fromindexarraylength-1">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4251 "View in source") [&#x24C9;][1]
Gets the index at which the last occurrence of `value` is found using strict equality for comparisons, i.e. `===`. If `fromIndex` is negative, it is used as the offset from the end of the collection. Gets the index at which the last occurrence of `value` is found using strict equality for comparisons, i.e. `===`. If `fromIndex` is negative, it is used as the offset from the end of the collection.
@@ -597,7 +597,7 @@ _.lastIndexOf([1, 2, 3, 1, 2, 3], 2, 3);
<!-- div --> <!-- div -->
### <a id="_rangestart0-end--step1"></a>`_.range([start=0], end [, step=1])` ### <a id="_rangestart0-end--step1"></a>`_.range([start=0], end [, step=1])`
<a href="#_rangestart0-end--step1">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4293 "View in source") [&#x24C9;][1] <a href="#_rangestart0-end--step1">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4292 "View in source") [&#x24C9;][1]
Creates an array of numbers *(positive and/or negative)* progressing from `start` up to but not including `end`. Creates an array of numbers *(positive and/or negative)* progressing from `start` up to but not including `end`.
@@ -635,7 +635,7 @@ _.range(0);
<!-- div --> <!-- div -->
### <a id="_restarray--callbackn1-thisarg"></a>`_.rest(array [, callback|n=1, thisArg])` ### <a id="_restarray--callbackn1-thisarg"></a>`_.rest(array [, callback|n=1, thisArg])`
<a href="#_restarray--callbackn1-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4372 "View in source") [&#x24C9;][1] <a href="#_restarray--callbackn1-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4371 "View in source") [&#x24C9;][1]
The opposite of `_.initial`, this method gets all but the first value of `array`. If a number `n` is passed, the first `n` values are excluded from the result. If a `callback` function is passed, elements at the beginning of the array are excluded from the result as long as the `callback` returns truthy. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, index, array)*. The opposite of `_.initial`, this method gets all but the first value of `array`. If a number `n` is passed, the first `n` values are excluded from the result. If a `callback` function is passed, elements at the beginning of the array are excluded from the result as long as the `callback` returns truthy. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, index, array)*.
@@ -695,7 +695,7 @@ _.rest(food, { 'type': 'fruit' });
<!-- div --> <!-- div -->
### <a id="_sortedindexarray-value--callbackidentity-thisarg"></a>`_.sortedIndex(array, value [, callback=identity, thisArg])` ### <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#L4436 "View in source") [&#x24C9;][1] <a href="#_sortedindexarray-value--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4435 "View in source") [&#x24C9;][1]
Uses a binary search to determine the smallest index at which the `value` should be inserted into `array` in order to maintain the sort order of the sorted `array`. If `callback` is passed, it will be executed for `value` and each element in `array` to compute their sort ranking. The `callback` is bound to `thisArg` and invoked with one argument; *(value)*. Uses a binary search to determine the smallest index at which the `value` should be inserted into `array` in order to maintain the sort order of the sorted `array`. If `callback` is passed, it will be executed for `value` and each element in `array` to compute their sort ranking. The `callback` is bound to `thisArg` and invoked with one argument; *(value)*.
@@ -744,7 +744,7 @@ _.sortedIndex(['twenty', 'thirty', 'fifty'], 'fourty', function(word) {
<!-- div --> <!-- div -->
### <a id="_unionarray1-array2-"></a>`_.union([array1, array2, ...])` ### <a id="_unionarray1-array2-"></a>`_.union([array1, array2, ...])`
<a href="#_unionarray1-array2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4467 "View in source") [&#x24C9;][1] <a href="#_unionarray1-array2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4466 "View in source") [&#x24C9;][1]
Creates an array of unique values, in order, of the passed-in arrays using strict equality for comparisons, i.e. `===`. Creates an array of unique values, in order, of the passed-in arrays using strict equality for comparisons, i.e. `===`.
@@ -768,7 +768,7 @@ _.union([1, 2, 3], [101, 2, 1, 10], [2, 1]);
<!-- div --> <!-- div -->
### <a id="_uniqarray--issortedfalse-callbackidentity-thisarg"></a>`_.uniq(array [, isSorted=false, callback=identity, thisArg])` ### <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#L4514 "View in source") [&#x24C9;][1] <a href="#_uniqarray--issortedfalse-callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4513 "View in source") [&#x24C9;][1]
Creates a duplicate-value-free version of the `array` using strict equality for comparisons, i.e. `===`. If the `array` is already sorted, passing `true` for `isSorted` will run a faster algorithm. If `callback` is passed, each element of `array` is passed through the `callback` before uniqueness is computed. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, index, array)*. Creates a duplicate-value-free version of the `array` using strict equality for comparisons, i.e. `===`. If the `array` is already sorted, passing `true` for `isSorted` will run a faster algorithm. If `callback` is passed, each element of `array` is passed through the `callback` before uniqueness is computed. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, index, array)*.
@@ -815,7 +815,7 @@ _.uniq([{ 'x': 1 }, { 'x': 2 }, { 'x': 1 }], 'x');
<!-- div --> <!-- div -->
### <a id="_withoutarray--value1-value2-"></a>`_.without(array [, value1, value2, ...])` ### <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#L4542 "View in source") [&#x24C9;][1] <a href="#_withoutarray--value1-value2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4541 "View in source") [&#x24C9;][1]
Creates an array excluding all passed values using strict equality for comparisons, i.e. `===`. Creates an array excluding all passed values using strict equality for comparisons, i.e. `===`.
@@ -840,7 +840,7 @@ _.without([1, 2, 1, 0, 3, 1, 4], 0, 1);
<!-- div --> <!-- div -->
### <a id="_ziparray1-array2-"></a>`_.zip([array1, array2, ...])` ### <a id="_ziparray1-array2-"></a>`_.zip([array1, array2, ...])`
<a href="#_ziparray1-array2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4562 "View in source") [&#x24C9;][1] <a href="#_ziparray1-array2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4561 "View in source") [&#x24C9;][1]
Creates an array of grouped elements, the first of which contains the first elements of the given arrays, the second of which contains the second elements of the given arrays, and so on. Creates an array of grouped elements, the first of which contains the first elements of the given arrays, the second of which contains the second elements of the given arrays, and so on.
@@ -867,7 +867,7 @@ _.zip(['moe', 'larry'], [30, 40], [true, false]);
<!-- div --> <!-- div -->
### <a id="_zipobjectkeys--values"></a>`_.zipObject(keys [, values=[]])` ### <a id="_zipobjectkeys--values"></a>`_.zipObject(keys [, values=[]])`
<a href="#_zipobjectkeys--values">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4592 "View in source") [&#x24C9;][1] <a href="#_zipobjectkeys--values">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4591 "View in source") [&#x24C9;][1]
Creates an object composed from arrays of `keys` and `values`. Pass either a single two dimensional array, i.e. `[[key1, value1], [key2, value2]]`, or two arrays, one of `keys` and one of corresponding `values`. Creates an object composed from arrays of `keys` and `values`. Pass either a single two dimensional array, i.e. `[[key1, value1], [key2, value2]]`, or two arrays, one of `keys` and one of corresponding `values`.
@@ -958,7 +958,7 @@ _.isArray(squares.value());
<!-- div --> <!-- div -->
### <a id="_tapvalue-interceptor"></a>`_.tap(value, interceptor)` ### <a id="_tapvalue-interceptor"></a>`_.tap(value, interceptor)`
<a href="#_tapvalue-interceptor">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5730 "View in source") [&#x24C9;][1] <a href="#_tapvalue-interceptor">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5728 "View in source") [&#x24C9;][1]
Invokes `interceptor` with the `value` as the first argument, and then returns `value`. The purpose of this method is to "tap into" a method chain, in order to perform operations on intermediate results within the chain. Invokes `interceptor` with the `value` as the first argument, and then returns `value`. The purpose of this method is to "tap into" a method chain, in order to perform operations on intermediate results within the chain.
@@ -988,7 +988,7 @@ _([1, 2, 3, 4])
<!-- div --> <!-- div -->
### <a id="_prototypetostring"></a>`_.prototype.toString()` ### <a id="_prototypetostring"></a>`_.prototype.toString()`
<a href="#_prototypetostring">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5747 "View in source") [&#x24C9;][1] <a href="#_prototypetostring">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5745 "View in source") [&#x24C9;][1]
Produces the `toString` result of the wrapped value. Produces the `toString` result of the wrapped value.
@@ -1009,7 +1009,7 @@ _([1, 2, 3]).toString();
<!-- div --> <!-- div -->
### <a id="_prototypevalueof"></a>`_.prototype.valueOf()` ### <a id="_prototypevalueof"></a>`_.prototype.valueOf()`
<a href="#_prototypevalueof">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5764 "View in source") [&#x24C9;][1] <a href="#_prototypevalueof">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5762 "View in source") [&#x24C9;][1]
Extracts the wrapped value. Extracts the wrapped value.
@@ -1040,7 +1040,7 @@ _([1, 2, 3]).valueOf();
<!-- div --> <!-- div -->
### <a id="_atcollection--index1-index2-"></a>`_.at(collection [, index1, index2, ...])` ### <a id="_atcollection--index1-index2-"></a>`_.at(collection [, index1, index2, ...])`
<a href="#_atcollection--index1-index2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2746 "View in source") [&#x24C9;][1] <a href="#_atcollection--index1-index2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2745 "View in source") [&#x24C9;][1]
Creates an array of elements from the specified indexes, or keys, of the `collection`. Indexes may be specified as individual arguments or as arrays of indexes. Creates an array of elements from the specified indexes, or keys, of the `collection`. Indexes may be specified as individual arguments or as arrays of indexes.
@@ -1068,7 +1068,7 @@ _.at(['moe', 'larry', 'curly'], 0, 2);
<!-- div --> <!-- div -->
### <a id="_containscollection-target--fromindex0"></a>`_.contains(collection, target [, fromIndex=0])` ### <a id="_containscollection-target--fromindex0"></a>`_.contains(collection, target [, fromIndex=0])`
<a href="#_containscollection-target--fromindex0">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2788 "View in source") [&#x24C9;][1] <a href="#_containscollection-target--fromindex0">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2787 "View in source") [&#x24C9;][1]
Checks if a given `target` element is present in a `collection` using strict equality for comparisons, i.e. `===`. If `fromIndex` is negative, it is used as the offset from the end of the collection. Checks if a given `target` element is present in a `collection` using strict equality for comparisons, i.e. `===`. If `fromIndex` is negative, it is used as the offset from the end of the collection.
@@ -1106,7 +1106,7 @@ _.contains('curly', 'ur');
<!-- div --> <!-- div -->
### <a id="_countbycollection--callbackidentity-thisarg"></a>`_.countBy(collection [, callback=identity, thisArg])` ### <a id="_countbycollection--callbackidentity-thisarg"></a>`_.countBy(collection [, callback=identity, thisArg])`
<a href="#_countbycollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2843 "View in source") [&#x24C9;][1] <a href="#_countbycollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2842 "View in source") [&#x24C9;][1]
Creates an object composed of keys returned from running each element of the `collection` through the given `callback`. The corresponding value of each key is the number of times the key was returned by the `callback`. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, index|key, collection)*. Creates an object composed of keys returned from running each element of the `collection` through the given `callback`. The corresponding value of each key is the number of times the key was returned by the `callback`. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, index|key, collection)*.
@@ -1142,7 +1142,7 @@ _.countBy(['one', 'two', 'three'], 'length');
<!-- div --> <!-- div -->
### <a id="_everycollection--callbackidentity-thisarg"></a>`_.every(collection [, callback=identity, thisArg])` ### <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#L2895 "View in source") [&#x24C9;][1] <a href="#_everycollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2894 "View in source") [&#x24C9;][1]
Checks if the `callback` returns a truthy value for **all** elements of a `collection`. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, index|key, collection)*. Checks if the `callback` returns a truthy value for **all** elements of a `collection`. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, index|key, collection)*.
@@ -1188,7 +1188,7 @@ _.every(stooges, { 'age': 50 });
<!-- div --> <!-- div -->
### <a id="_filtercollection--callbackidentity-thisarg"></a>`_.filter(collection [, callback=identity, thisArg])` ### <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#L2956 "View in source") [&#x24C9;][1] <a href="#_filtercollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2955 "View in source") [&#x24C9;][1]
Iterates over elements of a `collection`, returning an array of all elements the `callback` returns truthy for. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, index|key, collection)*. Iterates over elements of a `collection`, returning an array of all elements the `callback` returns truthy for. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, index|key, collection)*.
@@ -1234,7 +1234,7 @@ _.filter(food, { 'type': 'fruit' });
<!-- div --> <!-- div -->
### <a id="_findcollection--callbackidentity-thisarg"></a>`_.find(collection [, callback=identity, thisArg])` ### <a id="_findcollection--callbackidentity-thisarg"></a>`_.find(collection [, callback=identity, thisArg])`
<a href="#_findcollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3023 "View in source") [&#x24C9;][1] <a href="#_findcollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3022 "View in source") [&#x24C9;][1]
Iterates over elements of a `collection`, returning the first that the `callback` returns truthy for. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, index|key, collection)*. Iterates over elements of a `collection`, returning the first that the `callback` returns truthy for. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, index|key, collection)*.
@@ -1283,7 +1283,7 @@ _.find(food, 'organic');
<!-- div --> <!-- div -->
### <a id="_foreachcollection--callbackidentity-thisarg"></a>`_.forEach(collection [, callback=identity, thisArg])` ### <a id="_foreachcollection--callbackidentity-thisarg"></a>`_.forEach(collection [, callback=identity, thisArg])`
<a href="#_foreachcollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3070 "View in source") [&#x24C9;][1] <a href="#_foreachcollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3069 "View in source") [&#x24C9;][1]
Iterates over elements of a `collection`, executing the `callback` for each element. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, index|key, collection)*. Callbacks may exit iteration early by explicitly returning `false`. Iterates over elements of a `collection`, executing the `callback` for each element. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, index|key, collection)*. Callbacks may exit iteration early by explicitly returning `false`.
@@ -1315,7 +1315,7 @@ _.forEach({ 'one': 1, 'two': 2, 'three': 3 }, alert);
<!-- div --> <!-- div -->
### <a id="_groupbycollection--callbackidentity-thisarg"></a>`_.groupBy(collection [, callback=identity, thisArg])` ### <a id="_groupbycollection--callbackidentity-thisarg"></a>`_.groupBy(collection [, callback=identity, thisArg])`
<a href="#_groupbycollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3120 "View in source") [&#x24C9;][1] <a href="#_groupbycollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3119 "View in source") [&#x24C9;][1]
Creates an object composed of keys returned from running each element of the `collection` through the `callback`. The corresponding value of each key is an array of elements passed to `callback` that returned the key. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, index|key, collection)*. Creates an object composed of keys returned from running each element of the `collection` through the `callback`. The corresponding value of each key is an array of elements passed to `callback` that returned the key. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, index|key, collection)*.
@@ -1352,7 +1352,7 @@ _.groupBy(['one', 'two', 'three'], 'length');
<!-- div --> <!-- div -->
### <a id="_invokecollection-methodname--arg1-arg2-"></a>`_.invoke(collection, methodName [, arg1, arg2, ...])` ### <a id="_invokecollection-methodname--arg1-arg2-"></a>`_.invoke(collection, methodName [, arg1, arg2, ...])`
<a href="#_invokecollection-methodname--arg1-arg2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3153 "View in source") [&#x24C9;][1] <a href="#_invokecollection-methodname--arg1-arg2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3152 "View in source") [&#x24C9;][1]
Invokes the method named by `methodName` on each element in the `collection`, returning an array of the results of each invoked method. Additional arguments will be passed to each invoked method. If `methodName` is a function, it will be invoked for, and `this` bound to, each element in the `collection`. Invokes the method named by `methodName` on each element in the `collection`, returning an array of the results of each invoked method. Additional arguments will be passed to each invoked method. If `methodName` is a function, it will be invoked for, and `this` bound to, each element in the `collection`.
@@ -1381,7 +1381,7 @@ _.invoke([123, 456], String.prototype.split, '');
<!-- div --> <!-- div -->
### <a id="_mapcollection--callbackidentity-thisarg"></a>`_.map(collection [, callback=identity, thisArg])` ### <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#L3205 "View in source") [&#x24C9;][1] <a href="#_mapcollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3204 "View in source") [&#x24C9;][1]
Creates an array of values by running each element in the `collection` through the `callback`. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, index|key, collection)*. Creates an array of values by running each element in the `collection` through the `callback`. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, index|key, collection)*.
@@ -1426,7 +1426,7 @@ _.map(stooges, 'name');
<!-- div --> <!-- div -->
### <a id="_maxcollection--callbackidentity-thisarg"></a>`_.max(collection [, callback=identity, thisArg])` ### <a id="_maxcollection--callbackidentity-thisarg"></a>`_.max(collection [, callback=identity, thisArg])`
<a href="#_maxcollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3262 "View in source") [&#x24C9;][1] <a href="#_maxcollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3261 "View in source") [&#x24C9;][1]
Retrieves the maximum value of an `array`. If `callback` is passed, it will be executed for each value in the `array` to generate the criterion by which the value is ranked. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, index, collection)*. Retrieves the maximum value of an `array`. If `callback` is passed, it will be executed for each value in the `array` to generate the criterion by which the value is ranked. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, index, collection)*.
@@ -1468,7 +1468,7 @@ _.max(stooges, 'age');
<!-- div --> <!-- div -->
### <a id="_mincollection--callbackidentity-thisarg"></a>`_.min(collection [, callback=identity, thisArg])` ### <a id="_mincollection--callbackidentity-thisarg"></a>`_.min(collection [, callback=identity, thisArg])`
<a href="#_mincollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3331 "View in source") [&#x24C9;][1] <a href="#_mincollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3330 "View in source") [&#x24C9;][1]
Retrieves the minimum value of an `array`. If `callback` is passed, it will be executed for each value in the `array` to generate the criterion by which the value is ranked. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, index, collection)*. Retrieves the minimum value of an `array`. If `callback` is passed, it will be executed for each value in the `array` to generate the criterion by which the value is ranked. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, index, collection)*.
@@ -1510,7 +1510,7 @@ _.min(stooges, 'age');
<!-- div --> <!-- div -->
### <a id="_pluckcollection-property"></a>`_.pluck(collection, property)` ### <a id="_pluckcollection-property"></a>`_.pluck(collection, property)`
<a href="#_pluckcollection-property">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3381 "View in source") [&#x24C9;][1] <a href="#_pluckcollection-property">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3380 "View in source") [&#x24C9;][1]
Retrieves the value of a specified property from all elements in the `collection`. Retrieves the value of a specified property from all elements in the `collection`.
@@ -1540,7 +1540,7 @@ _.pluck(stooges, 'name');
<!-- div --> <!-- div -->
### <a id="_reducecollection--callbackidentity-accumulator-thisarg"></a>`_.reduce(collection [, callback=identity, accumulator, thisArg])` ### <a id="_reducecollection--callbackidentity-accumulator-thisarg"></a>`_.reduce(collection [, callback=identity, accumulator, thisArg])`
<a href="#_reducecollection--callbackidentity-accumulator-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3413 "View in source") [&#x24C9;][1] <a href="#_reducecollection--callbackidentity-accumulator-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3412 "View in source") [&#x24C9;][1]
Reduces a `collection` to a value which is the accumulated result of running each element in the `collection` through the `callback`, where each successive `callback` execution consumes the return value of the previous execution. If `accumulator` is not passed, the first element of the `collection` will be used as the initial `accumulator` value. The `callback` is bound to `thisArg` and invoked with four arguments; *(accumulator, value, index|key, collection)*. Reduces a `collection` to a value which is the accumulated result of running each element in the `collection` through the `callback`, where each successive `callback` execution consumes the return value of the previous execution. If `accumulator` is not passed, the first element of the `collection` will be used as the initial `accumulator` value. The `callback` is bound to `thisArg` and invoked with four arguments; *(accumulator, value, index|key, collection)*.
@@ -1578,7 +1578,7 @@ var mapped = _.reduce({ 'a': 1, 'b': 2, 'c': 3 }, function(result, num, key) {
<!-- div --> <!-- div -->
### <a id="_reducerightcollection--callbackidentity-accumulator-thisarg"></a>`_.reduceRight(collection [, callback=identity, accumulator, thisArg])` ### <a id="_reducerightcollection--callbackidentity-accumulator-thisarg"></a>`_.reduceRight(collection [, callback=identity, accumulator, thisArg])`
<a href="#_reducerightcollection--callbackidentity-accumulator-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3456 "View in source") [&#x24C9;][1] <a href="#_reducerightcollection--callbackidentity-accumulator-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3455 "View in source") [&#x24C9;][1]
This method is similar to `_.reduce`, except that it iterates over elements of a `collection` from right to left. This method is similar to `_.reduce`, except that it iterates over elements of a `collection` from right to left.
@@ -1609,7 +1609,7 @@ var flat = _.reduceRight(list, function(a, b) { return a.concat(b); }, []);
<!-- div --> <!-- div -->
### <a id="_rejectcollection--callbackidentity-thisarg"></a>`_.reject(collection [, callback=identity, thisArg])` ### <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#L3516 "View in source") [&#x24C9;][1] <a href="#_rejectcollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3515 "View in source") [&#x24C9;][1]
The opposite of `_.filter`, this method returns the elements of a `collection` that `callback` does **not** return truthy for. The opposite of `_.filter`, this method returns the elements of a `collection` that `callback` does **not** return truthy for.
@@ -1652,7 +1652,7 @@ _.reject(food, { 'type': 'fruit' });
<!-- div --> <!-- div -->
### <a id="_shufflecollection"></a>`_.shuffle(collection)` ### <a id="_shufflecollection"></a>`_.shuffle(collection)`
<a href="#_shufflecollection">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3537 "View in source") [&#x24C9;][1] <a href="#_shufflecollection">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3536 "View in source") [&#x24C9;][1]
Creates an array of shuffled `array` values, using a version of the Fisher-Yates shuffle. See http://en.wikipedia.org/wiki/Fisher-Yates_shuffle. Creates an array of shuffled `array` values, using a version of the Fisher-Yates shuffle. See http://en.wikipedia.org/wiki/Fisher-Yates_shuffle.
@@ -1676,7 +1676,7 @@ _.shuffle([1, 2, 3, 4, 5, 6]);
<!-- div --> <!-- div -->
### <a id="_sizecollection"></a>`_.size(collection)` ### <a id="_sizecollection"></a>`_.size(collection)`
<a href="#_sizecollection">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3570 "View in source") [&#x24C9;][1] <a href="#_sizecollection">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3569 "View in source") [&#x24C9;][1]
Gets the size of the `collection` by returning `collection.length` for arrays and array-like objects or the number of own enumerable properties for objects. Gets the size of the `collection` by returning `collection.length` for arrays and array-like objects or the number of own enumerable properties for objects.
@@ -1706,7 +1706,7 @@ _.size('curly');
<!-- div --> <!-- div -->
### <a id="_somecollection--callbackidentity-thisarg"></a>`_.some(collection [, callback=identity, thisArg])` ### <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#L3617 "View in source") [&#x24C9;][1] <a href="#_somecollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3616 "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 bound to `thisArg` and invoked with three arguments; *(value, index|key, collection)*. Checks if the `callback` returns a truthy value for **any** element of a `collection`. The function returns as soon as it finds passing value, and does not iterate over the entire `collection`. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, index|key, collection)*.
@@ -1752,7 +1752,7 @@ _.some(food, { 'type': 'meat' });
<!-- div --> <!-- div -->
### <a id="_sortbycollection--callbackidentity-thisarg"></a>`_.sortBy(collection [, callback=identity, thisArg])` ### <a id="_sortbycollection--callbackidentity-thisarg"></a>`_.sortBy(collection [, callback=identity, thisArg])`
<a href="#_sortbycollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3673 "View in source") [&#x24C9;][1] <a href="#_sortbycollection--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3672 "View in source") [&#x24C9;][1]
Creates an array of elements, sorted in ascending order by the results of running each element in the `collection` through the `callback`. This method performs a stable sort, that is, it will preserve the original sort order of equal elements. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, index|key, collection)*. Creates an array of elements, sorted in ascending order by the results of running each element in the `collection` through the `callback`. This method performs a stable sort, that is, it will preserve the original sort order of equal elements. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, index|key, collection)*.
@@ -1789,7 +1789,7 @@ _.sortBy(['banana', 'strawberry', 'apple'], 'length');
<!-- div --> <!-- div -->
### <a id="_toarraycollection"></a>`_.toArray(collection)` ### <a id="_toarraycollection"></a>`_.toArray(collection)`
<a href="#_toarraycollection">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3709 "View in source") [&#x24C9;][1] <a href="#_toarraycollection">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3708 "View in source") [&#x24C9;][1]
Converts the `collection` to an array. Converts the `collection` to an array.
@@ -1813,7 +1813,7 @@ Converts the `collection` to an array.
<!-- div --> <!-- div -->
### <a id="_wherecollection-properties"></a>`_.where(collection, properties)` ### <a id="_wherecollection-properties"></a>`_.where(collection, properties)`
<a href="#_wherecollection-properties">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3743 "View in source") [&#x24C9;][1] <a href="#_wherecollection-properties">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L3742 "View in source") [&#x24C9;][1]
Performs a deep comparison of each element in a `collection` to the given `properties` object, returning an array of all elements that have equivalent property values. Performs a deep comparison of each element in a `collection` to the given `properties` object, returning an array of all elements that have equivalent property values.
@@ -1853,7 +1853,7 @@ _.where(stooges, { 'quotes': ['Poifect!'] });
<!-- div --> <!-- div -->
### <a id="_aftern-func"></a>`_.after(n, func)` ### <a id="_aftern-func"></a>`_.after(n, func)`
<a href="#_aftern-func">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4629 "View in source") [&#x24C9;][1] <a href="#_aftern-func">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4628 "View in source") [&#x24C9;][1]
Creates a function this is restricted to executing `func`, with the `this` binding and arguments of the created function, only after it is called `n` times. Creates a function this is restricted to executing `func`, with the `this` binding and arguments of the created function, only after it is called `n` times.
@@ -1881,7 +1881,7 @@ _.forEach(notes, function(note) {
<!-- div --> <!-- div -->
### <a id="_bindfunc--thisarg-arg1-arg2-"></a>`_.bind(func [, thisArg, arg1, arg2, ...])` ### <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#L4659 "View in source") [&#x24C9;][1] <a href="#_bindfunc--thisarg-arg1-arg2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4658 "View in source") [&#x24C9;][1]
Creates a 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. Creates a 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.
@@ -1912,7 +1912,7 @@ func();
<!-- div --> <!-- div -->
### <a id="_bindallobject--methodname1-methodname2-"></a>`_.bindAll(object [, methodName1, methodName2, ...])` ### <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#L4687 "View in source") [&#x24C9;][1] <a href="#_bindallobject--methodname1-methodname2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4686 "View in source") [&#x24C9;][1]
Binds methods on `object` to `object`, overwriting the existing method. Method names may be specified as individual arguments or as arrays of method names. If no method names are provided, all the function properties of `object` will be bound. Binds methods on `object` to `object`, overwriting the existing method. Method names may be specified as individual arguments or as arrays of method names. If no method names are provided, all the function properties of `object` will be bound.
@@ -1943,7 +1943,7 @@ jQuery('#docs').on('click', view.onClick);
<!-- div --> <!-- div -->
### <a id="_bindkeyobject-key--arg1-arg2-"></a>`_.bindKey(object, key [, arg1, arg2, ...])` ### <a id="_bindkeyobject-key--arg1-arg2-"></a>`_.bindKey(object, key [, arg1, arg2, ...])`
<a href="#_bindkeyobject-key--arg1-arg2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4733 "View in source") [&#x24C9;][1] <a href="#_bindkeyobject-key--arg1-arg2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4732 "View in source") [&#x24C9;][1]
Creates a function that, when called, invokes the method at `object[key]` and prepends any additional `bindKey` arguments to those passed to the bound function. This method differs from `_.bind` by allowing bound functions to reference methods that will be redefined or don't yet exist. See http://michaux.ca/articles/lazy-function-definition-pattern. Creates a function that, when called, invokes the method at `object[key]` and prepends any additional `bindKey` arguments to those passed to the bound function. This method differs from `_.bind` by allowing bound functions to reference methods that will be redefined or don't yet exist. See http://michaux.ca/articles/lazy-function-definition-pattern.
@@ -1984,7 +1984,7 @@ func();
<!-- div --> <!-- div -->
### <a id="_composefunc1-func2-"></a>`_.compose([func1, func2, ...])` ### <a id="_composefunc1-func2-"></a>`_.compose([func1, func2, ...])`
<a href="#_composefunc1-func2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4756 "View in source") [&#x24C9;][1] <a href="#_composefunc1-func2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4755 "View in source") [&#x24C9;][1]
Creates a function that is the composition of the passed functions, where each function consumes the return value of the function that follows. For example, composing the functions `f()`, `g()`, and `h()` produces `f(g(h()))`. Each function is executed with the `this` binding of the composed function. Creates a function that is the composition of the passed functions, where each function consumes the return value of the function that follows. For example, composing the functions `f()`, `g()`, and `h()` produces `f(g(h()))`. Each function is executed with the `this` binding of the composed function.
@@ -2010,8 +2010,8 @@ welcome('moe');
<!-- div --> <!-- div -->
### <a id="_createcallbackfuncidentity-thisarg-argcount3"></a>`_.createCallback([func=identity, thisArg, argCount=3])` ### <a id="_createcallbackfuncidentity-thisarg-argcount"></a>`_.createCallback([func=identity, thisArg, argCount])`
<a href="#_createcallbackfuncidentity-thisarg-argcount3">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4815 "View in source") [&#x24C9;][1] <a href="#_createcallbackfuncidentity-thisarg-argcount">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4814 "View in source") [&#x24C9;][1]
Produces a callback bound to an optional `thisArg`. If `func` is a property name, the created callback will return the property value for a given element. If `func` is an object, the created callback will return `true` for elements that contain the equivalent object properties, otherwise it will return `false`. Produces a callback bound to an optional `thisArg`. If `func` is a property name, the created callback will return the property value for a given element. If `func` is an object, the created callback will return `true` for elements that contain the equivalent object properties, otherwise it will return `false`.
@@ -2020,7 +2020,7 @@ Note: All Lo-Dash methods, that accept a `callback` argument, use `_.createCallb
#### Arguments #### Arguments
1. `[func=identity]` *(Mixed)*: The value to convert to a callback. 1. `[func=identity]` *(Mixed)*: The value to convert to a callback.
2. `[thisArg]` *(Mixed)*: The `this` binding of the created callback. 2. `[thisArg]` *(Mixed)*: The `this` binding of the created callback.
3. `[argCount=3]` *(Number)*: The number of arguments the callback accepts. 3. `[argCount]` *(Number)*: The number of arguments the callback accepts.
#### Returns #### Returns
*(Function)*: Returns a callback function. *(Function)*: Returns a callback function.
@@ -2065,7 +2065,7 @@ _.toLookup(stooges, 'name');
<!-- div --> <!-- div -->
### <a id="_debouncefunc-wait-options"></a>`_.debounce(func, wait, options)` ### <a id="_debouncefunc-wait-options"></a>`_.debounce(func, wait, options)`
<a href="#_debouncefunc-wait-options">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4925 "View in source") [&#x24C9;][1] <a href="#_debouncefunc-wait-options">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L4923 "View in source") [&#x24C9;][1]
Creates a function that will delay the execution of `func` until after `wait` milliseconds have elapsed since the last time it was invoked. Pass an `options` object to indicate that `func` should be invoked on the leading and/or trailing edge of the `wait` timeout. Subsequent calls to the debounced function will return the result of the last `func` call. Creates a function that will delay the execution of `func` until after `wait` milliseconds have elapsed since the last time it was invoked. Pass an `options` object to indicate that `func` should be invoked on the leading and/or trailing edge of the `wait` timeout. Subsequent calls to the debounced function will return the result of the last `func` call.
@@ -2106,7 +2106,7 @@ source.addEventListener('message', _.debounce(batchLog, 250, {
<!-- div --> <!-- div -->
### <a id="_deferfunc--arg1-arg2-"></a>`_.defer(func [, arg1, arg2, ...])` ### <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#L5022 "View in source") [&#x24C9;][1] <a href="#_deferfunc--arg1-arg2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5020 "View in source") [&#x24C9;][1]
Defers executing the `func` function until the current call stack has cleared. Additional arguments will be passed to `func` when it is invoked. Defers executing the `func` function until the current call stack has cleared. Additional arguments will be passed to `func` when it is invoked.
@@ -2131,7 +2131,7 @@ _.defer(function() { alert('deferred'); });
<!-- div --> <!-- div -->
### <a id="_delayfunc-wait--arg1-arg2-"></a>`_.delay(func, wait [, arg1, arg2, ...])` ### <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#L5048 "View in source") [&#x24C9;][1] <a href="#_delayfunc-wait--arg1-arg2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5046 "View in source") [&#x24C9;][1]
Executes the `func` function after `wait` milliseconds. Additional arguments will be passed to `func` when it is invoked. Executes the `func` function after `wait` milliseconds. Additional arguments will be passed to `func` when it is invoked.
@@ -2158,7 +2158,7 @@ _.delay(log, 1000, 'logged later');
<!-- div --> <!-- div -->
### <a id="_memoizefunc--resolver"></a>`_.memoize(func [, resolver])` ### <a id="_memoizefunc--resolver"></a>`_.memoize(func [, resolver])`
<a href="#_memoizefunc--resolver">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5073 "View in source") [&#x24C9;][1] <a href="#_memoizefunc--resolver">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5071 "View in source") [&#x24C9;][1]
Creates a 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. The `func` is executed with the `this` binding of the memoized function. The result cache is exposed as the `cache` property on the memoized function. Creates a function that memoizes the result of `func`. If `resolver` is 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. The `func` is executed with the `this` binding of the memoized function. The result cache is exposed as the `cache` property on the memoized function.
@@ -2184,7 +2184,7 @@ var fibonacci = _.memoize(function(n) {
<!-- div --> <!-- div -->
### <a id="_oncefunc"></a>`_.once(func)` ### <a id="_oncefunc"></a>`_.once(func)`
<a href="#_oncefunc">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5103 "View in source") [&#x24C9;][1] <a href="#_oncefunc">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5101 "View in source") [&#x24C9;][1]
Creates a function that is restricted to execute `func` once. Repeat calls to the function will return the value of the first call. The `func` is executed with the `this` binding of the created function. Creates a function that is restricted to execute `func` once. Repeat calls to the function will return the value of the first call. The `func` is executed with the `this` binding of the created function.
@@ -2210,7 +2210,7 @@ initialize();
<!-- div --> <!-- div -->
### <a id="_partialfunc--arg1-arg2-"></a>`_.partial(func [, arg1, arg2, ...])` ### <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#L5138 "View in source") [&#x24C9;][1] <a href="#_partialfunc--arg1-arg2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5136 "View in source") [&#x24C9;][1]
Creates a function that, when called, invokes `func` with any additional `partial` arguments prepended to those passed to the new function. This method is similar to `_.bind`, except it does **not** alter the `this` binding. Creates a function that, when called, invokes `func` with any additional `partial` arguments prepended to those passed to the new function. This method is similar to `_.bind`, except it does **not** alter the `this` binding.
@@ -2237,7 +2237,7 @@ hi('moe');
<!-- div --> <!-- div -->
### <a id="_partialrightfunc--arg1-arg2-"></a>`_.partialRight(func [, arg1, arg2, ...])` ### <a id="_partialrightfunc--arg1-arg2-"></a>`_.partialRight(func [, arg1, arg2, ...])`
<a href="#_partialrightfunc--arg1-arg2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5169 "View in source") [&#x24C9;][1] <a href="#_partialrightfunc--arg1-arg2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5167 "View in source") [&#x24C9;][1]
This method is similar to `_.partial`, except that `partial` arguments are appended to those passed to the new function. This method is similar to `_.partial`, except that `partial` arguments are appended to those passed to the new function.
@@ -2274,7 +2274,7 @@ options.imports
<!-- div --> <!-- div -->
### <a id="_throttlefunc-wait-options"></a>`_.throttle(func, wait, options)` ### <a id="_throttlefunc-wait-options"></a>`_.throttle(func, wait, options)`
<a href="#_throttlefunc-wait-options">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5204 "View in source") [&#x24C9;][1] <a href="#_throttlefunc-wait-options">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5202 "View in source") [&#x24C9;][1]
Creates a function that, when executed, will only call the `func` function at most once per every `wait` milliseconds. Pass an `options` object to indicate that `func` should be invoked on the leading and/or trailing edge of the `wait` timeout. Subsequent calls to the throttled function will return the result of the last `func` call. Creates a function that, when executed, will only call the `func` function at most once per every `wait` milliseconds. Pass an `options` object to indicate that `func` should be invoked on the leading and/or trailing edge of the `wait` timeout. Subsequent calls to the throttled function will return the result of the last `func` call.
@@ -2308,7 +2308,7 @@ jQuery('.interactive').on('click', _.throttle(renewToken, 300000, {
<!-- div --> <!-- div -->
### <a id="_wrapvalue-wrapper"></a>`_.wrap(value, wrapper)` ### <a id="_wrapvalue-wrapper"></a>`_.wrap(value, wrapper)`
<a href="#_wrapvalue-wrapper">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5245 "View in source") [&#x24C9;][1] <a href="#_wrapvalue-wrapper">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5243 "View in source") [&#x24C9;][1]
Creates a function that passes `value` to the `wrapper` function as its first argument. Additional arguments passed to the function are appended to those passed to the `wrapper` function. The `wrapper` is executed with the `this` binding of the created function. Creates a function that passes `value` to the `wrapper` function as its first argument. Additional arguments passed to the function are appended to those passed to the `wrapper` function. The `wrapper` is executed with the `this` binding of the created function.
@@ -2344,7 +2344,7 @@ hello();
<!-- div --> <!-- div -->
### <a id="_assignobject--source1-source2--callback-thisarg"></a>`_.assign(object [, source1, source2, ..., callback, thisArg])` ### <a id="_assignobject--source1-source2--callback-thisarg"></a>`_.assign(object [, source1, source2, ..., callback, thisArg])`
<a href="#_assignobject--source1-source2--callback-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1780 "View in source") [&#x24C9;][1] <a href="#_assignobject--source1-source2--callback-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1779 "View in source") [&#x24C9;][1]
Assigns own enumerable properties of source object(s) to the destination object. Subsequent sources will overwrite property assignments of previous sources. If a `callback` function is passed, it will be executed to produce the assigned values. The `callback` is bound to `thisArg` and invoked with two arguments; *(objectValue, sourceValue)*. Assigns own enumerable properties of source object(s) to the destination object. Subsequent sources will overwrite property assignments of previous sources. If a `callback` function is passed, it will be executed to produce the assigned values. The `callback` is bound to `thisArg` and invoked with two arguments; *(objectValue, sourceValue)*.
@@ -2382,7 +2382,7 @@ defaults(food, { 'name': 'banana', 'type': 'fruit' });
<!-- div --> <!-- div -->
### <a id="_clonevalue--deepfalse-callback-thisarg"></a>`_.clone(value [, deep=false, callback, thisArg])` ### <a id="_clonevalue--deepfalse-callback-thisarg"></a>`_.clone(value [, deep=false, callback, thisArg])`
<a href="#_clonevalue--deepfalse-callback-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1833 "View in source") [&#x24C9;][1] <a href="#_clonevalue--deepfalse-callback-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1832 "View in source") [&#x24C9;][1]
Creates a clone of `value`. If `deep` is `true`, nested objects will also be cloned, otherwise they will be assigned by reference. If a `callback` function is passed, it will be executed to produce the cloned values. If `callback` returns `undefined`, cloning will be handled by the method instead. The `callback` is bound to `thisArg` and invoked with one argument; *(value)*. Creates a clone of `value`. If `deep` is `true`, nested objects will also be cloned, otherwise they will be assigned by reference. If a `callback` function is passed, it will be executed to produce the cloned values. If `callback` returns `undefined`, cloning will be handled by the method instead. The `callback` is bound to `thisArg` and invoked with one argument; *(value)*.
@@ -2429,7 +2429,7 @@ clone.childNodes.length;
<!-- div --> <!-- div -->
### <a id="_clonedeepvalue--callback-thisarg"></a>`_.cloneDeep(value [, callback, thisArg])` ### <a id="_clonedeepvalue--callback-thisarg"></a>`_.cloneDeep(value [, callback, thisArg])`
<a href="#_clonedeepvalue--callback-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1885 "View in source") [&#x24C9;][1] <a href="#_clonedeepvalue--callback-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1884 "View in source") [&#x24C9;][1]
Creates a deep clone of `value`. If a `callback` function is passed, it will be executed to produce the cloned values. If `callback` returns `undefined`, cloning will be handled by the method instead. The `callback` is bound to `thisArg` and invoked with one argument; *(value)*. Creates a deep clone of `value`. If a `callback` function is passed, it will be executed to produce the cloned values. If `callback` returns `undefined`, cloning will be handled by the method instead. The `callback` is bound to `thisArg` and invoked with one argument; *(value)*.
@@ -2475,7 +2475,7 @@ clone.node == view.node;
<!-- div --> <!-- div -->
### <a id="_defaultsobject--source1-source2-"></a>`_.defaults(object [, source1, source2, ...])` ### <a id="_defaultsobject--source1-source2-"></a>`_.defaults(object [, source1, source2, ...])`
<a href="#_defaultsobject--source1-source2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1909 "View in source") [&#x24C9;][1] <a href="#_defaultsobject--source1-source2-">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1908 "View in source") [&#x24C9;][1]
Assigns own enumerable properties of source object(s) to the destination object for all destination properties that resolve to `undefined`. Once a property is set, additional defaults of the same property will be ignored. Assigns own enumerable properties of source object(s) to the destination object for all destination properties that resolve to `undefined`. Once a property is set, additional defaults of the same property will be ignored.
@@ -2501,7 +2501,7 @@ _.defaults(food, { 'name': 'banana', 'type': 'fruit' });
<!-- div --> <!-- div -->
### <a id="_findkeyobject--callbackidentity-thisarg"></a>`_.findKey(object [, callback=identity, thisArg])` ### <a id="_findkeyobject--callbackidentity-thisarg"></a>`_.findKey(object [, callback=identity, thisArg])`
<a href="#_findkeyobject--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1931 "View in source") [&#x24C9;][1] <a href="#_findkeyobject--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1930 "View in source") [&#x24C9;][1]
This method is similar to `_.find`, except that it returns the key of the element that passes the callback check, instead of the element itself. This method is similar to `_.find`, except that it returns the key of the element that passes the callback check, instead of the element itself.
@@ -2529,7 +2529,7 @@ _.findKey({ 'a': 1, 'b': 2, 'c': 3, 'd': 4 }, function(num) {
<!-- div --> <!-- div -->
### <a id="_forinobject--callbackidentity-thisarg"></a>`_.forIn(object [, callback=identity, thisArg])` ### <a id="_forinobject--callbackidentity-thisarg"></a>`_.forIn(object [, callback=identity, thisArg])`
<a href="#_forinobject--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1972 "View in source") [&#x24C9;][1] <a href="#_forinobject--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1971 "View in source") [&#x24C9;][1]
Iterates over own and inherited enumerable properties of a given `object`, executing the `callback` for each property. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, key, object)*. Callbacks may exit iteration early by explicitly returning `false`. Iterates over own and inherited enumerable properties of a given `object`, executing the `callback` for each property. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, key, object)*. Callbacks may exit iteration early by explicitly returning `false`.
@@ -2565,7 +2565,7 @@ _.forIn(new Dog('Dagny'), function(value, key) {
<!-- div --> <!-- div -->
### <a id="_forownobject--callbackidentity-thisarg"></a>`_.forOwn(object [, callback=identity, thisArg])` ### <a id="_forownobject--callbackidentity-thisarg"></a>`_.forOwn(object [, callback=identity, thisArg])`
<a href="#_forownobject--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1997 "View in source") [&#x24C9;][1] <a href="#_forownobject--callbackidentity-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1996 "View in source") [&#x24C9;][1]
Iterates over own enumerable properties of a given `object`, executing the `callback` for each property. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, key, object)*. Callbacks may exit iteration early by explicitly returning `false`. Iterates over own enumerable properties of a given `object`, executing the `callback` for each property. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, key, object)*. Callbacks may exit iteration early by explicitly returning `false`.
@@ -2593,7 +2593,7 @@ _.forOwn({ '0': 'zero', '1': 'one', 'length': 2 }, function(num, key) {
<!-- div --> <!-- div -->
### <a id="_functionsobject"></a>`_.functions(object)` ### <a id="_functionsobject"></a>`_.functions(object)`
<a href="#_functionsobject">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2014 "View in source") [&#x24C9;][1] <a href="#_functionsobject">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2013 "View in source") [&#x24C9;][1]
Creates a sorted array of property names of all enumerable properties, own and inherited, of `object` that have function values. Creates a sorted array of property names of all enumerable properties, own and inherited, of `object` that have function values.
@@ -2620,7 +2620,7 @@ _.functions(_);
<!-- div --> <!-- div -->
### <a id="_hasobject-property"></a>`_.has(object, property)` ### <a id="_hasobject-property"></a>`_.has(object, property)`
<a href="#_hasobject-property">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2039 "View in source") [&#x24C9;][1] <a href="#_hasobject-property">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2038 "View in source") [&#x24C9;][1]
Checks if the specified object `property` exists and is a direct property, instead of an inherited property. Checks if the specified object `property` exists and is a direct property, instead of an inherited property.
@@ -2645,7 +2645,7 @@ _.has({ 'a': 1, 'b': 2, 'c': 3 }, 'b');
<!-- div --> <!-- div -->
### <a id="_invertobject"></a>`_.invert(object)` ### <a id="_invertobject"></a>`_.invert(object)`
<a href="#_invertobject">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2056 "View in source") [&#x24C9;][1] <a href="#_invertobject">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2055 "View in source") [&#x24C9;][1]
Creates an object composed of the inverted keys and values of the given `object`. Creates an object composed of the inverted keys and values of the given `object`.
@@ -2669,7 +2669,7 @@ _.invert({ 'first': 'moe', 'second': 'larry' });
<!-- div --> <!-- div -->
### <a id="_isargumentsvalue"></a>`_.isArguments(value)` ### <a id="_isargumentsvalue"></a>`_.isArguments(value)`
<a href="#_isargumentsvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1638 "View in source") [&#x24C9;][1] <a href="#_isargumentsvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1608 "View in source") [&#x24C9;][1]
Checks if `value` is an `arguments` object. Checks if `value` is an `arguments` object.
@@ -2696,7 +2696,7 @@ _.isArguments([1, 2, 3]);
<!-- div --> <!-- div -->
### <a id="_isarrayvalue"></a>`_.isArray(value)` ### <a id="_isarrayvalue"></a>`_.isArray(value)`
<a href="#_isarrayvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1664 "View in source") [&#x24C9;][1] <a href="#_isarrayvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1634 "View in source") [&#x24C9;][1]
Checks if `value` is an array. Checks if `value` is an array.
@@ -2723,7 +2723,7 @@ _.isArray([1, 2, 3]);
<!-- div --> <!-- div -->
### <a id="_isbooleanvalue"></a>`_.isBoolean(value)` ### <a id="_isbooleanvalue"></a>`_.isBoolean(value)`
<a href="#_isbooleanvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2082 "View in source") [&#x24C9;][1] <a href="#_isbooleanvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2081 "View in source") [&#x24C9;][1]
Checks if `value` is a boolean value. Checks if `value` is a boolean value.
@@ -2747,7 +2747,7 @@ _.isBoolean(null);
<!-- div --> <!-- div -->
### <a id="_isdatevalue"></a>`_.isDate(value)` ### <a id="_isdatevalue"></a>`_.isDate(value)`
<a href="#_isdatevalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2099 "View in source") [&#x24C9;][1] <a href="#_isdatevalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2098 "View in source") [&#x24C9;][1]
Checks if `value` is a date. Checks if `value` is a date.
@@ -2771,7 +2771,7 @@ _.isDate(new Date);
<!-- div --> <!-- div -->
### <a id="_iselementvalue"></a>`_.isElement(value)` ### <a id="_iselementvalue"></a>`_.isElement(value)`
<a href="#_iselementvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2116 "View in source") [&#x24C9;][1] <a href="#_iselementvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2115 "View in source") [&#x24C9;][1]
Checks if `value` is a DOM element. Checks if `value` is a DOM element.
@@ -2795,7 +2795,7 @@ _.isElement(document.body);
<!-- div --> <!-- div -->
### <a id="_isemptyvalue"></a>`_.isEmpty(value)` ### <a id="_isemptyvalue"></a>`_.isEmpty(value)`
<a href="#_isemptyvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2141 "View in source") [&#x24C9;][1] <a href="#_isemptyvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2140 "View in source") [&#x24C9;][1]
Checks if `value` is empty. Arrays, strings, or `arguments` objects with a length of `0` and objects with no own enumerable properties are considered "empty". Checks if `value` is empty. Arrays, strings, or `arguments` objects with a length of `0` and objects with no own enumerable properties are considered "empty".
@@ -2825,7 +2825,7 @@ _.isEmpty('');
<!-- div --> <!-- div -->
### <a id="_isequala-b--callback-thisarg"></a>`_.isEqual(a, b [, callback, thisArg])` ### <a id="_isequala-b--callback-thisarg"></a>`_.isEqual(a, b [, callback, thisArg])`
<a href="#_isequala-b--callback-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2198 "View in source") [&#x24C9;][1] <a href="#_isequala-b--callback-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2197 "View in source") [&#x24C9;][1]
Performs a deep comparison between two values to determine if they are equivalent to each other. If `callback` is passed, it will be executed to compare values. If `callback` returns `undefined`, comparisons will be handled by the method instead. The `callback` is bound to `thisArg` and invoked with two arguments; *(a, b)*. Performs a deep comparison between two values to determine if they are equivalent to each other. If `callback` is passed, it will be executed to compare values. If `callback` returns `undefined`, comparisons will be handled by the method instead. The `callback` is bound to `thisArg` and invoked with two arguments; *(a, b)*.
@@ -2870,7 +2870,7 @@ _.isEqual(words, otherWords, function(a, b) {
<!-- div --> <!-- div -->
### <a id="_isfinitevalue"></a>`_.isFinite(value)` ### <a id="_isfinitevalue"></a>`_.isFinite(value)`
<a href="#_isfinitevalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2230 "View in source") [&#x24C9;][1] <a href="#_isfinitevalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2229 "View in source") [&#x24C9;][1]
Checks if `value` is, or can be coerced to, a finite number. Checks if `value` is, or can be coerced to, a finite number.
@@ -2908,7 +2908,7 @@ _.isFinite(Infinity);
<!-- div --> <!-- div -->
### <a id="_isfunctionvalue"></a>`_.isFunction(value)` ### <a id="_isfunctionvalue"></a>`_.isFunction(value)`
<a href="#_isfunctionvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2247 "View in source") [&#x24C9;][1] <a href="#_isfunctionvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2246 "View in source") [&#x24C9;][1]
Checks if `value` is a function. Checks if `value` is a function.
@@ -2932,7 +2932,7 @@ _.isFunction(_);
<!-- div --> <!-- div -->
### <a id="_isnanvalue"></a>`_.isNaN(value)` ### <a id="_isnanvalue"></a>`_.isNaN(value)`
<a href="#_isnanvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2310 "View in source") [&#x24C9;][1] <a href="#_isnanvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2309 "View in source") [&#x24C9;][1]
Checks if `value` is `NaN`. Checks if `value` is `NaN`.
@@ -2967,7 +2967,7 @@ _.isNaN(undefined);
<!-- div --> <!-- div -->
### <a id="_isnullvalue"></a>`_.isNull(value)` ### <a id="_isnullvalue"></a>`_.isNull(value)`
<a href="#_isnullvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2332 "View in source") [&#x24C9;][1] <a href="#_isnullvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2331 "View in source") [&#x24C9;][1]
Checks if `value` is `null`. Checks if `value` is `null`.
@@ -2994,7 +2994,7 @@ _.isNull(undefined);
<!-- div --> <!-- div -->
### <a id="_isnumbervalue"></a>`_.isNumber(value)` ### <a id="_isnumbervalue"></a>`_.isNumber(value)`
<a href="#_isnumbervalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2351 "View in source") [&#x24C9;][1] <a href="#_isnumbervalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2350 "View in source") [&#x24C9;][1]
Checks if `value` is a number. Checks if `value` is a number.
@@ -3020,7 +3020,7 @@ _.isNumber(8.4 * 5);
<!-- div --> <!-- div -->
### <a id="_isobjectvalue"></a>`_.isObject(value)` ### <a id="_isobjectvalue"></a>`_.isObject(value)`
<a href="#_isobjectvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2277 "View in source") [&#x24C9;][1] <a href="#_isobjectvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2276 "View in source") [&#x24C9;][1]
Checks if `value` is the language type of Object. *(e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)* Checks if `value` is the language type of Object. *(e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)*
@@ -3050,7 +3050,7 @@ _.isObject(1);
<!-- div --> <!-- div -->
### <a id="_isplainobjectvalue"></a>`_.isPlainObject(value)` ### <a id="_isplainobjectvalue"></a>`_.isPlainObject(value)`
<a href="#_isplainobjectvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2379 "View in source") [&#x24C9;][1] <a href="#_isplainobjectvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2378 "View in source") [&#x24C9;][1]
Checks if a given `value` is an object created by the `Object` constructor. Checks if a given `value` is an object created by the `Object` constructor.
@@ -3085,7 +3085,7 @@ _.isPlainObject({ 'name': 'moe', 'age': 40 });
<!-- div --> <!-- div -->
### <a id="_isregexpvalue"></a>`_.isRegExp(value)` ### <a id="_isregexpvalue"></a>`_.isRegExp(value)`
<a href="#_isregexpvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2404 "View in source") [&#x24C9;][1] <a href="#_isregexpvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2403 "View in source") [&#x24C9;][1]
Checks if `value` is a regular expression. Checks if `value` is a regular expression.
@@ -3109,7 +3109,7 @@ _.isRegExp(/moe/);
<!-- div --> <!-- div -->
### <a id="_isstringvalue"></a>`_.isString(value)` ### <a id="_isstringvalue"></a>`_.isString(value)`
<a href="#_isstringvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2421 "View in source") [&#x24C9;][1] <a href="#_isstringvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2420 "View in source") [&#x24C9;][1]
Checks if `value` is a string. Checks if `value` is a string.
@@ -3133,7 +3133,7 @@ _.isString('moe');
<!-- div --> <!-- div -->
### <a id="_isundefinedvalue"></a>`_.isUndefined(value)` ### <a id="_isundefinedvalue"></a>`_.isUndefined(value)`
<a href="#_isundefinedvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2438 "View in source") [&#x24C9;][1] <a href="#_isundefinedvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2437 "View in source") [&#x24C9;][1]
Checks if `value` is `undefined`. Checks if `value` is `undefined`.
@@ -3157,7 +3157,7 @@ _.isUndefined(void 0);
<!-- div --> <!-- div -->
### <a id="_keysobject"></a>`_.keys(object)` ### <a id="_keysobject"></a>`_.keys(object)`
<a href="#_keysobject">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1698 "View in source") [&#x24C9;][1] <a href="#_keysobject">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L1667 "View in source") [&#x24C9;][1]
Creates an array composed of the own enumerable property names of `object`. Creates an array composed of the own enumerable property names of `object`.
@@ -3181,7 +3181,7 @@ _.keys({ 'one': 1, 'two': 2, 'three': 3 });
<!-- div --> <!-- div -->
### <a id="_mergeobject--source1-source2--callback-thisarg"></a>`_.merge(object [, source1, source2, ..., callback, thisArg])` ### <a id="_mergeobject--source1-source2--callback-thisarg"></a>`_.merge(object [, source1, source2, ..., callback, thisArg])`
<a href="#_mergeobject--source1-source2--callback-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2493 "View in source") [&#x24C9;][1] <a href="#_mergeobject--source1-source2--callback-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2492 "View in source") [&#x24C9;][1]
Recursively merges own enumerable properties of the source object(s), that don't resolve to `undefined`, into the destination object. Subsequent sources will overwrite property assignments of previous sources. If a `callback` function is passed, it will be executed to produce the merged values of the destination and source properties. If `callback` returns `undefined`, merging will be handled by the method instead. The `callback` is bound to `thisArg` and invoked with two arguments; *(objectValue, sourceValue)*. Recursively merges own enumerable properties of the source object(s), that don't resolve to `undefined`, into the destination object. Subsequent sources will overwrite property assignments of previous sources. If a `callback` function is passed, it will be executed to produce the merged values of the destination and source properties. If `callback` returns `undefined`, merging will be handled by the method instead. The `callback` is bound to `thisArg` and invoked with two arguments; *(objectValue, sourceValue)*.
@@ -3237,7 +3237,7 @@ _.merge(food, otherFood, function(a, b) {
<!-- div --> <!-- div -->
### <a id="_omitobject-callback-prop1-prop2--thisarg"></a>`_.omit(object, callback|[prop1, prop2, ..., thisArg])` ### <a id="_omitobject-callback-prop1-prop2--thisarg"></a>`_.omit(object, callback|[prop1, prop2, ..., thisArg])`
<a href="#_omitobject-callback-prop1-prop2--thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2549 "View in source") [&#x24C9;][1] <a href="#_omitobject-callback-prop1-prop2--thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2548 "View in source") [&#x24C9;][1]
Creates a shallow clone of `object` excluding the specified properties. Property names may be specified as individual arguments or as arrays of property names. If a `callback` function is passed, it will be executed for each property in the `object`, omitting the properties `callback` returns truthy for. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, key, object)*. Creates a shallow clone of `object` excluding the specified properties. Property names may be specified as individual arguments or as arrays of property names. If a `callback` function is passed, it will be executed for each property in the `object`, omitting the properties `callback` returns truthy for. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, key, object)*.
@@ -3268,7 +3268,7 @@ _.omit({ 'name': 'moe', 'age': 40 }, function(value) {
<!-- div --> <!-- div -->
### <a id="_pairsobject"></a>`_.pairs(object)` ### <a id="_pairsobject"></a>`_.pairs(object)`
<a href="#_pairsobject">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2584 "View in source") [&#x24C9;][1] <a href="#_pairsobject">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2583 "View in source") [&#x24C9;][1]
Creates a two dimensional array of the given object's key-value pairs, i.e. `[[key1, value1], [key2, value2]]`. Creates a two dimensional array of the given object's key-value pairs, i.e. `[[key1, value1], [key2, value2]]`.
@@ -3292,7 +3292,7 @@ _.pairs({ 'moe': 30, 'larry': 40 });
<!-- div --> <!-- div -->
### <a id="_pickobject-callback-prop1-prop2--thisarg"></a>`_.pick(object, callback|[prop1, prop2, ..., thisArg])` ### <a id="_pickobject-callback-prop1-prop2--thisarg"></a>`_.pick(object, callback|[prop1, prop2, ..., thisArg])`
<a href="#_pickobject-callback-prop1-prop2--thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2623 "View in source") [&#x24C9;][1] <a href="#_pickobject-callback-prop1-prop2--thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2622 "View in source") [&#x24C9;][1]
Creates a shallow clone of `object` composed of the specified properties. Property names may be specified as individual arguments or as arrays of property names. If `callback` is passed, it will be executed for each property in the `object`, picking the properties `callback` returns truthy for. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, key, object)*. Creates a shallow clone of `object` composed of the specified properties. Property names may be specified as individual arguments or as arrays of property names. If `callback` is passed, it will be executed for each property in the `object`, picking the properties `callback` returns truthy for. The `callback` is bound to `thisArg` and invoked with three arguments; *(value, key, object)*.
@@ -3323,7 +3323,7 @@ _.pick({ 'name': 'moe', '_userid': 'moe1' }, function(value, key) {
<!-- div --> <!-- div -->
### <a id="_transformcollection--callbackidentity-accumulator-thisarg"></a>`_.transform(collection [, callback=identity, accumulator, thisArg])` ### <a id="_transformcollection--callbackidentity-accumulator-thisarg"></a>`_.transform(collection [, callback=identity, accumulator, thisArg])`
<a href="#_transformcollection--callbackidentity-accumulator-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2678 "View in source") [&#x24C9;][1] <a href="#_transformcollection--callbackidentity-accumulator-thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2677 "View in source") [&#x24C9;][1]
An alternative to `_.reduce`, this method transforms an `object` to a new `accumulator` object which is the result of running each of its elements through the `callback`, with each `callback` execution potentially mutating the `accumulator` object. The `callback` is bound to `thisArg` and invoked with four arguments; *(accumulator, value, key, object)*. Callbacks may exit iteration early by explicitly returning `false`. An alternative to `_.reduce`, this method transforms an `object` to a new `accumulator` object which is the result of running each of its elements through the `callback`, with each `callback` execution potentially mutating the `accumulator` object. The `callback` is bound to `thisArg` and invoked with four arguments; *(accumulator, value, key, object)*. Callbacks may exit iteration early by explicitly returning `false`.
@@ -3360,7 +3360,7 @@ var mapped = _.transform({ 'a': 1, 'b': 2, 'c': 3 }, function(result, num, key)
<!-- div --> <!-- div -->
### <a id="_valuesobject"></a>`_.values(object)` ### <a id="_valuesobject"></a>`_.values(object)`
<a href="#_valuesobject">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2711 "View in source") [&#x24C9;][1] <a href="#_valuesobject">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L2710 "View in source") [&#x24C9;][1]
Creates an array composed of the own enumerable property values of `object`. Creates an array composed of the own enumerable property values of `object`.
@@ -3391,7 +3391,7 @@ _.values({ 'one': 1, 'two': 2, 'three': 3 });
<!-- div --> <!-- div -->
### <a id="_escapestring"></a>`_.escape(string)` ### <a id="_escapestring"></a>`_.escape(string)`
<a href="#_escapestring">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5269 "View in source") [&#x24C9;][1] <a href="#_escapestring">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5267 "View in source") [&#x24C9;][1]
Converts the characters `&`, `<`, `>`, `"`, and `'` in `string` to their corresponding HTML entities. Converts the characters `&`, `<`, `>`, `"`, and `'` in `string` to their corresponding HTML entities.
@@ -3415,7 +3415,7 @@ _.escape('Moe, Larry & Curly');
<!-- div --> <!-- div -->
### <a id="_identityvalue"></a>`_.identity(value)` ### <a id="_identityvalue"></a>`_.identity(value)`
<a href="#_identityvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5287 "View in source") [&#x24C9;][1] <a href="#_identityvalue">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5285 "View in source") [&#x24C9;][1]
This method returns the first argument passed to it. This method returns the first argument passed to it.
@@ -3440,7 +3440,7 @@ moe === _.identity(moe);
<!-- div --> <!-- div -->
### <a id="_mixinobject"></a>`_.mixin(object)` ### <a id="_mixinobject"></a>`_.mixin(object)`
<a href="#_mixinobject">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5313 "View in source") [&#x24C9;][1] <a href="#_mixinobject">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5311 "View in source") [&#x24C9;][1]
Adds functions properties of `object` to the `lodash` function and chainable wrapper. Adds functions properties of `object` to the `lodash` function and chainable wrapper.
@@ -3470,7 +3470,7 @@ _('moe').capitalize();
<!-- div --> <!-- div -->
### <a id="_noconflict"></a>`_.noConflict()` ### <a id="_noconflict"></a>`_.noConflict()`
<a href="#_noconflict">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5348 "View in source") [&#x24C9;][1] <a href="#_noconflict">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5346 "View in source") [&#x24C9;][1]
Reverts the '_' variable to its previous value and returns a reference to the `lodash` function. Reverts the '_' variable to its previous value and returns a reference to the `lodash` function.
@@ -3490,7 +3490,7 @@ var lodash = _.noConflict();
<!-- div --> <!-- div -->
### <a id="_parseintvalue--radix"></a>`_.parseInt(value [, radix])` ### <a id="_parseintvalue--radix"></a>`_.parseInt(value [, radix])`
<a href="#_parseintvalue--radix">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5372 "View in source") [&#x24C9;][1] <a href="#_parseintvalue--radix">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5370 "View in source") [&#x24C9;][1]
Converts the given `value` into an integer of the specified `radix`. If `radix` is `undefined` or `0`, a `radix` of `10` is used unless the `value` is a hexadecimal, in which case a `radix` of `16` is used. Converts the given `value` into an integer of the specified `radix`. If `radix` is `undefined` or `0`, a `radix` of `10` is used unless the `value` is a hexadecimal, in which case a `radix` of `16` is used.
@@ -3517,7 +3517,7 @@ _.parseInt('08');
<!-- div --> <!-- div -->
### <a id="_randommin0-max1"></a>`_.random([min=0, max=1])` ### <a id="_randommin0-max1"></a>`_.random([min=0, max=1])`
<a href="#_randommin0-max1">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5395 "View in source") [&#x24C9;][1] <a href="#_randommin0-max1">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5393 "View in source") [&#x24C9;][1]
Produces a random number between `min` and `max` *(inclusive)*. If only one argument is passed, a number between `0` and the given number will be returned. Produces a random number between `min` and `max` *(inclusive)*. If only one argument is passed, a number between `0` and the given number will be returned.
@@ -3545,7 +3545,7 @@ _.random(5);
<!-- div --> <!-- div -->
### <a id="_resultobject-property"></a>`_.result(object, property)` ### <a id="_resultobject-property"></a>`_.result(object, property)`
<a href="#_resultobject-property">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5439 "View in source") [&#x24C9;][1] <a href="#_resultobject-property">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5437 "View in source") [&#x24C9;][1]
Resolves the value of `property` on `object`. If `property` is a function, it will be invoked with the `this` binding of `object` and its result returned, else the property value is returned. If `object` is falsey, then `undefined` is returned. Resolves the value of `property` on `object`. If `property` is a function, it will be invoked with the `this` binding of `object` and its result returned, else the property value is returned. If `object` is falsey, then `undefined` is returned.
@@ -3598,7 +3598,7 @@ Create a new `lodash` function using the given `context` object.
<!-- div --> <!-- div -->
### <a id="_templatetext-data-options"></a>`_.template(text, data, options)` ### <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#L5530 "View in source") [&#x24C9;][1] <a href="#_templatetext-data-options">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5528 "View in source") [&#x24C9;][1]
A micro-templating method that handles arbitrary delimiters, preserves whitespace, and correctly escapes quotes within interpolated code. A micro-templating method that handles arbitrary delimiters, preserves whitespace, and correctly escapes quotes within interpolated code.
@@ -3686,7 +3686,7 @@ fs.writeFileSync(path.join(cwd, 'jst.js'), '\
<!-- div --> <!-- div -->
### <a id="_timesn-callback--thisarg"></a>`_.times(n, callback [, thisArg])` ### <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#L5655 "View in source") [&#x24C9;][1] <a href="#_timesn-callback--thisarg">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5653 "View in source") [&#x24C9;][1]
Executes the `callback` function `n` times, returning an array of the results of each `callback` execution. The `callback` is bound to `thisArg` and invoked with one argument; *(index)*. Executes the `callback` function `n` times, returning an array of the results of each `callback` execution. The `callback` is bound to `thisArg` and invoked with one argument; *(index)*.
@@ -3718,7 +3718,7 @@ _.times(3, function(n) { this.cast(n); }, mage);
<!-- div --> <!-- div -->
### <a id="_unescapestring"></a>`_.unescape(string)` ### <a id="_unescapestring"></a>`_.unescape(string)`
<a href="#_unescapestring">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5682 "View in source") [&#x24C9;][1] <a href="#_unescapestring">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5680 "View in source") [&#x24C9;][1]
The inverse of `_.escape`, this method converts the HTML entities `&amp;`, `&lt;`, `&gt;`, `&quot;`, and `&#39;` in `string` to their corresponding characters. The inverse of `_.escape`, this method converts the HTML entities `&amp;`, `&lt;`, `&gt;`, `&quot;`, and `&#39;` in `string` to their corresponding characters.
@@ -3742,7 +3742,7 @@ _.unescape('Moe, Larry &amp; Curly');
<!-- div --> <!-- div -->
### <a id="_uniqueidprefix"></a>`_.uniqueId([prefix])` ### <a id="_uniqueidprefix"></a>`_.uniqueId([prefix])`
<a href="#_uniqueidprefix">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5702 "View in source") [&#x24C9;][1] <a href="#_uniqueidprefix">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5700 "View in source") [&#x24C9;][1]
Generates a unique ID. If `prefix` is passed, the ID will be appended to it. Generates a unique ID. If `prefix` is passed, the ID will be appended to it.
@@ -3795,7 +3795,7 @@ A reference to the `lodash` function.
<!-- div --> <!-- div -->
### <a id="_version"></a>`_.VERSION` ### <a id="_version"></a>`_.VERSION`
<a href="#_version">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5945 "View in source") [&#x24C9;][1] <a href="#_version">#</a> [&#x24C8;](https://github.com/bestiejs/lodash/blob/master/lodash.js#L5943 "View in source") [&#x24C9;][1]
*(String)*: The semantic version number. *(String)*: The semantic version number.

100
lodash.js
View File

@@ -328,6 +328,7 @@
'firstArg': '', 'firstArg': '',
'index': 0, 'index': 0,
'init': '', 'init': '',
'keys': null,
'leading': false, 'leading': false,
'loop': '', 'loop': '',
'maxWait': 0, 'maxWait': 0,
@@ -343,7 +344,6 @@
'true': false, 'true': false,
'undefined': false, 'undefined': false,
'useHas': false, 'useHas': false,
'useKeys': false,
'value': null 'value': null
}; };
} }
@@ -888,7 +888,7 @@
' %>' + ' %>' +
// iterate own properties using `Object.keys` // iterate own properties using `Object.keys`
' <% if (useHas && useKeys) { %>\n' + ' <% if (useHas && keys) { %>\n' +
' var ownIndex = -1,\n' + ' var ownIndex = -1,\n' +
' ownProps = objectTypes[typeof iterable] && keys(iterable),\n' + ' ownProps = objectTypes[typeof iterable] && keys(iterable),\n' +
' length = ownProps ? ownProps.length : 0;\n\n' + ' length = ownProps ? ownProps.length : 0;\n\n' +
@@ -937,34 +937,6 @@
'return result' 'return result'
); );
/** Reusable iterator options for `assign` and `defaults` */
var defaultsIteratorOptions = {
'args': 'object, source, guard',
'top':
'var args = arguments,\n' +
' argsIndex = 0,\n' +
" argsLength = typeof guard == 'number' ? 2 : args.length;\n" +
'while (++argsIndex < argsLength) {\n' +
' iterable = args[argsIndex];\n' +
' if (iterable && objectTypes[typeof iterable]) {',
'loop': "if (typeof result[index] == 'undefined') result[index] = iterable[index]",
'bottom': ' }\n}'
};
/** Reusable iterator options shared by `each`, `forIn`, and `forOwn` */
var eachIteratorOptions = {
'args': 'collection, callback, thisArg',
'top': "callback = callback && typeof thisArg == 'undefined' ? callback : lodash.createCallback(callback, thisArg, 3)",
'array': "typeof length == 'number'",
'loop': 'if (callback(iterable[index], index, collection) === false) return result'
};
/** Reusable iterator options for `forIn` and `forOwn` */
var forOwnIteratorOptions = {
'top': 'if (!objectTypes[typeof iterable]) return result;\n' + eachIteratorOptions.top,
'array': false
};
/*--------------------------------------------------------------------------*/ /*--------------------------------------------------------------------------*/
/** /**
@@ -1456,7 +1428,7 @@
* @param {Object} [options1, options2, ...] The compile options object(s). * @param {Object} [options1, options2, ...] The compile options object(s).
* array - A string of code to determine if the iterable is an array or array-like. * array - A string of code to determine if the iterable is an array or array-like.
* useHas - A boolean to specify using `hasOwnProperty` checks in the object loop. * useHas - A boolean to specify using `hasOwnProperty` checks in the object loop.
* useKeys - A boolean to specify using `_.keys` for own property iteration. * keys - A reference to `_.keys` for use in own property iteration.
* args - A string of comma separated arguments the iteration function will accept. * args - A string of comma separated arguments the iteration function will accept.
* top - A string of code to execute before the iteration branches. * top - A string of code to execute before the iteration branches.
* loop - A string of code to execute in the object loop. * loop - A string of code to execute in the object loop.
@@ -1474,7 +1446,6 @@
data.array = data.bottom = data.loop = data.top = ''; data.array = data.bottom = data.loop = data.top = '';
data.init = 'iterable'; data.init = 'iterable';
data.useHas = true; data.useHas = true;
data.useKeys = true;
// merge options into a template data object // merge options into a template data object
for (var object, index = 0; object = arguments[index]; index++) { for (var object, index = 0; object = arguments[index]; index++) {
@@ -1498,7 +1469,7 @@
// return the compiled function // return the compiled function
return factory( return factory(
errorClass, errorProto, hasOwnProperty, indicatorObject, isArguments, errorClass, errorProto, hasOwnProperty, indicatorObject, isArguments,
isArray, isString, data.useKeys && keys, lodash, objectProto, objectTypes, nonEnumProps, isArray, isString, data.keys, lodash, objectProto, objectTypes, nonEnumProps,
stringClass, stringProto, toString stringClass, stringProto, toString
); );
} }
@@ -1677,8 +1648,7 @@
'args': 'object', 'args': 'object',
'init': '[]', 'init': '[]',
'top': 'if (!(objectTypes[typeof object])) return result', 'top': 'if (!(objectTypes[typeof object])) return result',
'loop': 'result.push(index)', 'loop': 'result.push(index)'
'useKeys': false
}); });
/** /**
@@ -1705,21 +1675,35 @@
return nativeKeys(object); return nativeKeys(object);
}; };
/** /** Reusable iterator options shared by `each`, `forIn`, and `forOwn` */
* A function compiled to iterate `arguments` objects, arrays, objects, and var eachIteratorOptions = {
* strings consistenly across environments, executing the `callback` for each 'args': 'collection, callback, thisArg',
* element in the `collection`. The `callback` is bound to `thisArg` and invoked 'top': "callback = callback && typeof thisArg == 'undefined' ? callback : lodash.createCallback(callback, thisArg, 3)",
* with three arguments; (value, index|key, collection). Callbacks may exit 'array': "typeof length == 'number'",
* iteration early by explicitly returning `false`. 'keys': keys,
* 'loop': 'if (callback(iterable[index], index, collection) === false) return result'
* @private };
* @type Function
* @param {Array|Object|String} collection The collection to iterate over. /** Reusable iterator options for `assign` and `defaults` */
* @param {Function} [callback=identity] The function called per iteration. var defaultsIteratorOptions = {
* @param {Mixed} [thisArg] The `this` binding of `callback`. 'args': 'object, source, guard',
* @returns {Array|Object|String} Returns `collection`. 'top':
*/ 'var args = arguments,\n' +
var baseEach = createIterator(eachIteratorOptions); ' argsIndex = 0,\n' +
" argsLength = typeof guard == 'number' ? 2 : args.length;\n" +
'while (++argsIndex < argsLength) {\n' +
' iterable = args[argsIndex];\n' +
' if (iterable && objectTypes[typeof iterable]) {',
'keys': keys,
'loop': "if (typeof result[index] == 'undefined') result[index] = iterable[index]",
'bottom': ' }\n}'
};
/** Reusable iterator options for `forIn` and `forOwn` */
var forOwnIteratorOptions = {
'top': 'if (!objectTypes[typeof iterable]) return result;\n' + eachIteratorOptions.top,
'array': false
};
/** /**
* Used to convert characters to HTML entities: * Used to convert characters to HTML entities:
@@ -1744,6 +1728,22 @@
var reEscapedHtml = RegExp('(' + keys(htmlUnescapes).join('|') + ')', 'g'), var reEscapedHtml = RegExp('(' + keys(htmlUnescapes).join('|') + ')', 'g'),
reUnescapedHtml = RegExp('[' + keys(htmlEscapes).join('') + ']', 'g'); reUnescapedHtml = RegExp('[' + keys(htmlEscapes).join('') + ']', 'g');
/**
* A function compiled to iterate `arguments` objects, arrays, objects, and
* strings consistenly across environments, executing the `callback` for each
* element in the `collection`. The `callback` is bound to `thisArg` and invoked
* with three arguments; (value, index|key, collection). Callbacks may exit
* iteration early by explicitly returning `false`.
*
* @private
* @type Function
* @param {Array|Object|String} collection The collection to iterate over.
* @param {Function} [callback=identity] The function called per iteration.
* @param {Mixed} [thisArg] The `this` binding of `callback`.
* @returns {Array|Object|String} Returns `collection`.
*/
var baseEach = createIterator(eachIteratorOptions);
/*--------------------------------------------------------------------------*/ /*--------------------------------------------------------------------------*/
/** /**