index.js
function destroy (stream) {
  if (stream instanceof ReadStream) {
    return destroyReadStream(stream)
  }

  if (!(stream instanceof Stream)) {
    return stream
  }

  if (typeof stream.destroy === 'function') {
    stream.destroy()
  }

  return stream
}
function destroy (stream) {
  if (stream instanceof ReadStream) {
    return destroyReadStream(stream)
  }

  if (!(stream instanceof Stream)) {
    return stream
  }

  if (typeof stream.destroy === 'function') {
    stream.destroy()
  }

  return stream
}
function destroy ( stream ) { if ( stream instanceof ReadStream ) { return destroyReadStream ( stream ) } if ( ! ( stream instanceof Stream ) ) { return stream } if ( typeof stream . destroy === 'function' ) { stream . destroy ( ) } return stream }
Destroy a stream.

@param {object} stream
@public
Destroy a stream .