Check if value is a server response (`res`)
npm install is-server-responseCheck if value is a server response (res).
bash
$ npm install is-server-response
`Usage
`js
const isRes = require('is-server-response')
const http = require('http')http.createServer((req, res) => {
isRes(res)
// => true
})
``[npm-image]: https://img.shields.io/npm/v/is-server-response.svg?style=flat-square
[npm-url]: https://npmjs.org/package/is-server-response
[travis-image]: https://img.shields.io/travis/yoshuawuyts/is-server-response/master.svg?style=flat-square
[travis-url]: https://travis-ci.org/yoshuawuyts/is-server-response
[codecov-image]: https://img.shields.io/codecov/c/github/yoshuawuyts/is-server-response/master.svg?style=flat-square
[codecov-url]: https://codecov.io/github/yoshuawuyts/is-server-response
[downloads-image]: http://img.shields.io/npm/dm/is-server-response.svg?style=flat-square
[downloads-url]: https://npmjs.org/package/is-server-response
[standard-image]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square
[standard-url]: https://github.com/feross/standard