stream.isReadable(stream)
-
stream
<Readable> | <Duplex> | <ReadableStream> -
返回:<boolean> | <null> - 仅当
stream
不是有效的Readable
、Duplex
或ReadableStream
时才返回null
。¥Returns: <boolean> | <null> - Only returns
null
ifstream
is not a validReadable
,Duplex
orReadableStream
.
返回流是否可读。
¥Returns whether the stream is readable.