| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 44b940e commit 8d3ae08
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3120,6 +3120,19 @@ console.log(res); // prints 'HELLOWORLD' | |||
| 3120 | 3120 | For convenience, the [`readable.compose(stream)`][] method is available on | |
| 3121 | 3121 | {Readable} and {Duplex} streams as a wrapper for this function. | |
| 3122 | 3122 | ||
| 3123 | + ### `stream.isDestroyed(stream)` | ||
| 3124 | + | ||
| 3125 | + <!-- YAML | ||
| 3126 | + added: | ||
| 3127 | + - v19.9.0 | ||
| 3128 | + - v18.17.0 | ||
| 3129 | + --> | ||
| 3130 | + | ||
| 3131 | + * `stream` {Readable|Writable|Duplex} | ||
| 3132 | + * Returns: {boolean|null} - Only returns `null` if `stream` is not a valid `Readable`, `Writable` or `Duplex`. | ||
| 3133 | + | ||
| 3134 | + Returns whether the stream has been destroyed. | ||
| 3135 | + | ||
| 3123 | 3136 | ### `stream.isErrored(stream)` | |
| 3124 | 3137 | ||
| 3125 | 3138 | <!-- YAML | |
| Back | FazBrowse Home | New Git URL |
0 commit comments