util.isBuffer(object)
Stability: 0 - Deprecated: Use
Buffer.isBuffer()
instead.Returns true
if the given "object" is a Buffer
. Otherwise, returns false
.
const util = require('util'); util.isBuffer({ length: 0 }) // false util.isBuffer([]) // false util.isBuffer(new Buffer('hello world')) // true
Please login to continue.