* @param {*} buffer * @returns {buffer is Buffer}
(buffer)
| 547 | * @returns {buffer is Buffer} |
| 548 | */ |
| 549 | function isBuffer (buffer) { |
| 550 | // See, https://github.com/mcollina/undici/pull/319 |
| 551 | return buffer instanceof Uint8Array || Buffer.isBuffer(buffer) |
| 552 | } |
| 553 | |
| 554 | /** |
| 555 | * Asserts that the handler object is a request handler. |
no outgoing calls
no test coverage detected