fixes #541 -- broken docs for tap()

This commit is contained in:
Jeremy Ashkenas
2012-04-06 16:54:09 -04:00
parent 8cfb076c9b
commit f081bf6f11

View File

@@ -1061,10 +1061,10 @@ _.clone({name : 'moe'});
<pre>
_.chain([1,2,3,200])
.filter(function(num) { return num % 2 == 0; })
.tap(console.log)
.tap(alert)
.map(function(num) { return num * num })
.value();
=&gt; [2, 200]
=&gt; // [2, 200] (alerted)
=&gt; [4, 40000]
</pre>