| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 1fefdda commit 72ee03b
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3110,6 +3110,19 @@ console.log(res); // prints 'HELLOWORLD' | |||
| 3110 | 3110 | For convenience, the [`readable.compose(stream)`][] method is available on | |
| 3111 | 3111 | {Readable} and {Duplex} streams as a wrapper for this function. | |
| 3112 | 3112 | ||
| 3113 | + ### `stream.isDestroyed(stream)` | ||
| 3114 | + | ||
| 3115 | + <!-- YAML | ||
| 3116 | + added: | ||
| 3117 | + - v19.9.0 | ||
| 3118 | + - v18.17.0 | ||
| 3119 | + --> | ||
| 3120 | + | ||
| 3121 | + * `stream` {Readable|Writable|Duplex} | ||
| 3122 | + * Returns: {boolean|null} - Only returns `null` if `stream` is not a valid `Readable`, `Writable` or `Duplex`. | ||
| 3123 | + | ||
| 3124 | + Returns whether the stream has been destroyed. | ||
| 3125 | + | ||
| 3113 | 3126 | ### `stream.isErrored(stream)` | |
| 3114 | 3127 | ||
| 3115 | 3128 | <!-- YAML | |
| Back | FazBrowse Home | New Git URL |
0 commit comments