isBuffer
Check if the given value
is a Buffer
.
isBuffer
method to verify the parameter type, preventing errors from non - Buffer values.v
(any
): The value to test if it is a Buffer.boolean
): Returns true
if the value is a Buffer, otherwise returns false
.