isStream
Checks if the given argument is a stream.
- Check if the value is different from
null
. - Use
typeof
to check if the value is of typeobject
and thepipe
property is of typefunction
.
Checks if the given argument is a stream.
null
.typeof
to check if the value is of type object
and the pipe
property is of type function
.