mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-01 07:47:49 +00:00
fixes #541 -- broken docs for tap()
This commit is contained in:
@@ -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();
|
||||
=> [2, 200]
|
||||
=> // [2, 200] (alerted)
|
||||
=> [4, 40000]
|
||||
</pre>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user