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