Add readable, writable and duplex
This commit is contained in:
7
test/isReadableStream/isReadableStream.js
Normal file
7
test/isReadableStream/isReadableStream.js
Normal file
@ -0,0 +1,7 @@
|
||||
const isReadableStream = val =>
|
||||
val !== null &&
|
||||
typeof val === 'object' &&
|
||||
typeof val.pipe === 'function' &&
|
||||
typeof val._read === 'function' &&
|
||||
typeof val._readableState === 'object';
|
||||
module.exports = isReadableStream;
|
||||
Reference in New Issue
Block a user