Returns true
if the given object
is a Buffer
. Otherwise, returns false
.
const util = require('util');
util.isBuffer({ length: 0 });
// Returns: false
util.isBuffer([]);
// Returns: false
util.isBuffer(Buffer.from('hello world'));
// Returns: true
Since v4.0.0 - Use isBuffer
instead.
Generated using TypeDoc
Returns
true
if the givenobject
is aBuffer
. Otherwise, returnsfalse
.Deprecated
Since v4.0.0 - Use
isBuffer
instead.