mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-10 02:47:50 +00:00
fixes #541 -- broken docs for tap()
This commit is contained in:
@@ -1061,10 +1061,10 @@ _.clone({name : 'moe'});
|
|||||||
<pre>
|
<pre>
|
||||||
_.chain([1,2,3,200])
|
_.chain([1,2,3,200])
|
||||||
.filter(function(num) { return num % 2 == 0; })
|
.filter(function(num) { return num % 2 == 0; })
|
||||||
.tap(console.log)
|
.tap(alert)
|
||||||
.map(function(num) { return num * num })
|
.map(function(num) { return num * num })
|
||||||
.value();
|
.value();
|
||||||
=> [2, 200]
|
=> // [2, 200] (alerted)
|
||||||
=> [4, 40000]
|
=> [4, 40000]
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user