mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-06 01:47:48 +00:00
Add _.findWhere alias.
Former-commit-id: 2c70e59b71c22d902e499747444a196a85691554
This commit is contained in:
5
dist/lodash.js
vendored
5
dist/lodash.js
vendored
@@ -2401,7 +2401,7 @@
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @alias detect
|
||||
* @alias detect, findWhere
|
||||
* @category Collections
|
||||
* @param {Array|Object|String} collection The collection to iterate over.
|
||||
* @param {Function|Object|String} [callback=identity] The function called per
|
||||
@@ -5207,7 +5207,7 @@
|
||||
// add functions to `lodash.prototype`
|
||||
mixin(lodash);
|
||||
|
||||
// add Underscore `_.chain` compat
|
||||
// add Underscore compat
|
||||
lodash.chain = lodash;
|
||||
lodash.prototype.chain = function() { return this; };
|
||||
|
||||
@@ -5262,6 +5262,7 @@
|
||||
lodash.all = every;
|
||||
lodash.any = some;
|
||||
lodash.detect = find;
|
||||
lodash.findWhere = find;
|
||||
lodash.foldl = reduce;
|
||||
lodash.foldr = reduceRight;
|
||||
lodash.include = contains;
|
||||
|
||||
Reference in New Issue
Block a user