Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions doc/api/stream.md
Original file line number Diff line number Diff line change
Expand Up @@ -3120,6 +3120,19 @@ console.log(res); // prints 'HELLOWORLD'
For convenience, the [`readable.compose(stream)`][] method is available on
{Readable} and {Duplex} streams as a wrapper for this function.

### `stream.isDestroyed(stream)`

<!-- YAML
added:
- v19.9.0
- v18.17.0
-->

* `stream` {Readable|Writable|Duplex}
* Returns: {boolean|null} - Only returns `null` if `stream` is not a valid `Readable`, `Writable` or `Duplex`.

Returns whether the stream has been destroyed.

### `stream.isErrored(stream)`

<!-- YAML
Expand Down
Loading