mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 10:17:48 +00:00
Bump to v3.1.0.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import baseMatches from '../internal/baseMatches';
|
||||
import find from './find';
|
||||
import matches from '../utility/matches';
|
||||
|
||||
/**
|
||||
* Performs a deep comparison between each element in `collection` and the
|
||||
@@ -26,7 +26,7 @@ import matches from '../utility/matches';
|
||||
* // => 'fred'
|
||||
*/
|
||||
function findWhere(collection, source) {
|
||||
return find(collection, matches(source));
|
||||
return find(collection, baseMatches(source));
|
||||
}
|
||||
|
||||
export default findWhere;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import baseProperty from '../internal/baseProperty';
|
||||
import map from './map';
|
||||
import property from '../utility/property';
|
||||
|
||||
/**
|
||||
* Gets the value of `key` from all elements in `collection`.
|
||||
@@ -25,7 +25,7 @@ import property from '../utility/property';
|
||||
* // => [36, 40] (iteration order is not guaranteed)
|
||||
*/
|
||||
function pluck(collection, key) {
|
||||
return map(collection, property(key));
|
||||
return map(collection, baseProperty(key + ''));
|
||||
}
|
||||
|
||||
export default pluck;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import baseMatches from '../internal/baseMatches';
|
||||
import filter from './filter';
|
||||
import matches from '../utility/matches';
|
||||
|
||||
/**
|
||||
* Performs a deep comparison between each element in `collection` and the
|
||||
@@ -29,7 +29,7 @@ import matches from '../utility/matches';
|
||||
* // => ['barney', 'fred']
|
||||
*/
|
||||
function where(collection, source) {
|
||||
return filter(collection, matches(source));
|
||||
return filter(collection, baseMatches(source));
|
||||
}
|
||||
|
||||
export default where;
|
||||
|
||||
Reference in New Issue
Block a user