Checks if value is a buffer.
value
The value to check.
Returns true if value is a buffer, else false.
true
false
5.4.0
isBuffer(new Buffer(2))// => trueisBuffer(new Uint8Array(2))// => false Copy
isBuffer(new Buffer(2))// => trueisBuffer(new Uint8Array(2))// => false
Checks if
value
is a buffer.