body
body copied to clipboard
Update the isWritable function
This update is to make sure that the passed stream parameter is actually an instance of stream, given that the "write" and "end" methods are commonly used for other type of objects.