isBuffer

Lang
since 4.3.0

Arguments

  • * The value to check.

Returns

boolean `true` if `value` is a buffer, else `false`.

Checks if value is a buffer.

Example of Lodash _.isBuffer

_.isBuffer(new Buffer(2));
// => true

_.isBuffer(new Uint8Array(2));
// => false