isStream
Checks if the given argument is a stream.
- Check if the value is different from
null. - Use
typeofto check if the value is of typeobjectand thepipeproperty 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.