diff --git a/index.html b/index.html index 5faace35f..3353f7d0f 100644 --- a/index.html +++ b/index.html @@ -144,7 +144,7 @@
each, map, reduce, reduceRight, - detect, select, + find, filter, reject, all, any, include, invoke, pluck, @@ -312,8 +312,9 @@ var flat = _.reduceRight(list, function(a, b) { return a.concat(b); }, []); => [4, 5, 2, 3, 0, 1] -

- detect_.detect(list, iterator, [context]) +

+ find_.find(list, iterator, [context]) + Alias: detect
Looks through each value in the list, returning the first one that passes a truth test (iterator). The function returns as @@ -321,20 +322,20 @@ var flat = _.reduceRight(list, function(a, b) { return a.concat(b); }, []); entire list.

-var even = _.detect([1, 2, 3, 4, 5, 6], function(num){ return num % 2 == 0; });
+var even = _.find([1, 2, 3, 4, 5, 6], function(num){ return num % 2 == 0; });
 => 2
 
-

- select_.select(list, iterator, [context]) - Alias: filter +

+ filter_.filter(list, iterator, [context]) + Alias: select
Looks through each value in the list, returning an array of all the values that pass a truth test (iterator). Delegates to the native filter method, if it exists.

-var evens = _.select([1, 2, 3, 4, 5, 6], function(num){ return num % 2 == 0; });
+var evens = _.filter([1, 2, 3, 4, 5, 6], function(num){ return num % 2 == 0; });
 => [2, 4, 6]
 
@@ -342,7 +343,7 @@ var evens = _.select([1, 2, 3, 4, 5, 6], function(num){ return num % 2 == 0; }); reject_.reject(list, iterator, [context])
Returns the values in list without the elements that the truth - test (iterator) passes. The opposite of select. + test (iterator) passes. The opposite of filter.

 var odds = _.reject([1, 2, 3, 4, 5, 6], function(num){ return num % 2 == 0; });
@@ -951,7 +952,7 @@ _.clone({name : 'moe'});
       

 _([1,2,3,200]).chain().
-  select(function(num) { return num % 2 == 0; }).
+  filter(function(num) { return num % 2 == 0; }).
   tap(console.log).
   map(function(num) { return num * num }).
   value();