mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-10 19:07:49 +00:00
Bump to v3.1.0.
This commit is contained in:
committed by
John-David Dalton
parent
3b2df88eab
commit
1608d89174
@@ -1,4 +1,4 @@
|
||||
define(['./find', '../utility/matches'], function(find, matches) {
|
||||
define(['../internal/baseMatches', './find'], function(baseMatches, find) {
|
||||
|
||||
/**
|
||||
* Performs a deep comparison between each element in `collection` and the
|
||||
@@ -25,7 +25,7 @@ define(['./find', '../utility/matches'], function(find, matches) {
|
||||
* // => 'fred'
|
||||
*/
|
||||
function findWhere(collection, source) {
|
||||
return find(collection, matches(source));
|
||||
return find(collection, baseMatches(source));
|
||||
}
|
||||
|
||||
return findWhere;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
define(['./map', '../utility/property'], function(map, property) {
|
||||
define(['../internal/baseProperty', './map'], function(baseProperty, map) {
|
||||
|
||||
/**
|
||||
* Gets the value of `key` from all elements in `collection`.
|
||||
@@ -24,7 +24,7 @@ define(['./map', '../utility/property'], function(map, property) {
|
||||
* // => [36, 40] (iteration order is not guaranteed)
|
||||
*/
|
||||
function pluck(collection, key) {
|
||||
return map(collection, property(key));
|
||||
return map(collection, baseProperty(key + ''));
|
||||
}
|
||||
|
||||
return pluck;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
define(['./filter', '../utility/matches'], function(filter, matches) {
|
||||
define(['../internal/baseMatches', './filter'], function(baseMatches, filter) {
|
||||
|
||||
/**
|
||||
* Performs a deep comparison between each element in `collection` and the
|
||||
@@ -28,7 +28,7 @@ define(['./filter', '../utility/matches'], function(filter, matches) {
|
||||
* // => ['barney', 'fred']
|
||||
*/
|
||||
function where(collection, source) {
|
||||
return filter(collection, matches(source));
|
||||
return filter(collection, baseMatches(source));
|
||||
}
|
||||
|
||||
return where;
|
||||
|
||||
Reference in New Issue
Block a user