Skip to content

Commit

Permalink
Update tap.md (#1438)
Browse files Browse the repository at this point in the history
This might not be perfect, but it's better than what's there. :)
  • Loading branch information
Tim Allen authored and benjamingr committed Aug 16, 2017
1 parent 3a7fcbb commit 2c9f7a4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/docs/api/tap.md
Expand Up @@ -12,7 +12,9 @@ title: .tap
```js
.tap(function(any value) handler) -> Promise
```
Essentially like `.then()`, except that the value passed in is the value returned.

This means you can insert `.tap()` into a `.then()` chain without affecting what is passed through the chain. (See example below).

Unlike [`.finally`](.) this is not called for rejections.

Expand Down

0 comments on commit 2c9f7a4

Please sign in to comment.